Skip to main content



      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
Eclipse UserFriend
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?



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
Eclipse UserFriend
Fixed. It was because I had not provided the "contribtorClass" in the editor extension.
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 24 18:14:51 EDT 2025

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

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

Back to the top