CEditor/OverviewRuler events or listeners? [message #140359] |
Tue, 08 March 2005 17:16 |
Eclipse User |
|
|
|
Hi,
I have my own SA view which contains a table viewer. the elements
contains the file (IResource) and line number in the file, where the
error occurred. For each element in the table viewer, I also set an IMarker.
when I select an item in my view, I launch the CEditor (CDT Editor),
passing the IMarker:
IEditorPart ed = IDE.openEditor(page, marker);
The editor pops into view, pointing to the line of code, as described in
the Marker class.
I've noticed in the right-hand side or margin, there's a ruler
(OverviewRuler?), which also has retectangle markers. This allows you to
navigate the whole file, to the line of code, when clicking on these
markers.
I would like to be able to sync the selection (event) of these Editor
markers, and update (setSelction) my SA view, with the corresponding
file and line number.
I can also have several editors opened at one time, so as I select them,
I would like my SA view to update accordingly.
Are there any "listeners" that I can bind to using the editor
information from "IDE.openEditor"?
Is it possible for the CEditor, to send an update, or change events to
the table viewer, in my view?
Would I ned to bind mouse listeners to the plug-in's shell?
thanks in advance for any ideas!
regards,
frank
|
|
|
Powered by
FUDForum. Page generated in 0.02905 seconds