Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Jul 05 02:28:03 EDT 2025

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

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

Back to the top