Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » File goes dirty when existing item selected(EEF based editor marks file dirty when selecting an existing item in a EEF AdvancedTableComposition widget)
File goes dirty when existing item selected [message #986316] Mon, 19 November 2012 22:02
John Palof is currently offline John PalofFriend
Messages: 18
Registered: July 2009
Junior Member
I think I am missing a concept ...

I have implemented an EEF based editor and noticed that simply selecting an existing item in a EEF AdvancedTableComposition widget marks the file as dirty. This appears to be due to the org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor command stack listener issuing a firePropertyChange(IEditorPart.PROP_DIRTY). I don't see why selecting an existing item in a list should assume that the file will go dirty. In my case, I have selected an item in a master page from which a detail page will be rendered. Am I missing something here?

If not, I would like to avoid marking the file dirty when the PropertiesEditionEvents is of kind SELECTION_CHANGED. I thought I could do that by providing my own CommandStackListener which would avoid firing the dirty property change (i.e override org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor.initializeCommandStack). However, the command that was created by org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent.firePropertiesChanged(IPropertiesEditionEvent) is a org.eclipse.emf.eef.runtime.impl.command.StandardEdiSingCommand and doesn't have access to underlying PropertiesEditionEvent. My next thought was to provide my own Command class that would expose the PropertiesEditionEvent. However, I don't see how I can subclass StandardPropertiesEditionComponent due to the lack of access to the propagateEvent method (i.e. it's listeners).

At this point, I figured I am attempting to do something bad. Can someone enlighten me?

Thank you
Previous Topic:Call EMF Compare
Next Topic:[Texo] Generation Code
Goto Forum:

Current Time: Fri May 25 11:17:57 GMT 2018

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

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

Back to the top