Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CEditor/OverviewRuler events or listeners?
CEditor/OverviewRuler events or listeners? [message #140359] Tue, 08 March 2005 17:16
Eclipse UserFriend
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
Previous Topic:Help: CDT Java build Path issue
Next Topic:Error Eclipse+CDT+Cygwin+XP! Help!
Goto Forum:
  


Current Time: Thu May 29 12:07:44 EDT 2025

Powered by FUDForum. Page generated in 0.02905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top