Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:20
fares kallel is currently offline fares kallelFriend
Messages: 9
Registered: May 2020
Junior Member
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: Tue Oct 27 22:23:28 GMT 2020

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

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

Back to the top