[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Properties View and TextEditor (or EditorPart)
|
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!