|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.sysord.mad.ui.MAD
public class MAD
Main view for the Model Aggregator eDitor.
Field Summary |
---|
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
MAD()
Default constructor. |
Method Summary | |
---|---|
protected void |
_selectionChanged(org.eclipse.emf.ecore.EObject eObject)
Notified when the selection has changed. |
protected void |
addConfigurationManagerListener()
Add a ConfigurationManager.ConfigurationManagerListener for reloading the view when the
configuration have changed. |
protected void |
addModelCacheListener()
Add a listener to the ModelCache for listening to foreign models changes. |
protected void |
addModelSelectionListener()
Add the listener given by getSelectionChangedListener() to the
ModelSelectionPlugin . |
protected SWTSpecificWidgetContext |
createContext(org.eclipse.swt.widgets.Composite parentComposite)
|
void |
createContextMenuManager(org.eclipse.swt.widgets.Control... controls)
Create the context menu for the current tabbed container. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
protected void |
fillContextMenu(org.eclipse.jface.action.IMenuManager contextMenuManager)
Fill the view context menu. |
protected com.sysord.modeling.modelselection.IModelSelectionListener |
getSelectionChangedListener()
Returns a IModeltSelectionListener for listening the selection of EObjects. |
protected void |
init()
|
protected void |
initializePreferences()
Initialize MAD with the defined preferences. |
void |
setFocus()
|
protected void |
update(org.eclipse.emf.ecore.EObject eObject)
Updates the preferences provider and the layer selection for the given EObject . |
protected void |
updateLayerSelection()
Updates the layer selection from the project preferences if the selected EObject is in an other project than the previous selected EObject. |
protected void |
updateProjectPreferenceProvider(org.eclipse.emf.ecore.EObject eObject)
Updates the current Project Preference Provider for the project containing the resource of the given EObject . |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public MAD()
Method Detail |
---|
protected void init()
protected void addModelSelectionListener()
getSelectionChangedListener()
to the
ModelSelectionPlugin
.
protected void initializePreferences()
protected com.sysord.modeling.modelselection.IModelSelectionListener getSelectionChangedListener()
IModeltSelectionListener
for listening the selection of EObjects.
IModelSelectionListener
.public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
protected SWTSpecificWidgetContext createContext(org.eclipse.swt.widgets.Composite parentComposite)
protected void _selectionChanged(org.eclipse.emf.ecore.EObject eObject)
eObject
- protected void update(org.eclipse.emf.ecore.EObject eObject)
EObject
.
eObject
- protected void updateProjectPreferenceProvider(org.eclipse.emf.ecore.EObject eObject)
EObject
.
eObject
- protected void updateLayerSelection()
protected void addModelCacheListener()
ModelCache
for listening to foreign models changes.
protected void addConfigurationManagerListener()
ConfigurationManager.ConfigurationManagerListener
for reloading the view when the
configuration have changed.
public void createContextMenuManager(org.eclipse.swt.widgets.Control... controls)
controls
- Control
s for which the context menu will be set.protected void fillContextMenu(org.eclipse.jface.action.IMenuManager contextMenuManager)
manager
- public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |