Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » outline view for diagram in Graphiti 0.9
outline view for diagram in Graphiti 0.9 [message #794264] Thu, 09 February 2012 04:37 Go to next message
Patrick Talbot is currently offline Patrick TalbotFriend
Messages: 36
Registered: November 2011
Member
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: Thu, 09 February 2012 04:37]

Report message to a moderator

Re: outline view for diagram in Graphiti 0.9 [message #794306 is a reply to message #794264] Thu, 09 February 2012 05:56 Go to previous messageGo to next message
Patrick Talbot is currently offline Patrick TalbotFriend
Messages: 36
Registered: November 2011
Member
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 09:27 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 14:24 Go to previous messageGo to next message
Patrick Talbot is currently offline Patrick TalbotFriend
Messages: 36
Registered: November 2011
Member
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 11:33 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 13:14 Go to previous message
Patrick Talbot is currently offline Patrick TalbotFriend
Messages: 36
Registered: November 2011
Member
Got it. Thanks!
Previous Topic:DiagramEditor default behaviour
Next Topic:Copy/Paste: why not Cut?
Goto Forum:
  


Current Time: Sat Apr 20 01:11:34 GMT 2024

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

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

Back to the top