Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 345347
Collapse All | Expand All

(-)src/org/eclipse/graphiti/ui/internal/editor/DiagramEditorInternal.java (-1 / +7 lines)
Lines 393-398 Link Here
393
		return new DiagramEditorContextMenuProvider(getGraphicalViewer(), getActionRegistry(), getConfigurationProvider());
393
		return new DiagramEditorContextMenuProvider(getGraphicalViewer(), getActionRegistry(), getConfigurationProvider());
394
	}
394
	}
395
395
396
	protected boolean shouldRegisterContextMenu() {
397
		return true;
398
	}
399
	
396
	/**
400
	/**
397
	 * Creates the GraphicalViewer AND navigation-bar on the specified
401
	 * Creates the GraphicalViewer AND navigation-bar on the specified
398
	 * <code>Composite</code>.
402
	 * <code>Composite</code>.
Lines 1161-1167 Link Here
1161
			getGraphicalViewer().setContextMenu(contextMenuProvider);
1165
			getGraphicalViewer().setContextMenu(contextMenuProvider);
1162
			// the registration allows an extension of the context-menu by other
1166
			// the registration allows an extension of the context-menu by other
1163
			// plugins
1167
			// plugins
1164
			getSite().registerContextMenu(contextMenuProvider, getGraphicalViewer());
1168
			if (shouldRegisterContextMenu()) {
1169
				getSite().registerContextMenu(contextMenuProvider, getGraphicalViewer());
1170
			}
1165
		}
1171
		}
1166
1172
1167
		// set contents
1173
		// set contents

Return to bug 345347