|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DiagramContextMenuProvider com.ibm.etools.systems.application.visual.editor.providers.ApplicationModelDiagramContextMenuProvider
public class ApplicationModelDiagramContextMenuProvider
Context menu provider for Application Diagram. It filters out unnecessary GMF pre-defined context menus.
Field Summary | |
---|---|
static String |
copyright
|
protected IEditorPart |
editorPart
|
protected List |
removedGroupIds
|
protected List |
removedGroupItemIds
|
Constructor Summary | |
---|---|
ApplicationModelDiagramContextMenuProvider(EditPartViewer viewer,
ActionRegistry actionRegistry,
IEditorPart editorPart)
Constructor. |
Method Summary | |
---|---|
void |
add(IContributionItem item)
Add action. |
protected void |
addWithoutFilter(IContributionItem item)
Avoids the filtering done above to retrieve the navigate group items from the contribution item service. |
void |
appendToGroup(String groupName,
IAction action)
|
void |
appendToGroup(String groupName,
IContributionItem item)
|
void |
buildContextMenu(IMenuManager menuManager)
|
protected void |
buildSwitchViewMenu()
Build switch view menu. |
void |
dispose()
Disposes of this menu manager and frees all allocated SWT resources. |
IMenuManager |
findMenuUsingPath(String path)
Override from MenuManager. |
String |
getId()
Returns the menu id. |
void |
insert(int index,
IContributionItem item)
Override various insert / append methods of ContributionManager by ignoring any IllegalArgumentException exception. |
void |
insertAfter(String ID,
IAction action)
|
void |
insertAfter(String ID,
IContributionItem item)
|
void |
insertBefore(String ID,
IAction action)
|
void |
insertBefore(String ID,
IContributionItem item)
|
boolean |
isDiagramEditPartSelected()
Return true if the current selected object is diagram editpart, false otherwise. |
void |
prependToGroup(String groupName,
IAction action)
|
void |
prependToGroup(String groupName,
IContributionItem item)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
protected IEditorPart editorPart
protected List removedGroupIds
protected List removedGroupItemIds
Constructor Detail |
---|
public ApplicationModelDiagramContextMenuProvider(EditPartViewer viewer, ActionRegistry actionRegistry, IEditorPart editorPart)
viewer:
- the editpart vieweractionRegistry:
- the action registry of the editoreditorPart:
- the editor partMethod Detail |
---|
public String getId()
public void buildContextMenu(IMenuManager menuManager)
org.eclipse.gef.ContextMenuProvider#buildContextMenu(org.eclipse.jface.action.IMenuManager)
public boolean isDiagramEditPartSelected()
protected void buildSwitchViewMenu()
public void add(IContributionItem item)
protected void addWithoutFilter(IContributionItem item)
item
- public IMenuManager findMenuUsingPath(String path)
public void dispose()
removeAll
for that purpose.
public void insert(int index, IContributionItem item)
public void insertAfter(String ID, IAction action)
public void insertAfter(String ID, IContributionItem item)
public void insertBefore(String ID, IAction action)
public void insertBefore(String ID, IContributionItem item)
public void prependToGroup(String groupName, IAction action)
public void prependToGroup(String groupName, IContributionItem item)
public void appendToGroup(String groupName, IAction action)
public void appendToGroup(String groupName, IContributionItem item)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |