OutlinePage [message #242601] |
Mon, 09 April 2007 07:28  |
Eclipse User |
|
|
|
I have an Eclipse plugin that is basically a selectionListener which
listens to selection changes in the Ouline View.
How can I get my plugin to work even if the user closes the Outline View ?
I've tried getting the content Outline Page from the active editor and
adding the listener to that page but this doesn't work with the Outline
View closed:
IEditorPart editor = page.getActiveEditor();
IContentOutlinePage outlinePage = (IContentOutlinePage)
editor.getAdapter(IContentOutlinePage.class);
outlinePage.addSelectionChangedListener(selectionListener);
Or is there any other way of getting the IJavaElement that the user is
reading/writing at any givent moment ?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09683 seconds