DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Integrating GMF editor with a custom Eclipse Forms editor
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2008
Default Integrating GMF editor with a custom Eclipse Forms editor - 12-21-2008, 04:43 AM

I'm trying to build a multi-page editor that consists of the diagram editor page created with GMF and a Eclipse Forms editor page with custom widgets. To do this i have followed the instructions in the "Create an Eclipse Forms editor with widgets for your properties" recipe, and the "Integrating GMF and EMF editors" tutorial. I have first built the GMF and EMF editor, integrated them according to the tutorial, then stripped all the pages created by the EMF editor, and added my custom page.
Everything works well until I hit the save button. After that my ItemProvider in the Forms editor losses the connection to the model, or as I see it, the diagram editor starts pointing to a different model instance. I do not recieve any notification from the ItemProvider in the form editor, nor do the changes I make in that editor affect the model that is viewed in the diagram editor (and these changes cannot be saved). Also, my PropertySheet seems to change a wrong instance of the model until I select a node in the diagram after save.
Does anybody know how I can keep tracking the right resources in my custom editor?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoCompile in Eclipse Custom Editor lolita Eclipse 2 03-11-2009 03:47 PM
Eclipse visual editor sakthikumaran Eclipse 0 10-06-2008 02:09 AM
Hiding a editor programmatically in eclipse rcp gautam_manoj Eclipse 0 07-10-2008 10:46 AM
JSP Editor for Eclipse? ramesh_manian Java 1 06-24-2008 08:27 AM
Eclipse Visual Editor. amitvyavahare Eclipse 0 02-29-2008 06:07 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com