Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Displaying a given EObject element
Displaying a given EObject element [message #201897] Thu, 14 August 2008 04:56
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

As an alternative to my previous thread, I'd like to be able to open up
a window to display a given EObject container:

private ShapeNodeEditPart selectedElement;

EObject selected = ((Node) selectedElement.getModel()).getElement();
EObject target = /referencing a new element through selected/;

How can I get a command or request to open this window? I think that if
I can get a Diagram from the EObject, I can use a new
OpenDiagramCommand(diagram) to open it, e.g.:

Diagram d = /create new diagram from EObject target/;
ICommand c = new OpenDiagramCommand(d);
op.execute(c);

Any help would be appreciated.

Thanks

Jevon
Previous Topic:update gmf files directly
Next Topic:Can I open a GMF editor in the background without displaying it?
Goto Forum:
  


Current Time: Fri Apr 26 10:53:58 GMT 2024

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

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

Back to the top