Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Overriding the DiagramEditor class
Overriding the DiagramEditor class [message #892797] Fri, 29 June 2012 13:59 Go to next message
Dwight Naylor is currently offline Dwight Naylor
Messages: 12
Registered: June 2012
Junior Member
Hello All,

I have a custom graphiti project which modifies a great deal of the program's functionality. I'm tying to override the DiagramEditor class in order to make some specific changes to how the editor works. I was browsing the forums and this seems to be something commonly done, yet I couldn't figure out exactly how to do it.

I could make my own class which extended DiagramEditor of course, but I couldn't get graphiti to use it. I was wondering if somebody could walk me through this process of overriding the built-in editor with my own?

Any help is appreciated,
-Dwight
Re: Overriding the DiagramEditor class [message #892813 is a reply to message #892797] Fri, 29 June 2012 16:23 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 703
Registered: July 2009
Senior Member
You have to register your derived editor by using the org.eclipse.ui.editors extension point.
Next, if you want to manually call that editor, you would have to use the Workbench API to open an editor, just search for "eclipse open editor programmatically".
Re: Overriding the DiagramEditor class [message #892818 is a reply to message #892813] Fri, 29 June 2012 17:16 Go to previous message
Dwight Naylor is currently offline Dwight Naylor
Messages: 12
Registered: June 2012
Junior Member
Erdal,

This was exactly what I needed. Thank you so much for your help!
Previous Topic:Simple collapsefeature
Next Topic:TransactionalEditingDomain, separate model files, and the diagram
Goto Forum:
  


Current Time: Thu Apr 24 01:29:39 EDT 2014

Powered by FUDForum. Page generated in 0.02155 seconds