Package org.eclipse.jface.bindings.keys

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


   */
  private final void selectedButtonAdd() {
    final ParameterizedCommand command = getParameterizedCommand();
    final String contextId = getContextId();
    final String schemeId = getSchemeId();
    final KeySequence keySequence = getKeySequence();
    localChangeManager.removeBindings(keySequence, schemeId, contextId,
        null, null, null, Binding.USER);
    localChangeManager.addBinding(new KeyBinding(keySequence, command,
        schemeId, contextId, null, null, null, Binding.USER));
    update(true);
View Full Code Here


   * sequence.
   */
  private final void selectedButtonRemove() {
    final String contextId = getContextId();
    final String schemeId = getSchemeId();
    final KeySequence keySequence = getKeySequence();
    localChangeManager.removeBindings(keySequence, schemeId, contextId,
        null, null, null, Binding.USER);
    localChangeManager.addBinding(new KeyBinding(keySequence, null,
        schemeId, contextId, null, null, null, Binding.USER));
    update(true);
View Full Code Here

   * context.
   */
  private final void selectedButtonRestore() {
    String contextId = getContextId();
    String schemeId = getSchemeId();
    KeySequence keySequence = getKeySequence();
    localChangeManager.removeBindings(keySequence, schemeId, contextId,
        null, null, null, Binding.USER);
    update(true);
  }
View Full Code Here

      if (event.processor == StructuredContentAssistProcessor.this ||
          (event.processor instanceof CompoundContentAssistProcessor &&
              ((CompoundContentAssistProcessor)event.processor).containsProcessor(StructuredContentAssistProcessor.this))) {
       
        fIterationGesture= getIterationGesture();
        KeySequence binding= getIterationBinding();
 
        // This may show the warning dialog if all categories are disabled
        resetCategoryIteration();
        for (Iterator it= StructuredContentAssistProcessor.this.getProposalCategories().iterator(); it.hasNext();) {
          CompletionProposalCategory cat= (CompletionProposalCategory) it.next();
View Full Code Here

      if (event.processor == StructuredContentAssistProcessor.this ||
          (event.processor instanceof CompoundContentAssistProcessor &&
              ((CompoundContentAssistProcessor)event.processor).containsProcessor(StructuredContentAssistProcessor.this))) {
       
        fIterationGesture= getIterationGesture();
        KeySequence binding= getIterationBinding();
 
        // This may show the warning dialog if all categories are disabled
        resetCategoryIteration();
        for (Iterator it= StructuredContentAssistProcessor.this.getProposalCategories().iterator(); it.hasNext();) {
          CompletionProposalCategory cat= (CompletionProposalCategory) it.next();
View Full Code Here

   *
   * @param control the control to watch for focus
   * @since 3.2
   */
    private void addCommandSupport(final Control control) {
      final KeySequence commandSequence= fContentAssistant.getRepeatedInvocationKeySequence();
      if (commandSequence != null && !commandSequence.isEmpty() && fContentAssistant.isRepeatedInvocationMode()) {
        control.addFocusListener(new FocusListener() {
          private CommandKeyListener fCommandKeyListener;
          public void focusGained(FocusEvent e) {
            if (Helper.okToUse(control)) {
              if (fCommandKeyListener == null) {
View Full Code Here

    public void keyPressed(KeyEvent e) {
      if (!Helper.okToUse(fProposalShell))
        return;
     
      int accelerator= SWTKeySupport.convertEventToUnmodifiedAccelerator(e);
      KeySequence sequence= KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator));
      if (sequence.equals(fCommandSequence))
        if (fContentAssistant.isPrefixCompletionEnabled())
          incrementalComplete();
        else
          showProposals(false);
     
View Full Code Here

    if (keyAdapter == null) {
      keyAdapter = new KeyAdapter() {
        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

   *
   * @param control the control to watch for focus
   * @since 3.2
   */
    private void addCommandSupport(final Control control) {
      final KeySequence commandSequence= fContentAssistant.getRepeatedInvocationKeySequence();
      if (commandSequence != null && !commandSequence.isEmpty() && fContentAssistant.isRepeatedInvocationMode()) {
        control.addFocusListener(new FocusListener() {
          private CommandKeyListener fCommandKeyListener;
          public void focusGained(FocusEvent e) {
            if (Helper.okToUse(control)) {
              if (fCommandKeyListener == null) {
View Full Code Here

    public void keyPressed(KeyEvent e) {
      if (!Helper.okToUse(fProposalShell))
        return;

      int accelerator= SWTKeySupport.convertEventToUnmodifiedAccelerator(e);
      KeySequence sequence= KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator));
      if (sequence.equals(fCommandSequence))
        if (fContentAssistant.isPrefixCompletionEnabled())
          incrementalComplete();
        else
          showProposals(false);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.bindings.keys.KeySequence

Copyright © 2018 www.massapicom. 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.