org.objectweb.jac.ide
Class Gui

java.lang.Object
  extended byorg.objectweb.jac.ide.Gui

public class Gui
extends Object

Gui methods for the menus.


Constructor Summary
Gui()
           
 
Method Summary
static void edit(Attachment attachment, DisplayContext context)
           
static void editWith(Attachment attachment, DisplayContext context, String editor)
           
static String getAttachmentIcon(Attachment attachment)
           
static Collection getAvailableClasses(ModelElement element)
          Returns all classes which belong to the same project as a given member.
static Collection getAvailableTypes(ModelElement element)
          Returns all types which belong to the same project as a given member.
static Collection getMatchingTypes(ModelElement element, String search)
          Returns types with a given short name
protected static Project getProject(ModelElement element)
          Gets the project an element belongs to
static Object getType(FieldItem field, Attachment attachment)
           
static void invalidateCache()
           
protected static void setLookAndFeel(LookAndFeel look)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gui

public Gui()
Method Detail

setLookAndFeel

protected static void setLookAndFeel(LookAndFeel look)
                              throws UnsupportedLookAndFeelException
Throws:
UnsupportedLookAndFeelException

getProject

protected static Project getProject(ModelElement element)
Gets the project an element belongs to

Parameters:
element - the element whose projet to return

getAvailableTypes

public static Collection getAvailableTypes(ModelElement element)
Returns all types which belong to the same project as a given member.

Parameters:
element - the element
See Also:
getAvailableClasses(ModelElement), getMatchingTypes(ModelElement,String)

getMatchingTypes

public static Collection getMatchingTypes(ModelElement element,
                                          String search)
Returns types with a given short name


getAvailableClasses

public static Collection getAvailableClasses(ModelElement element)
Returns all classes which belong to the same project as a given member.

Parameters:
element - the element
See Also:
getAvailableTypes(ModelElement), getMatchingTypes(ModelElement,String)

invalidateCache

public static void invalidateCache()

edit

public static void edit(Attachment attachment,
                        DisplayContext context)
                 throws IOException
Throws:
IOException

editWith

public static void editWith(Attachment attachment,
                            DisplayContext context,
                            String editor)
                     throws IOException
Throws:
IOException

getType

public static Object getType(FieldItem field,
                             Attachment attachment)

getAttachmentIcon

public static String getAttachmentIcon(Attachment attachment)