Home » Modeling » Epsilon » SVG(Installing GMF Experimental SVG)
SVG [message #1016062] |
Mon, 04 March 2013 13:57  |
Eclipse User |
|
|
|
Dear All,
I am trying to install "GMF Experimental SDK" in my ecllipse, and I did the following: Help->install new software->all available sites->GMF: But I only saw GMF Runtime SDK, and GMF notation SDK. are they the same with GMF Experimental SDK? If No how do I install GMF Experimental SDK?
I also need some help on how to place my.svg SVG file into my.plugin, so that I can refer it as "figure="svg", svg.uri="platform:/plugin/my.plugin/path/to/my.svg". Which steps should I follow to do these?
Regards
Joshua
|
|
| |
Re: SVG [message #1016142 is a reply to message #1016087] |
Tue, 05 March 2013 03:35   |
Eclipse User |
|
|
|
Dear Antonio,
Thanks for your reply, but I am still unable to resolve this. I have taken the following steps, though I am not sure if what I did is correct: Help->install new software->add->I pasted the link you sent to me into location: Then it gave me the following message: " could not find http://download.eclipse.org/modeling/gmp/emf/updates/releases/".
I am really sorry for asking these very basic questions, I know they might be annoying, but on which of the project folders can I find the My.Plugin, and the SVG sub folder? I have the following folders and sub folders in the project:
Eclipse.org.epsilon.eugenia.exercise1. Inside this I have the following subfolders:SRC, JRE System Library, Plugin dependencies, META-INF, and Model.
Then when I run Eugenia other folders such as .test, .edit, .diagram, and .editor will be generated.
Regards
Joshua
|
|
|
Re: SVG [message #1016151 is a reply to message #1016142] |
Tue, 05 March 2013 04:22   |
Eclipse User |
|
|
|
Joshua Nwokeji wrote on Tue, 05 March 2013 03:35
Thanks for your reply, but I am still unable to resolve this. I have taken the following steps, though I am not sure if what I did is correct: Help->install new software->add->I pasted the link you sent to me into location: Then it gave me the following message: " could not find http://download.eclipse.org/modeling/gmp/emf/updates/releases/".
Oh, I gave you the wrong address, sorry! It's this one:
http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/releases/
(Edit: I've added a link to this update site to the official docs.)
Joshua Nwokeji wrote on Tue, 05 March 2013 03:35
I am really sorry for asking these very basic questions, I know they might be annoying, but on which of the project folders can I find the My.Plugin, and the SVG sub folder? I have the following folders and sub folders in the project:
Eclipse.org.epsilon.eugenia.exercise1. Inside this I have the following subfolders:SRC, JRE System Library, Plugin dependencies, META-INF, and Model.
Then when I run Eugenia other folders such as .test, .edit, .diagram, and .editor will be generated.
"my.plugin" is just a placeholder name for documentation . You should probably create the "svg" folder inside your ".diagram" plugin. To refer to "svg/your.svg" inside the ".diagram" plugin, you'd want to use this annotation in your .emf file:
@gmf.node(figure="svg", svg.uri="platform:/plugin/Eclipse.org.epsilon.eugenia.exercise1.diagram/svg/your.svg")
[Updated on: Tue, 05 March 2013 04:32] by Moderator
|
|
|
Re: SVG [message #1016187 is a reply to message #1016151] |
Tue, 05 March 2013 06:57   |
Eclipse User |
|
|
|
Dear Antonio,
Once again thanks for your help, I have installed GMF Experimental SDK, but I still have some problem with SVG. I have done the following.
I created a new project called : "eclipse.org.epsilon.eugenia.exercise6".
Step2: I created a new plugin project as follows: New->Project->Plugin Project, I named it myplugin. Then I created a new folder in "myplugin" called SVG: as follows: New->Folder.
Step 3: I pasted Goal.svg file inside the SVG folder in my plugin (myplugin/SVG/GOAL.svg).
Step 4: Below is the .emf code
@namespace(uri="http://paper/1.0", prefix="paper")
package paper;
@gmf.diagram(foo="bar")
class UseCaseD {
val link[+] gg;
val node[+] has;
}
@gmf.node(label= "name")
abstract class node {
attr String name;
}
@gmf.link( target.decoration = "arrow", source="from", target="to")
class link {
ref node[1] from;
ref node[1] to;
}
@gmf.node( label = "name", figure="rectangle", size="1,1")
class Actor extends node {
}
@gmf.node( label = "name", figure="svg", svg.uri="platform:/plugin/Eclipse.org.epsilon.eugenia.exercise6.myplugin/SVG/GOL.svg")
class UseCaseWithSVGFigure extends node {
}
@gmf.link( target.decoration = "arrow", source="from", target="to", label = "include")
class Include extends link {
attr String name;
}
@gmf.link( target.decoration = "arrow", source="from", target="to", label = "extend")
class Extend extends link {
attr String title;
}
Step 5: I ran the .emf file, and I got the error below:
"An internal error occurred during: "Generating all GMF models".
org/eclipse/gmf/internal/bridge/genmodel/DefaultViewmapProducer$LayoutTypeSwitch"
Please how do I resolve this. If you send me your e-mail address I can attach the core diagram to you. mine is J.Nwokeji@mdx.ac.uk
Regards
Joshua
[Updated on: Tue, 05 March 2013 12:40] by Moderator
|
|
| | | | | | | |
Re: SVG [message #1016964 is a reply to message #1016940] |
Fri, 08 March 2013 06:21   |
Eclipse User |
|
|
|
Joshua Nwokeji wrote on Fri, 08 March 2013 04:42
Sorry for replying late, I was down with flu throughout yesterday, so I couldnt work.
That's OK. Health always comes first .
Joshua Nwokeji wrote on Fri, 08 March 2013 04:42
Eugenia runs normally without throwing any exceptions, and pops out the message "code genertion completed successfully" but after succesful completions, it gives me the error sign in the .diagram plugin. If I expand it the error signs appear in src and Meta-INF sub folders. May be there is something I am not doing right.
If its okay with you, I can upload the project in my dropbox folder and share the folder with you (if you give me an e-mail address). This might make it easier for you to find out any mistakes I made.
No problem. This article has our email address for private examples (right at the end):
http://eclipse.org/epsilon/doc/articles/minimal-examples/
Joshua Nwokeji wrote on Fri, 08 March 2013 04:42
Please how do I upload those examples in Epsilon? I mean the examples in http://dev.eclipse.org/svnroot/modeling/org.eclipse.epsilon/trunk/examples/
You can download these examples using a regular Subversion client. I use TortoiseSVN in Windows and the command-line tool in Linux, but I don't have a Mac, so I can't really recommend you a good client there. You need to use the "checkout" command on that URL.
If you don't know Subversion, read chapters 1 and 2 of the official book. They're a quick read, and everyone should be using some version control system anyway .
http://svnbook.red-bean.com/nightly/en/index.html
|
|
| | | | | | | | | | | | | | | | |
Goto Forum:
Current Time: Tue Jul 22 11:07:47 EDT 2025
Powered by FUDForum. Page generated in 0.11254 seconds
|