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 16:46 Go to next message
Max Odendahl is currently offline Max OdendahlFriend
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 16:46]

Report message to a moderator

Re: underlying resource of an EditPart [message #707866 is a reply to message #707433] Tue, 02 August 2011 06:42 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
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 07:11 Go to previous messageGo to next message
Max Odendahl is currently offline Max OdendahlFriend
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 07:31 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
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 08:31 Go to previous message
Max Odendahl is currently offline Max OdendahlFriend
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: Fri Nov 28 07:23:37 GMT 2014

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

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