Skip to main content



      Home
Home » Eclipse Projects » Sirius » Open sirius PropertySheet from a Table editor
Open sirius PropertySheet from a Table editor [message #1831962] Thu, 03 September 2020 14:20
Eclipse UserFriend
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

Previous Topic:Problem to create node from palette
Next Topic:Refreshing project dependencies programmatically
Goto Forum:
  


Current Time: Fri Jun 13 10:32:56 EDT 2025

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

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

Back to the top