| Loading diagram provider when graphiti editor is to open [message #625777] |
Wed, 22 September 2010 06:25  |
|
Hi,
I have a use-case where i am opening the graphiti editor on a model file but keeping the diagram file in temp location.
Hence, user can not save his changes across IDE sessions.
Problem:
When i open the file using graphiti editor, i want to create the Diagram in the temp URI and then instantiate DiagramProvider.
How can i hook into open process of default graphiti editor ?
Regards,
Ashwani Kr Sharma
|
|
|
|
|
| Re: Loading diagram provider when graphiti editor is to open [message #626137 is a reply to message #625913] |
Wed, 22 September 2010 07:26  |
Michael Wenz Messages: 1267 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Right. You would create your editor input object and pass it to the
DiagramEditor. This could e.g. be done in an action that can be triggered
from a project explorer. In that case no overriding of the editor should be
necessary.
Regards,
Michael
"Ashwani Kr Sharma" <ashw.kumar@gmail.com> wrote in message
news:i7cn1v$bjl$1@news.eclipse.org...
> Thanks Michael.
>
> The approach of overriding DiagramEditor is understood.
> About the other approach of creating my own input. I that case where will
> set the input to the editor ?
> I think in that i will need to create an action where i do it, or still
> override DiagramEditor and replace the input from FileEditorInput to mine
> in the init() method.
>
> Regards,
> Ashwani Kr Sharma
|
|
|
Powered by
FUDForum. Page generated in 0.12942 seconds