Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get the figures and their acions in the GMF editor?
How to get the figures and their acions in the GMF editor? [message #225394] Fri, 10 April 2009 07:14 Go to next message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Hello,

I want to get the figures and their actions and then load them in other
viewer, so I need to finish createPartControl method, but I don't know how
to get all of the contents I have done in the editor.

public void createPartControl(Composite parent) {
graphicalViewer = new ScrollingGraphicalViewer();
canvas = (FigureCanvas) graphicalViewer.createControl(parent);
ScalableFreeformRootEditPart root = new ScalableFreeformRootEditPart();
graphicalViewer.setRootEditPart(root);
graphicalViewer.setEditDomain(new EditDomain());
graphicalViewer.setEditPartFactory(new PartFactory());
graphicalViewer.setContents(diagram);
}

Would you please help me?

Thank you very much!

Regards,
changqing
Re: How to get the figures and their acions in the GMF editor? [message #225801 is a reply to message #225394] Tue, 14 April 2009 12:33 Go to previous message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
No one knows something about this?

Or who can tell me how to get the relative objects?

Thanks!

Regards,
changqing
Previous Topic:Resizing BorderItem after saving
Next Topic:Retrieve EditPart by EObject and Diagram
Goto Forum:
  


Current Time: Fri Apr 26 22:04:21 GMT 2024

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

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

Back to the top