Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Custom editor and toolbar items(Custom editor and toolbar items)
Custom editor and toolbar items [message #894393] Mon, 09 July 2012 01:15 Go to next message
Neeraj Bhusare is currently offline Neeraj Bhusare
Messages: 93
Registered: July 2009
Location: India
Member
Hi,
I have a custom editor that overrides some of the methods from the Graphiti DiagramEditor. I have done something similar to this thread. On opening the editor, the items (Layout, Zoom, Grid...) don't show up in the main toolbar. Am I missing something here? Is there anything in addition that needs to be done for the toolbar items to show?





Best regards, Neeraj
Re: Custom editor and toolbar items [message #894407 is a reply to message #894393] Mon, 09 July 2012 02:57 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj Bhusare
Messages: 93
Registered: July 2009
Location: India
Member
Fixed. It was because I had not provided the "contribtorClass" in the editor extension.

Best regards, Neeraj
Re: Custom editor and toolbar items [message #894409 is a reply to message #894393] Mon, 09 July 2012 03:00 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1571
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Probably you will need to add
org.eclipse.graphiti.ui.editor.DiagramEditorActionBarContributor (or a
subclass of it) as the contributor class to your editor's plugin.xml entry.
This class adds the stuff to the menu and toolbar.

Michael
Re: Custom editor and toolbar items [message #894414 is a reply to message #894409] Mon, 09 July 2012 03:30 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
Is it planned to use the menu contributions extension point for this?
Re: Custom editor and toolbar items [message #894934 is a reply to message #894414] Wed, 11 July 2012 03:40 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1571
Registered: July 2009
Location: Walldorf, Germany
Senior Member
I haven't tried that, but it should already be possible by adding stuff to
the editor's id using that extension point.

Michael
Re: Custom editor and toolbar items [message #894988 is a reply to message #894934] Wed, 11 July 2012 06:54 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
I was thinking of migrating the contributed actions (which are pre 3.3) to use the menu contributions extension point... That would allow custom editors to not worry about setting the contributorClass...

Michael Wenz wrote on Wed, 11 July 2012 03:40
I haven't tried that, but it should already be possible by adding stuff to
the editor's id using that extension point.

Michael

Re: Custom editor and toolbar items [message #895219 is a reply to message #894988] Thu, 12 July 2012 03:49 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1571
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Ah, I see...

Sounds like a good idea. Would you please file an enhancement bugzilla for
this?

Thanks,
Michael
Previous Topic:change visulization when selecting Object in diagram
Next Topic:Problem with EReference
Goto Forum:
  


Current Time: Wed Jul 23 14:20:29 EDT 2014

Powered by FUDForum. Page generated in 0.03238 seconds