[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?
|
- From: Norman Yee <normankyee@xxxxxxxxx>
- Date: Tue, 20 Oct 2009 08:28:27 -0700 (PDT)
- Delivered-to: cdt-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1256052508; bh=NF4qE7ddTw42iv1fr1LfYcq8Ug9DpDyTpB+J/PfUXyw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=oGJ0vzfSqKDcR8wK5bvHv8hYgMHWtVQ0wPFJ0acrkHnnci4ByLBcCan+WbP7KGAd0hHG3DqibB8LWsjM9zC2BRk3EkKlizEK4mvFyuAgwsTVs+AZwaNiT8NuyE/J5L30C7kNDIQBsPFYoS4xP+j5sIFbKxHkHsKnf+b1620XzcY=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=nE5eVYIEC7mM9cb8uTJbrEmuTKLRuZhBnb9c9eRKjen1foJXU9oJJ64/oNGbdGqH4nPDvwkyOrLI7Hqp4ZmkvKW6eTNdX3ihhzDmIfNx+teXnLEymU8tA8ZbXDXuAlVRz+LcZffL4LToWJbK4gxpyk7eXsZ/UCYFoxZhjboa7Z4=;
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