Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » underlying resource of an EditPart
underlying resource of an EditPart [message #707433] Mon, 01 August 2011 12:46 Go to next message
Max Odendahl is currently offline Max Odendahl
Messages: 4
Registered: August 2011
Junior Member
Hi,

I am inside an OpenEditPolicy where I have access to a Request and an Editpart.

How do I get the underlying filename or resource from which this view was created?

Thanks for help,
Max

[Updated on: Mon, 01 August 2011 12:46]

Report message to a moderator

Re: underlying resource of an EditPart [message #707866 is a reply to message #707433] Tue, 02 August 2011 02:42 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

do you want to get the filename of the EMF model file or the GMF file containing the layout etc?

Ralph
Re: underlying resource of an EditPart [message #707876 is a reply to message #707866] Tue, 02 August 2011 03:11 Go to previous messageGo to next message
Max Odendahl is currently offline Max Odendahl
Messages: 4
Registered: August 2011
Junior Member
Hi,

thanks for the reply. I guess I am looking for the EMF model file.

Best,
max
Re: underlying resource of an EditPart [message #707893 is a reply to message #707876] Tue, 02 August 2011 03:31 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

try this line of code:

resolveSemanticElement().eResource().getURI()


Ralph
Re: underlying resource of an EditPart [message #707927 is a reply to message #707893] Tue, 02 August 2011 04:31 Go to previous message
Max Odendahl is currently offline Max Odendahl
Messages: 4
Registered: August 2011
Junior Member
that's what I was looking for, thanks!

Previous Topic:the keyboard randomly stop responding in gmf application
Next Topic:How to create connection with popup buttons
Goto Forum:
  


Current Time: Sun Aug 31 00:39:31 EDT 2014

Powered by FUDForum. Page generated in 0.01653 seconds