Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Saving values modified from property sheet
Saving values modified from property sheet [message #597634] Tue, 19 May 2009 04:31
Eclipse UserFriend
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.

Any idea?

Thanks in advance.
Previous Topic:RCP roduct Launch fails when defining "-configuration" switch
Next Topic:How to detect if launching from eclipse
Goto Forum:
  


Current Time: Thu Jul 03 19:21:27 EDT 2025

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

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

Back to the top