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 am not able to do interaction between the editor and views.

Please give me some sample code snippets for this.

staticbeast
  • 2,073
  • 2
  • 22
  • 24
Mathan
  • 11
  • 1

1 Answers1

0

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 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. regards Mathan – Mathan Oct 26 '09 at 08:48