Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Custom Property Sheet listener and events(Custom Property Sheet listener and events)
Custom Property Sheet listener and events [message #1734732] Fri, 10 June 2016 18:01 Go to next message
swaroop shastri is currently offline swaroop shastriFriend
Messages: 2
Registered: February 2016
Location: Bangalore
Junior Member
I have created a customproperty sheet in GEF for my ecore model
public class MyProperty extends AbstractPropertySection...
....
It has some text boxes, which are connected to element (ecore model) on canvas. If I change say label/name of element in canvas , it reflects on the property sheet and vice versa.

The issue is, when I change any text , it does not fire following code present on the canvas....could you tell me how to set dirty flag for this operation?

@Override
public void commandStackChanged(EventObject event) {

firePropertyChange(PROP_DIRTY);

Thanks in advance
Re: Custom Property Sheet listener and events [message #1743709 is a reply to message #1734732] Mon, 19 September 2016 07:44 Go to previous message
Matthias Wienand is currently offline Matthias WienandFriend
Messages: 148
Registered: March 2015
Senior Member
When using the Eclipse UI AbstractPropertySection, no undoable commands are generated. Therefore, you should use org.eclipse.gef.ui.properties.UndoablePropertySheetPage as an alternative so that undoable commands are created for property changes.

Best regards,
Matthias
Previous Topic:[GEF4] Cross container drag and drop with JavaFX
Next Topic:Moving child part from one parent part to other
Goto Forum:
  


Current Time: Mon Jul 23 17:34:44 GMT 2018

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

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

Back to the top