Open sirius PropertySheet from a Table editor [message #1831962] |
Thu, 03 September 2020 14:20 |
Eclipse User |
|
|
|
Hello everyone,
I have a NatTable Editor and also a Sirius PropertyView that is triggered when Elements in the Model Explorer are selected.
What I need is the Sirius Property View to show the properties of the selected element in the natTable editor.
I implemented an ISelectionProvider in my Editor's site :
org.eclipse.ui.IWorkbenchSite.setSelectionProvider(ISelectionProvider)
and I used the following method to trigger the properties:
org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(IWorkbenchPart, ISelection)
but this opens the default property view, not the Sirius one.
from what I know, to provide contribution to the IPropertySheetPage, I must override the org.eclipse.ui.part.WorkbenchPart.getAdapter(Class<T>) :
@Override
public <T> T getAdapter(Class<T> key)
{
if (key.equals(IPropertySheetPage.class))
{
return key.cast(theSiriusPropertySheetPage());
}
else
{
return super.getAdapter(key);
}
}
However I don't know what I am suppose to do for theSiriusPropertySheetPage(). how can I call it ?
any help would be very appreciated.
thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03994 seconds