Hello
I am having trouble linking an EditorPart to a PropertiesView. Maybe I
have a fundamental misunderstanding but I hope that somebody can help me
figure this out.
I have made it so that my EditorPart implements IAdaptable, ISelection
and ISelectionProvider and I have set my EditorPart to be a selection
provider using getSite().setSelectionProvider().
However, if I set my getAdapter() method to be:
public Object getAdapter(Class clazz) {
System.out.println(clazz.getName());
return super.getAdapter(clazz);
}
I can see that IPropertySource is never requested. I can also see that
IPropertySheet is requested and I have tried to return a custom instance
of IPropertySheet but this did not work either.
Could somebody suggest what is the best way make an EditorPart (the
current editor) to contribute to Properties View?
Cheers!