MetaDone
|
Classes | |
class | ContextMenuSubscriber |
class | EngineObserver |
Public Member Functions | |
MetadoneDesktopPane () | |
JMenu | getModelMenu () |
JInternalFrame | addNewFrame (final EngineInterpreter interpreter) |
JInternalFrame | add (JInternalFrame iframe, EngineInterpreter interpreter) |
Component | addComponent (Component comp) |
Component | add (Component comp) |
Component | add (Component comp, int index) |
void | add (Component comp, Object constraints) |
void | add (Component comp, Object constraints, int index) |
Component | add (String name, Component comp) |
void | remove (Component comp) |
void | remove (int index) |
void | removeAll () |
Protected Member Functions | |
final void | updateForSelectedFrame () |
void | updateForSelectedFrame (EngineInterpreter interpreter) |
Package Functions | |
[instance initializer] | |
Private Member Functions | |
boolean | updateModelMenuItems (JPopupMenu menu, Engine engine) |
void | updateModelMenuItemsAutoCreate (JPopupMenu menu, Engine engine) throws BadPreCondition |
void | updatePopupMenuItems (JPopupMenu popup_menu, Engine engine) |
void | addComponentInternal (JInternalFrame iframe, EngineInterpreter interpreter) |
void | removeComponentInternal (Component comp) |
Static Private Member Functions | |
static void | addSortedMenuItems (JMenu menu, List<?extends JMenuItem > items) |
Private Attributes | |
Logger | logger = Logger.getLogger(MetadoneDesktopPane.class) |
final JMenu | menu_model = new JMenu("Model") |
EngineInterpreter | menu_model_current = null |
final transient InternalFrameListener | frame_listener |
Map< JInternalFrame, EngineInterpreter > | models = new Hashtable<JInternalFrame, EngineInterpreter>() |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
The desktop pane for Metadone.
It contains the GrasylaInterpreter views.
metadone.client.MetadoneDesktopPane.MetadoneDesktopPane | ( | ) |
metadone.client.MetadoneDesktopPane.[instance initializer] | ( | ) | [package] |
JInternalFrame metadone.client.MetadoneDesktopPane.add | ( | JInternalFrame | iframe, |
EngineInterpreter | interpreter | ||
) |
Adds a frame with linked models.
You should use addNewFrame(AbstractInterpreter) to create a context menu on the frame.
iframe | The frame to add |
interpreter | The interpreter |
References metadone.client.MetadoneDesktopPane.addComponentInternal(), and metadone.client.MetadoneDesktopPane.logger.
Referenced by metadone.client.MetadoneDesktopPane.addNewFrame().
Component metadone.client.MetadoneDesktopPane.add | ( | String | name, |
Component | comp | ||
) |
Component metadone.client.MetadoneDesktopPane.add | ( | Component | comp | ) |
Component metadone.client.MetadoneDesktopPane.add | ( | Component | comp, |
int | index | ||
) |
void metadone.client.MetadoneDesktopPane.add | ( | Component | comp, |
Object | constraints | ||
) |
void metadone.client.MetadoneDesktopPane.add | ( | Component | comp, |
Object | constraints, | ||
int | index | ||
) |
Component metadone.client.MetadoneDesktopPane.addComponent | ( | Component | comp | ) |
void metadone.client.MetadoneDesktopPane.addComponentInternal | ( | JInternalFrame | iframe, |
EngineInterpreter | interpreter | ||
) | [private] |
References metadone.client.MetadoneDesktopPane.frame_listener, and metadone.client.MetadoneDesktopPane.models.
Referenced by metadone.client.MetadoneDesktopPane.add().
JInternalFrame metadone.client.MetadoneDesktopPane.addNewFrame | ( | final EngineInterpreter | interpreter | ) |
Creates and adds a new frame created from an interpreter.
interpreter | The interpreter to add denotes the modeling paradigm in which the interpreter is called (for instance UML MM for the CLASS MM) |
References metadone.client.MetadoneDesktopPane.add(), metadone.metabusiness.MetaObject.getAllMetaModels(), metadone.client.display.Engine.getContext(), metadone.metabusiness.WorkspaceObject.getDisplayName(), metadone.client.MetadoneDesktopPane.logger, and metadone.client.MetadoneDesktopPane.EngineObserver.start().
Referenced by metadone.client.actions.VisualizeModelAction.actionPerformed(), metadone.client.actions.VisualizeMetaModelAction.actionPerformed(), metadone.client.actions.Test4Action.actionPerformed(), and metadone.client.actions.Test3Action.actionPerformed().
static void metadone.client.MetadoneDesktopPane.addSortedMenuItems | ( | JMenu | menu, |
List<?extends JMenuItem > | items | ||
) | [static, private] |
JMenu metadone.client.MetadoneDesktopPane.getModelMenu | ( | ) |
void metadone.client.MetadoneDesktopPane.remove | ( | Component | comp | ) |
void metadone.client.MetadoneDesktopPane.remove | ( | int | index | ) |
void metadone.client.MetadoneDesktopPane.removeAll | ( | ) |
void metadone.client.MetadoneDesktopPane.removeComponentInternal | ( | Component | comp | ) | [private] |
void metadone.client.MetadoneDesktopPane.updateForSelectedFrame | ( | EngineInterpreter | interpreter | ) | [protected] |
References metadone.metabusiness.UndoRedoManager.addContext(), metadone.client.MetadoneDesktopPane.getModelMenu(), metadone.client.MainClientMetadone.getSingleton(), metadone.metabusiness.Workspace.getUndoRedo(), metadone.client.MainClientMetadone.getWorkspace(), metadone.client.MetadoneDesktopPane.menu_model_current, metadone.client.MetadoneDesktopPane.models, metadone.metabusiness.UndoRedoManager.removeContext(), and metadone.client.MetadoneDesktopPane.updateModelMenuItems().
final void metadone.client.MetadoneDesktopPane.updateForSelectedFrame | ( | ) | [protected] |
References metadone.client.MetadoneDesktopPane.models.
Referenced by metadone.client.MetadoneDesktopPane.MetadoneDesktopPane().
boolean metadone.client.MetadoneDesktopPane.updateModelMenuItems | ( | JPopupMenu | menu, |
Engine | engine | ||
) | [private] |
References metadone.util.Objects.cast(), metadone.client.display.Engine.getContext(), metadone.client.MainClientMetadone.getSingleton(), metadone.client.MainClientMetadone.isTestingVersion(), metadone.client.MetadoneDesktopPane.logger, metadone.client.MetadoneDesktopPane.menu_model_current, and metadone.client.MetadoneDesktopPane.updateModelMenuItemsAutoCreate().
Referenced by metadone.client.MetadoneDesktopPane.updateForSelectedFrame(), and metadone.client.MetadoneDesktopPane.updatePopupMenuItems().
void metadone.client.MetadoneDesktopPane.updateModelMenuItemsAutoCreate | ( | JPopupMenu | menu, |
Engine | engine | ||
) | throws BadPreCondition [private] |
void metadone.client.MetadoneDesktopPane.updatePopupMenuItems | ( | JPopupMenu | popup_menu, |
Engine | engine | ||
) | [private] |
References metadone.metabusiness.events.Notification.error(), metadone.client.display.Engine.getContext(), metadone.metabusiness.WorkspaceObject.getDisplayName(), metadone.client.MainClientMetadone.getEventManager(), metadone.client.display.ConcreteObjectGroup.getHead(), metadone.client.display.ConcreteObjectGroup.getMultiplicity(), metadone.client.MainClientMetadone.getSingleton(), metadone.metabusiness.WorkspaceObject.isA(), metadone.client.MetadoneDesktopPane.menu_model_current, metadone.metabusiness.events.MetadoneEvents.trigger(), and metadone.client.MetadoneDesktopPane.updateModelMenuItems().
Referenced by metadone.client.MetadoneDesktopPane.ContextMenuSubscriber.trigger().
final transient InternalFrameListener metadone.client.MetadoneDesktopPane.frame_listener [private] |
new InternalFrameAdapter() { @Override public void internalFrameActivated(InternalFrameEvent e) { final JInternalFrame comp = e.getInternalFrame(); updateForSelectedFrame(models.get(comp)); } @Override public void internalFrameDeactivated(InternalFrameEvent e) { updateForSelectedFrame(); }; }
Referenced by metadone.client.MetadoneDesktopPane.addComponentInternal(), and metadone.client.MetadoneDesktopPane.removeComponentInternal().
Logger metadone.client.MetadoneDesktopPane.logger = Logger.getLogger(MetadoneDesktopPane.class) [private] |
final JMenu metadone.client.MetadoneDesktopPane.menu_model = new JMenu("Model") [private] |
Referenced by metadone.client.MetadoneDesktopPane.getModelMenu().
EngineInterpreter metadone.client.MetadoneDesktopPane.menu_model_current = null [private] |
Map<JInternalFrame, EngineInterpreter> metadone.client.MetadoneDesktopPane.models = new Hashtable<JInternalFrame, EngineInterpreter>() [private] |
final long metadone.client.MetadoneDesktopPane.serialVersionUID = 1L [static, private] |