[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Properties View and TextEditor (or EditorPart)

Hi,
an excellent example from Wayne Beaton for the usage of Adaptors can be found here:


http://www.eclipse.org/articles/article.php?file=Article-Adapters/index.html

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter

epoch wrote:
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!