Skip to main content



      Home
Home » Modeling » Graphiti » outline view for diagram in Graphiti 0.9
outline view for diagram in Graphiti 0.9 [message #794264] Wed, 08 February 2012 23:37 Go to next message
Eclipse UserFriend
I finally moved to the latest Graphiti 0.9 milestone, and am faced with a problem with some code I was using to create a custom outline view.

This seems to have been noted down in comment #6 of bug #336488
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336488#c6

However I see no answer to that comment, and methods like getCommonKeyHandler() and getActionRegistryInternal() are not accessible anymore.

So my question is: what is the recommended strategy to implement an outline view now with Graphiti 0.9?

Any pointers will be greatly appreciated!

Thanks in advance,
-Patrick

[Updated on: Wed, 08 February 2012 23:37] by Moderator

Re: outline view for diagram in Graphiti 0.9 [message #794306 is a reply to message #794264] Thu, 09 February 2012 00:56 Go to previous messageGo to next message
Eclipse UserFriend
In the end, I've overriden getCommonKeyHandler() and getActionRegistry() in my DiagramEditor subclass... Is that the proper way to do it?
Re: outline view for diagram in Graphiti 0.9 [message #794431 is a reply to message #794306] Thu, 09 February 2012 04:27 Go to previous messageGo to next message
Eclipse UserFriend
That's possible, but the better way would be to adapt the DiagramEditor to
KeyHandler rsp. ActionRegistry.

Michael
Re: outline view for diagram in Graphiti 0.9 [message #794631 is a reply to message #794431] Thu, 09 February 2012 09:24 Go to previous messageGo to next message
Eclipse UserFriend
You mean overriding getAdapter(Class) instead?
Re: outline view for diagram in Graphiti 0.9 [message #795360 is a reply to message #794631] Fri, 10 February 2012 06:33 Go to previous messageGo to next message
Eclipse UserFriend
No, I meant calling DiagramEditor.getAdapter(Class) instead. Sorry for not
being clear.

Michael
Re: outline view for diagram in Graphiti 0.9 [message #795422 is a reply to message #795360] Fri, 10 February 2012 08:14 Go to previous message
Eclipse UserFriend
Got it. Thanks!
Previous Topic:DiagramEditor default behaviour
Next Topic:Copy/Paste: why not Cut?
Goto Forum:
  


Current Time: Wed Jul 23 05:08:08 EDT 2025

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

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

Back to the top