Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Problem in Loading a saved file(Opening a saved file )
Problem in Loading a saved file [message #547940] Tue, 20 July 2010 08:52 Go to next message
No real name is currently offline No real name
Messages: 9
Registered: July 2010
Junior Member
In the graphiti editor each of my files is being saved in .diagram format. I am being unable to reopen the saved files in the diagram editor. I shall like to know how to reopen the saved files in the diagram editor

[Updated on: Tue, 20 July 2010 09:00]

Report message to a moderator

Re: Problem in Loading a saved file [message #549400 is a reply to message #547940] Mon, 26 July 2010 15:01 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1592
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi,

You should create a FileEditorInput for that file and pass it to PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor. As editor id for that id you can use the constant defined in DiagramEditor.DIAGRAM_EDITOR_ID.

-Michael
Re: Problem in Loading a saved file [message #550452 is a reply to message #549400] Fri, 30 July 2010 12:25 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 9
Registered: July 2010
Junior Member
Where should I create FileEditorInput and how do i create it
Re: Problem in Loading a saved file [message #550472 is a reply to message #550452] Fri, 30 July 2010 13:23 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1592
Registered: July 2009
Location: Walldorf, Germany
Senior Member
This question is really generic. What do you want to achive with the
FileEditorInput?

To create a FileEditorInput you would simply use its constructor.

-Michael

<atinruia@gmail.com> wrote in message news:i2ugbk$4t7$1@build.eclipse.org...
> Where should I create FileEditorInput and how do i create it
Previous Topic:How to link to non modelelements
Next Topic:Re: Problem in Loading a saved file
Goto Forum:
  


Current Time: Tue Sep 16 21:30:52 GMT 2014

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

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