Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add Button to Toolbar
Add Button to Toolbar [message #233257] Wed, 10 June 2009 11:00 Go to next message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Hello guys,
as mentioned before in
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg06035.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.contributi onItemProviders ">
<contributionItemProvider class="DSL.modding.oAWActionButtonProvider"
checkPluginLoaded="false">
<Priority name="Lowest">
</Priority>
<partContribution
class=" org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPa rt ">
<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
Re: Add Button to Toolbar [message #233283 is a reply to message #233257] Wed, 10 June 2009 13:16 Go to previous message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
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/m sg06035.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.contributi onItemProviders ">
>
> <contributionItemProvider
> class="DSL.modding.oAWActionButtonProvider" checkPluginLoaded="false">
> <Priority name="Lowest">
> </Priority>
> <partContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPa rt ">
> <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
>
Previous Topic:How to simulate a label of a link when link and label are of different EClasses?
Next Topic:BorderedItem on Link
Goto Forum:
  


Current Time: Mon Mar 30 11:43:53 GMT 2020

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

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

Back to the top