Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSaving values modified from property sheet
https://www.eclipse.org/forums/index.php/mv/msg/188397/597634/#msg_597634
Originally posted by: rodrigo.garcia.kotasoft.com
Hi,
I want to know how to setDirty my editor when a property of my model is
changed from the propertySheetPage.
I have this in my editor:
protected PropertySheetPage getPropertySheetPage()
{
if (null == propertySheetPage)
{
propertySheetPage = new PropertySheetPage();
propertySheetPage.setPropertySourceProvider(new
EObjectPropertySourceProvider());
}
return propertySheetPage;
}
public Object getAdapter(Class adapter) {
if (adapter == IPropertySheetPage.class)
return getPropertySheetPage();
// the super implementation handles the rest
return super.getAdapter(adapter);
}
The propertySheet shows the differents properties of my model and let me
edit, but I need to save the new values.