Community
Participate
Working Groups
return new DiagramEditorContextMenuProvider(getGraphicalViewer(), getActionRegistry(), getConfigurationProvider());
}
protected boolean shouldRegisterContextMenu() {
return true;
/**
* Creates the GraphicalViewer AND navigation-bar on the specified
* <code>Composite</code>.
getGraphicalViewer().setContextMenu(contextMenuProvider);
// the registration allows an extension of the context-menu by other
// plugins
getSite().registerContextMenu(contextMenuProvider, getGraphicalViewer());
if (shouldRegisterContextMenu()) {
// set contents