| how to get file path created by wizard after the wizard execute [message #1099632] |
Sun, 01 September 2013 22:03  |
xiao yu zhou Messages: 13 Registered: August 2013 |
Junior Member |
|
|
hi gays,i know that this question is not suitable for this part. however, I do not know the right place for it.
i create a diagram file by another plugin's wizard,after the wizard execute,i need know the diagram file path. besides,since i get the wizard by its id,i can not change the code of that wizard. i will appreciate your help
|
|
|
| Re: how to get file path created by wizard after the wizard execute [message #1099756 is a reply to message #1099632] |
Mon, 02 September 2013 03:00   |
|
Hi,
Le 02/09/13 04:03, xiao yu zhou a écrit :
> hi gays,i know that this question is not suitable for this part.
> however, I do not know the right place for it.
> i create a diagram file by another plugin's wizard,after the wizard
> execute,i need know the diagram file path. besides,since i get the
> wizard by its id,i can not change the code of that wizard. i will
> appreciate your help
Not sur if its help, but have you checked the Drill-down tutorial ? The
snippet provided shows how to get all the diagrams inside the workspace.
You might check diff on diagram collection before and after executing
your wizard.
--
Nicolas H
|
|
|
|
|
| Re: how to get file path created by wizard after the wizard execute [message #1101412 is a reply to message #1099632] |
Wed, 04 September 2013 08:27  |
Michael Wenz Messages: 1370 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
The ability to get a file for an EMF resource (in which the diagram is
stored) depends on the type and location of the resource. It must
a) be represented as a file
b) exist in the Eclipse workspace
The internal Graphiti class
org.eclipse.graphiti.ui.internal.services.impl.EmfService has several
methods getFile that might be interesting to solve this.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.02105 seconds