Skip to main content


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: 702
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: 702
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: Thu Apr 18 02:51:01 GMT 2024

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

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

Back to the top