Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Problem opening ecore_diagram file/dynamic diagram generation
Problem opening ecore_diagram file/dynamic diagram generation [message #384803] Fri, 19 June 2009 17:54 Go to next message
Eclipse UserFriend
Originally posted by: watertext.hotmail.it

Greetings, i'm creating an eclipse plugin, it has a view that make some
calculations and then create a diagram that is displayed on the editor, my
actual solution is that the view creates an .ecore and an ecore_diagram file
using dom, save them locally and then calls the editor (very ugly), the
problem is that I cant open the ecore_diagram because the file do not
belongs to any project.



As far as I know eclipse is not able (at the moment) to open diagram files
outside the workspace as is described on this thread:

http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2tools/msg00724.html



(my plugin doesn't use any project or workspace files, the data is passed
directly inside the view)



So i made a temporary solution, is to take any project using
ResourcesPlugin.getWorkspace().getRoot().getProjects()[0] and create
temporary links by file.createLink and then load the diagram (very ugly too)



It would be nice to get rid of the serialized models, I just don't need
them, so my questions are:



- How can i extend the editor and set by myself the correct iPath ,
IEditorinput or something else to make it able to open the ecore_diagram?



- Or how can i extend the ecore diagram editor to directly create the
model -> diagram and display it?



- there is another way to get a solution?



Sorry for my long post, I hope that I'm asking on the right thread and
thanks in advance



Max Shell
Re: Problem opening ecore_diagram file/dynamic diagram generation [message #384806 is a reply to message #384803] Sat, 20 June 2009 09:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26235
Registered: July 2009
Senior Member
Max,

This sounds like a GMF question, so best to ask there. I've added that
newsgroup to the "to" list of the reply, so no need to repost.


Max Shell wrote:
> Greetings, i'm creating an eclipse plugin, it has a view that make some
> calculations and then create a diagram that is displayed on the editor, my
> actual solution is that the view creates an .ecore and an ecore_diagram file
> using dom, save them locally and then calls the editor (very ugly), the
> problem is that I cant open the ecore_diagram because the file do not
> belongs to any project.
>
>
>
> As far as I know eclipse is not able (at the moment) to open diagram files
> outside the workspace as is described on this thread:
>
> http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2tools/msg00724.html
>
>
>
> (my plugin doesn't use any project or workspace files, the data is passed
> directly inside the view)
>
>
>
> So i made a temporary solution, is to take any project using
> ResourcesPlugin.getWorkspace().getRoot().getProjects()[0] and create
> temporary links by file.createLink and then load the diagram (very ugly too)
>
>
>
> It would be nice to get rid of the serialized models, I just don't need
> them, so my questions are:
>
>
>
> - How can i extend the editor and set by myself the correct iPath ,
> IEditorinput or something else to make it able to open the ecore_diagram?
>
>
>
> - Or how can i extend the ecore diagram editor to directly create the
> model -> diagram and display it?
>
>
>
> - there is another way to get a solution?
>
>
>
> Sorry for my long post, I hope that I'm asking on the right thread and
> thanks in advance
>
>
>
> Max Shell
>
>
>
Re: Problem opening ecore_diagram file/dynamic diagram generation [message #616724 is a reply to message #384803] Sat, 20 June 2009 09:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26235
Registered: July 2009
Senior Member
Max,

This sounds like a GMF question, so best to ask there. I've added that
newsgroup to the "to" list of the reply, so no need to repost.


Max Shell wrote:
> Greetings, i'm creating an eclipse plugin, it has a view that make some
> calculations and then create a diagram that is displayed on the editor, my
> actual solution is that the view creates an .ecore and an ecore_diagram file
> using dom, save them locally and then calls the editor (very ugly), the
> problem is that I cant open the ecore_diagram because the file do not
> belongs to any project.
>
>
>
> As far as I know eclipse is not able (at the moment) to open diagram files
> outside the workspace as is described on this thread:
>
> http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2tools/msg00724.html
>
>
>
> (my plugin doesn't use any project or workspace files, the data is passed
> directly inside the view)
>
>
>
> So i made a temporary solution, is to take any project using
> ResourcesPlugin.getWorkspace().getRoot().getProjects()[0] and create
> temporary links by file.createLink and then load the diagram (very ugly too)
>
>
>
> It would be nice to get rid of the serialized models, I just don't need
> them, so my questions are:
>
>
>
> - How can i extend the editor and set by myself the correct iPath ,
> IEditorinput or something else to make it able to open the ecore_diagram?
>
>
>
> - Or how can i extend the ecore diagram editor to directly create the
> model -> diagram and display it?
>
>
>
> - there is another way to get a solution?
>
>
>
> Sorry for my long post, I hope that I'm asking on the right thread and
> thanks in advance
>
>
>
> Max Shell
>
>
>
Previous Topic:Problem opening ecore_diagram file/dynamic diagram generation
Next Topic:[Announce] Xtext Webinar - Jul. 15
Goto Forum:
  


Current Time: Fri Nov 28 00:47:35 GMT 2014

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

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