Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » "New" Context menu on the custom virtual nodes in the Project Explorer View(Un-necessary appeareance of "New->Ecore Diagram" etc.. context menu on custom virtual nodes in the project explorer view.)
"New" Context menu on the custom virtual nodes in the Project Explorer View [message #654314] Tue, 15 February 2011 05:56
Phani Chaitanya is currently offline Phani ChaitanyaFriend
Messages: 2
Registered: February 2011
Junior Member
When we right-click on the nodes in the project explorer, we can see "New->Ecore Diagram" and "New->Ecore Tools Project" (This is on an eclipse launched application - not able to get it on the eclipse project from which we launched that eclipse). But the issue is, if we are creating custom virtual nodes in the project explorer view and we want a custom pop-up menu for "New->". This can be achieved by contributing to navigator content extension point and adding the common wizard element and enablements to it corresponding to the wizard IDs.

But the problem is the plugin "org.eclipse.emf.ecoretools.diagram" does not define any enablements to the common wizard elements due to which the "New->Ecore diagram" etc... show up even on the "New->" context menu of the custom virtual nodes.

Though I'm saying custom "New->" menu, I'm using the WizardActionGroup class and customizing the wizards that need to show up through contributing to the extension point and enabling in the common wizard element of that extension point. Please take a look at the contribution made by the specified emf plugin to "org.eclipse.ui.navigator.navigatorcontent" (there are 2 contributions of which in one, there defines the common wizard element with no instances of enablements provided causing it to enable on anything on right click).
Previous Topic:"New" Context menu on the custom virtual nodes in the Project Explorer View
Next Topic:About sync and file callback mechanism ?
Goto Forum:
  


Current Time: Fri Apr 26 09:55:31 GMT 2024

Powered by FUDForum. Page generated in 0.08210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top