Graphiti as RCP [message #1059920] |
Wed, 22 May 2013 04:00  |
Eclipse User |
|
|
|
Hello!
I've build kind of prototype Editor with Graphiti, where I tried out how this and that works and what is possible.
Now i want to build my prototype in existing or leastwise as new RCP application. I'm new at RCP.
I have an RCP application with a menu where i should load my editor in my running rcp. (This menu works, i can write into console if I press this menu).
I made an extension in graphiti editor and extension in my RCP application + few dependencies to graphiti editor and graphiti self like: org.eclipse.graphiti
My question is how can I open my graphiti editor in rcp application? I had red this post:
http://satreth.blogspot.ch/2011/08/using-graphiti-in-eclipse-rcp.html
(but it don't really works or I'm using it wrong)
closely to say „opening a diagram", but "DiagramEditorFactory" doesn't work anymore (has been renamed to DiagramEditorInputFactory)
Can somebody give me an idea or code snippet how i can open my editor in/as RCP application? Unfortunately i find through internet investigation just this code snippet
Thanks in advance,
Andrej K
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Graphiti as RCP [message #1062129 is a reply to message #1061980] |
Thu, 06 June 2013 03:12  |
Eclipse User |
|
|
|
i was trying to write like:
public String[] myImageIdentifier= new String[xy];
public String[] path= new String[xy];
...
myImageIdentifier[0]="id1";
path[0]="/folder/something.png"
addImageFilePath(myImageIdentifier[index], path[index]);
i think it is possible to "load/create" ImageIdentifier at runtime, but how can i manipulate the path by-self?
Cause after the start i convert my Images from .svg to .png (cause i can't use svg directly), only after converting i know which images are there and only after this i can put them to my editor/pictogram elements
how can i handle this?
Thanks in advance,
Andrej K
|
|
|
Powered by
FUDForum. Page generated in 0.07441 seconds