Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to detect shift key was pressed from editor ruler double click action?

I've defined an editor ruler double click action through my plugin.xml like so:

   <extension
         point="org.eclipse.ui.editorActions">
      <editorContribution
            targetID="org.eclipse.cdt.ui.editor.CEditor"
            id="myplugin.editors.c.rulerActions">
         <action
               label="Not Used"
                class="myplugin.ui.actions.RulerToggleBreakpointActionDelegate"
               actionID="RulerDoubleClick"
               id="myplugin.editors.c.ManageBreakpointRulerAction">
         </action>

How do I detect if the shift key is currently pressed in the ruler double click action's createAction() method?

Regards,
Norman Yee





      


Back to the top