[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Add Button to Toolbar

Got it working with the standard Eclipse Extension Points e.g. org.eclipse.ui.menus.
Dont know if its a proper way, at least its working...




Patrick Schmitt schrieb:
Hello guys, as mentioned before in http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/msg06035.html
i am trying to add a button to the toobar of my RPC Editor.


I tried as descripted in the other post, but its not working.

I added follwoing extension to my plugin.xml

<extension id="mYpresentationContributionItemProvider"
name="mYpresentationContributionItemProvider" point="org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders">


<contributionItemProvider class="DSL.modding.oAWActionButtonProvider" checkPluginLoaded="false">
<Priority name="Lowest">
</Priority>
<partContribution class="org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart">
<toolbarPath="/toolbarFormatGroup" id="autoSizeAction2">
</partAction>
</partContribution>
</contributionItemProvider>
</extension>


The only result is that the constructor of DSL.modding.oAWActionButtonProvider got called, nothing else happens.

I think the next stept would be that createAction(..) from this class should get called, where i can add the IAction then.
I also created a class that implemts IDiagramWorkbenchPart, but i dont know where to instantiate it. Any help would be appreciated, I dont know what is the next step that the Button get shown..
Best Regards
Patrick