"New" Context menu on the custom virtual nodes in the Project Explorer View [message #654314] |
Tue, 15 February 2011 05:56 |
Phani Chaitanya 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).
|
|
|
Powered by
FUDForum. Page generated in 0.08210 seconds