|SelectionListener registration [message #1060989]
||Wed, 29 May 2013 12:34
| Andrea Sindico
Registered: November 2010
I have implemented a view which shall register itself as listner for changes in the XText editor and related outline. To this end I am adding this line|
in the createPartControl method of the view (which implements the ISelectionListener interface). In the selectionChanged method I therefore check whether the selection is a ITextSelection, the case in which it comes from the XTextEditor, or an IStructuredSelection, the case in which it come sfrom the Outline.
The problem is that, doing so, when I start Eclipse the outline is said to be "unavailable". If I click on the outline it is refreshed, the contents are shown and the listening view correctly updated.
What am I doing wrong and what should I do to avoid the initial "unavailability" of the outline?
Follow me on Twitter @andreasindico
[Updated on: Wed, 29 May 2013 12:34]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01792 seconds