Examples of KeySequence


Examples of org.eclipse.jface.bindings.keys.KeySequence

    /**
     * @see org.eclipse.jface.action.ExternalActionManager.ICallback#isAcceleratorInUse(int)
     */
    public final boolean isAcceleratorInUse(final int accelerator) {
      final KeySequence keySequence = KeySequence
          .getInstance(SWTKeySupport
              .convertAcceleratorToKeyStroke(accelerator));
      return bindingManager.isPerfectMatch(keySequence)
          || bindingManager.isPartialMatch(keySequence);
    }
View Full Code Here

Examples of org.eclipse.jface.bindings.keys.KeySequence

      keyAdapter = new KeyAdapter() {
        @Override
        public void keyPressed(KeyEvent e) {
          int accelerator = SWTKeySupport
              .convertEventToUnmodifiedAccelerator(e);
          KeySequence keySequence = KeySequence
              .getInstance(SWTKeySupport
                  .convertAcceleratorToKeyStroke(accelerator));
          TriggerSequence[] sequences = getInvokingCommandKeySequences();
          if (sequences == null)
            return;
View Full Code Here

Examples of org.eclipse.jface.bindings.keys.KeySequence

      keyAdapter = new KeyAdapter() {
        @Override
        public void keyPressed(KeyEvent e) {
          int accelerator = SWTKeySupport
              .convertEventToUnmodifiedAccelerator(e);
          KeySequence keySequence = KeySequence
              .getInstance(SWTKeySupport
                  .convertAcceleratorToKeyStroke(accelerator));
          TriggerSequence[] sequences = getInvokingCommandKeySequences();
          if (sequences == null)
            return;
View Full Code Here

Examples of org.openbp.jaspira.action.keys.KeySequence

      StringTokenizer sto = new StringTokenizer(keys, JaspiraAction.KEY_SEQUENCE_DELIM);
      KeySequence[] sequences = new KeySequence[sto.countTokens()];

      for (int i = 0; sto.hasMoreTokens(); i++)
      {
        sequences[i] = new KeySequence(sto.nextToken());
      }

      // Simply perform a requestFocus operation when activated
      JaspiraAction action = new JaspiraAction(getName(), getTitle(), getDescription(), null, sequences, 0, JaspiraAction.TYPE_ACTION)
      {
View Full Code Here

Examples of org.openbp.jaspira.action.keys.KeySequence

      StringTokenizer sto = new StringTokenizer(keys, KEY_SEQUENCE_DELIM);
      keySequences = new KeySequence [sto.countTokens()];

      for (int i = 0; sto.hasMoreTokens(); i++)
      {
        keySequences [i] = new KeySequence(sto.nextToken());
      }
    }

    // Parse the names of the Jaspira pages that should display this action in the page menu or toolbar
    String pageNameStr = getActionPropertyString(PROPERTY_PAGE_NAMES);
View Full Code Here

Examples of org.openbp.jaspira.action.keys.KeySequence

      KeySequence [] sequences = action.getKeySequences();
      if (sequences != null)
      {
        for (int is = 0; is < sequences.length; ++is)
        {
          KeySequence sequence = sequences [is];
          if (sequence.length() == 1)
          {
            String actionId = "OE" + i;

            // Register the action id for the provided key code
            KeyStroke ks = sequence.getKeyAt(0);
            focusInputMap.put(ks, actionId);
            focusAncestorInputMap.put(ks, actionId);

            // Determine the command
            actionMap.put(actionId, action);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.