Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problems with UndoablePropertySheetEntry and Tabbed Properties View
Problems with UndoablePropertySheetEntry and Tabbed Properties View [message #238524] Mon, 17 September 2007 18:24
h1055071 is currently offline h1055071Friend
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.
Previous Topic:Ruler and graph centering questions
Next Topic:Need help setting up GEF contributor environment
Goto Forum:

Current Time: Tue Jun 19 03:33:01 GMT 2018

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

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

Back to the top