Community
Participate
Working Groups
An EC issue: I am having a problem with adding an editor action to the Ruler popup menu. Once my action is called I want call textEditor.getVerticalRuler().getLineOfLastMouseButtonActivity(); but getVerticalRuler() is a protected method of AbstractTextEditor. Is there some other way to get the line in the ruler area that the popup originated from? ----------------------------------------------------------- > Is this for an editor of your own devising, or for an arbitrary editor? The action is being added to an arbitrary editor. (Any editor that supports the targetID=\"#TextRulerContext\") > A better solution would be to pass the ruler to the actions which need it. > AbstractTextEditor, and certain subclasses like the Java editor do this. > They pass the ruler to the relevant actions when creating them. The action is an extension of org.eclipse.ui.popupMenus. I add the action to the Ruler popup menu. I don\'t think I have any way of changing how my action is called. NOTES:
PRODUCT VERSION: 127
Build 20020416.