Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » how to get file path created by wizard after the wizard execute
how to get file path created by wizard after the wizard execute [message #1099632] Mon, 02 September 2013 02:03 Go to next message
xiao yu zhou is currently offline xiao yu zhouFriend
Messages: 20
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 07:00 Go to previous messageGo to next message
Eclipse UserFriend
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 #1100346 is a reply to message #1099756] Tue, 03 September 2013 02:17 Go to previous messageGo to next message
xiao yu zhou is currently offline xiao yu zhouFriend
Messages: 20
Registered: August 2013
Junior Member
Hi Nicolas,
Thank you for your clue,but I don't know what you mean the drill-down tutorial.Is it the tutorial in eclipse graphiti help?
By the way,I solve the problem by not a very elegant method.i forked a new plugin from the older one and changed the wizard. now I can get the file path.
Re: how to get file path created by wizard after the wizard execute [message #1100496 is a reply to message #1100346] Tue, 03 September 2013 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Xiao,

Le 03/09/13 04:17, xiao yu zhou a écrit :
> Hi Nicolas,
> Thank you for your clue,but I don't know what you mean the drill-down
> tutorial.Is it the tutorial in eclipse graphiti help?
> By the way,I solve the problem by not a very elegant method.i forked a
> new plugin from the older one and changed the wizard. now I can get the
> file path.

Above, the URL for the Drill-down tutorial on the Eclipse Graphiti Help.

http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Fgfw%2Fdrill-down.htm&cp=25_1_3_11

Regards,

--
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 12:27 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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
Previous Topic:graphiti diagram editor xmi persistence encoding
Next Topic:Selection Listener
Goto Forum:
  


Current Time: Thu Apr 25 22:09:56 GMT 2024

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

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

Back to the top