|
|
|
|
|
|
|
Re: Showing Properties of EObjects without Selection [message #1831609 is a reply to message #1831591] |
Tue, 25 August 2020 05:17 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Normally an editor or a viewer provides its own contribution to the IPropertySheetPage by overriding org.eclipse.ui.part.WorkbenchPart.getAdapter(Class<T>). E.g., @Override
public <T> T getAdapter(Class<T> key)
{
if (key.equals(IPropertySheetPage.class))
{
return key.cast(createPropertySheetPage());
}
else
{
return super.getAdapter(key);
}
} And the editor or viewer implements ISelectionProvider or uses org.eclipse.ui.IWorkbenchSite.setSelectionProvider(ISelectionProvider) on the editor/viewer site so that its selection is automatically available as input to the property sheet page contributed by that editor or viewer.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04337 seconds