[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: how to Bridge GEF with EMF

In the generated editor you have a method called getPropertySheetPage().
Try to replace it with this one:

public IPropertySheetPage getPropertySheetPage() {
if (fPropertySheetPage == null) {
fPropertySheetPage = new PropertySheetPage();
UndoablePropertySheetEntry rootEntry = new UndoablePropertySheetEntry(getCommandStack());
rootEntry.setPropertySourceProvider(new MyPartsContentProvider(fAdapterFactory));
fPropertySheetPage.setRootEntry(rootEntry);
}


		return fPropertySheetPage;
	}