Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » EditPart Access
EditPart Access [message #527744] Fri, 16 April 2010 10:52 Go to next message
Miguel  is currently offline Miguel Friend
Messages: 3
Registered: February 2010
Junior Member
Hi all,

I want to access to an EditPart of a selected element in my diagram. I think than if i can access to the EditPart i could access to the figure and change some propeties an child elements of this figure.

Can someone help me??

Thanks,
Miguel
Re: EditPart Access [message #528034 is a reply to message #527744] Mon, 19 April 2010 00:43 Go to previous messageGo to next message
Ugo Sangiorgi is currently offline Ugo SangiorgiFriend
Messages: 59
Registered: January 2010
Member
You might retrieve the active editor
DiagramEditor editor = (DiagramEditor) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getActiveEditor()

then
editor.getDiagramEditPart().getChildren()

will give you all the NodeEditParts of your diagram
:)

Miguel escreveu:
> Hi all,
>
> I want to access to an EditPart of a selected element in my diagram. I
> think than if i can access to the EditPart i could access to the figure
> and change some propeties an child elements of this figure.
>
> Can someone help me??
>
> Thanks,
> Miguel
Re: EditPart Access [message #528541 is a reply to message #528034] Tue, 20 April 2010 20:56 Go to previous message
Miguel  is currently offline Miguel Friend
Messages: 3
Registered: February 2010
Junior Member
thank you so much!!!
Previous Topic:SharedEditingDomain for an abstract class?
Next Topic:How to add a feature label to a link displaying features of another class
Goto Forum:
  


Current Time: Tue Mar 19 09:51:34 GMT 2024

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

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

Back to the top