Problems with UndoablePropertySheetEntry and Tabbed Properties View [message #238524] |
Mon, 17 September 2007 18:24 |
h1055071 Messages: 335 Registered: July 2009 |
Senior Member |
|
|
I have a GEF Editor where I am trying to use a Tabbed Properties View
instead of the default Properties View. In my
GraphicalEditorWithFlyoutPalette type editor I return thus:
public Object getAdapter(Class type) {
if(adapter == IPropertySheetPage.class) {
return new TabbedPropertySheetPage(this);
}
return super.getAdapter(type);
}
And in order to add a (GEF) UndoablePropertySheetEntry as root entry to
the TabbedPropertySheetPage I have created a Tabbed Properties section thus:
public class UndoableAdvancedPropertySection extends
AdvancedPropertySection {
public void setInput(IWorkbenchPart part, ISelection selection) {
super.setInput(part, selection);
page.setRootEntry((IPropertySheetEntry)part.getAdapter(IProp ertySheetEntry.class));
}
}
This sets the page root entry to a singleton UndoablePropertySheetEntry
that is returned by the GEF Editor.
This works fine. However, when the Properties View is closed and
dispose() is called on UndoableAdvancedPropertySection this effectively
disposes of the singleton UndoablePropertySheetEntry.
My problem is that I need to be able to catch the dispose() of the
UndoablePropertySheetEntry but I can't find a way to do so.
Thanks in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.03741 seconds