Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » files inside jar
files inside jar [message #163922] Mon, 03 December 2007 15:57 Go to next message
Eclipse UserFriend
Originally posted by: r.q.com

Hi,

When we double click on a java file inside a jar file, it open the file
but it is not editable. Similarly when in one of our classes whose super
class is inside a jar we can go to the super class but can not edit it. I
am trying to implement similar functionality in My EMF/GMF models. In our
GMF diagram we are adding nodes which are referencing the emf elements
which are inside a jar file. What I want is when I dbl click on that node
in diagram, it should open the emf editor for that referenced emf element.
When we are double clicking on that emf element (inside jar) in the
project navigator it is opening that element in the emf editor but when we
are double clicking the element in the diagram it doesnot open it. Please
guide me which part of the code I should look at. Curently when we dbl
click on a node on the diagram it opens the referenced emf element's in
emf editor if the emf element is local to project means not in a jar.

Thanks
Re: files inside jar [message #163923 is a reply to message #163922] Mon, 03 December 2007 17:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.q.com

Long story short "How to read an EMF Model from a jar file inside a
workbench and open it in its emf editor?" Its happening through the
project navigator which we have for our application but we want to put
this functionality for nodes (on dbl click) on gmf diagrams? so please
point me to the right direction.


>>-------------
When we double click on a java file inside a jar file, it open the file
but it is not editable. Similarly when in one of our classes whose super
class is inside a jar we can go to the super class but can not edit it. I
am trying to implement similar functionality in My EMF/GMF models. In our
GMF diagram we are adding nodes which are referencing the emf elements
which are inside a jar file. What I want is when I dbl click on that node
in diagram, it should open the emf editor for that referenced emf element.
When we are double clicking on that emf element (inside jar) in the
project navigator it is opening that element in the emf editor but when we
are double clicking the element in the diagram it doesnot open it. Please
guide me which part of the code I should look at. Curently when we dbl
click on a node on the diagram it opens the referenced emf element's in
emf editor if the emf element is local to project means not in a jar.
Re: files inside jar [message #163924 is a reply to message #163923] Mon, 03 December 2007 18:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.q.com

Please let me know how to read resources if I have URIs as follows

"jar:platform:/resource/.../libs/xxx.jar!/model/gmf_dig_file "

Please any help.
Re: files inside jar [message #164426 is a reply to message #163924] Wed, 05 December 2007 13:42 Go to previous message
Eclipse UserFriend
Originally posted by: r.q.com

I am putting all my diagrams in a jar and putting those jars in the
classpath of another projects. When user double click on a node which is
representing the diagram in the same project I can go ahead and open it
but when it is inside the jar I am not able to that the uri i get is

URI = "jar:platform:/resource/.../libs/xxx.jar!/model/gmf_dig_file "

Let me know how can i get the absolute path or any other way.

Please any ideas or answers....

----------------------
Please let me know how to read resources if I have URIs as follows

"jar:platform:/resource/.../libs/xxx.jar!/model/gmf_dig_file "
Previous Topic:exception in graphics.rotate
Next Topic:Help with node mapping for one metamodel and two diagrams.
Goto Forum:
  


Current Time: Fri Sep 19 05:49:50 EDT 2025

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

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

Back to the top