views:

75

answers:

1

I have an editor, this is suppose to interact with property sheet and outline views.I used Iselectionprovider interface to achieve this.But i cannot able to do interaction between these editor and views. Please give me some sample code snippets for this.

Thanks in advance Mathan

A: 

Type Alt+Shift+F1 right in the middle of your Java editor.
That will display the class of that editor:org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor

You will have then ton of example of listener between that editor and various other views, like that org.eclipse.jface.util.PropertyChangeEvent.

In short, Plug-in Spy is your friend for this kind of code exploration.

VonC
How to use IPropertySourceProvider and IAdaptable for editors.I have got some examples for views only.Can you provide some sample code snippets for editor and properties view binding.regardsMathan
Mathan