|
Re: Graphiti as RCP [message #1059963 is a reply to message #1059920] |
Wed, 22 May 2013 11:26 |
Andrej K Messages: 26 Registered: March 2013 Location: germany |
Junior Member |
|
|
for now my code is looking like this:
public Object execute(ExecutionEvent event) throws ExecutionException {
System.out.println("trying to open Graphiti Editor");
File f = new File("C:\\...\\myDiagram.diagram");
IPath ipath = new Path(f.getAbsolutePath());
IFileStore fileLocation = EFS.getLocalFileSystem().getStore(ipath);
FileStoreEditorInput input = new FileStoreEditorInput(
fileLocation);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
try {
page.openEditor(input, "org.eclipse.graphiti.ui.editor.DiagramEditor");
} catch (PartInitException e) {
e.printStackTrace();
}
return null;
}
myDiagram.diagram was created with graphiti editor
I get NullPointerException in my try-catch block
what I'm doing wrong to open the editor?
Thanks in advance,
Andrej K
[Updated on: Wed, 22 May 2013 11:27] Report message to a moderator
|
|
|
|
|
|
|
Re: Graphiti as RCP [message #1060576 is a reply to message #1060354] |
Mon, 27 May 2013 07:03 |
Andrej K Messages: 26 Registered: March 2013 Location: germany |
Junior Member |
|
|
Hello!
Have one more question, how can I "say" to my RCP application that I saved my graphiti editor?
I've extended DiagramEditor and overwritten doSave method and would to say to my rcp-application that i saved my/this diagram.
I've tried to Export an package which a class which i want to call at graphiti and imported this class in my graphiti project, but i get a cycle
How i should procedure?
Thanks in advance,
Andrej K
[Updated on: Mon, 27 May 2013 08:02] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04191 seconds