org.eclipse.xtext.ui.editor.embedded
Class ActionActivationCode

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.embedded.ActionActivationCode

public class ActionActivationCode
extends java.lang.Object

Utility to match keystrokes.

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 java.lang.String fActionId
          The action id.
 char fCharacter
          The character.
 int fKeyCode
          The key code.
 int fStateMask
          The state mask.
 
Constructor Summary
ActionActivationCode(java.lang.String actionId)
          Creates a new action activation code for the given action id.
 
Method Summary
 boolean matches(org.eclipse.swt.events.VerifyEvent event)
          Returns true if this activation code matches the given verify event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fActionId

public java.lang.String fActionId
The action id.


fCharacter

public char fCharacter
The character.


fKeyCode

public int fKeyCode
The key code.


fStateMask

public int fStateMask
The state mask.

Constructor Detail

ActionActivationCode

public ActionActivationCode(java.lang.String actionId)
Creates a new action activation code for the given action id.

Parameters:
actionId - the action id
Method Detail

matches

public boolean matches(org.eclipse.swt.events.VerifyEvent event)
Returns true if this activation code matches the given verify event.

Parameters:
event - the event to test for matching
Returns:
whether this activation code matches event