Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 195284 Details for
Bug 345347
There should be a way to not allow other plugins to contribute to the diagram context menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Disallow context menu contributions from other plugins.
bug_345347.txt (text/plain), 1.38 KB, created by
Shenxue Zhou
on 2011-05-10 19:10:37 EDT
(
hide
)
Description:
Disallow context menu contributions from other plugins.
Filename:
MIME Type:
Creator:
Shenxue Zhou
Created:
2011-05-10 19:10:37 EDT
Size:
1.38 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.graphiti.ui >Index: src/org/eclipse/graphiti/ui/internal/editor/DiagramEditorInternal.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.gmp/org.eclipse.gmp.graphiti/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/DiagramEditorInternal.java,v >retrieving revision 1.28 >diff -u -r1.28 DiagramEditorInternal.java >--- src/org/eclipse/graphiti/ui/internal/editor/DiagramEditorInternal.java 11 Apr 2011 11:56:27 -0000 1.28 >+++ src/org/eclipse/graphiti/ui/internal/editor/DiagramEditorInternal.java 10 May 2011 23:08:11 -0000 >@@ -393,6 +393,10 @@ > return new DiagramEditorContextMenuProvider(getGraphicalViewer(), getActionRegistry(), getConfigurationProvider()); > } > >+ protected boolean shouldRegisterContextMenu() { >+ return true; >+ } >+ > /** > * Creates the GraphicalViewer AND navigation-bar on the specified > * <code>Composite</code>. >@@ -1161,7 +1165,9 @@ > getGraphicalViewer().setContextMenu(contextMenuProvider); > // the registration allows an extension of the context-menu by other > // plugins >- getSite().registerContextMenu(contextMenuProvider, getGraphicalViewer()); >+ if (shouldRegisterContextMenu()) { >+ getSite().registerContextMenu(contextMenuProvider, getGraphicalViewer()); >+ } > } > > // set contents
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
michael.wenz
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 345347
: 195284