Skip to main content


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 05:15 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior 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?





Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Custom editor and toolbar items [message #894407 is a reply to message #894393] Mon, 09 July 2012 06:57 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Fixed. It was because I had not provided the "contribtorClass" in the editor extension.

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Custom editor and toolbar items [message #894409 is a reply to message #894393] Mon, 09 July 2012 07:00 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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 07:30 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
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 07:40 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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 10:54 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
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 07:49 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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: Thu Mar 28 18:29:17 GMT 2024

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

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

Back to the top