Package org.eclipse.jface.bindings

Examples of org.eclipse.jface.bindings.TriggerSequence.format()


   * @return {@link String} representing the user command to iterate to the next page
   */
  private String getIterationGesture() {
    TriggerSequence binding= getIterationBinding();
    return binding != null ?
        NLS.bind(SSEUIMessages.ContentAssist_press, new Object[] { binding.format() })
        : SSEUIMessages.ContentAssist_click;
  }

  /**
   * @return {@link KeySequence} used by user to iterate to the next page
View Full Code Here


        setStatusMessage(com.aptana.shared_core.string.StringUtils.format(string, getIterationGesture()));
    }

    private String getIterationGesture() {
        TriggerSequence binding = KeyBindingHelper.getContentAssistProposalBinding();
        return binding != null ? binding.format() : "completion key";
    }

    /**
     * Available for stopping the completion.
     */
 
View Full Code Here

          @Override
          public String getText() {
            IBindingService bs = (IBindingService) PlatformUI.getWorkbench().getService(IBindingService.class);
            TriggerSequence binding = bs.getBestActiveBindingFor(provider.getId());

            return binding != null ? NLS.bind(Messages.ApplicationActionBarAdvisor_SHARE_BINDING, provider.getName(), binding.format()) : provider.getName();
          }

          @Override
          public boolean isEnabled() {
            return isEnabled;
View Full Code Here

  @Override
  public String getText() {
    IBindingService bs = (IBindingService) PlatformUI.getWorkbench().getService(IBindingService.class);
    TriggerSequence binding = bs.getBestActiveBindingFor(ID);

    return binding != null ? NLS.bind(Messages.MakeNewsStickyAction_NEWS_STICKY_BINDING, binding.format()) : Messages.MakeNewsStickyAction_NEWS_STICKY;
  }

  /*
   * @see org.eclipse.jface.action.Action#getStyle()
   */
 
View Full Code Here

  }

  private String getLabelWithBinding(String id, String label) {
    TriggerSequence binding = fBindingService.getBestActiveBindingFor(id);
    if (binding != null)
      return NLS.bind(Messages.NewTypeDropdownAction_LABEL_BINDING, label, binding.format());

    return label;
  }
}
View Full Code Here

  @Override
  public String getText() {
    IBindingService bs = (IBindingService) PlatformUI.getWorkbench().getService(IBindingService.class);
    TriggerSequence binding = bs.getBestActiveBindingFor(ID);

    return binding != null ? NLS.bind(Messages.ArchiveNewsAction_ARCHIVE_NEWS_BINDING, binding.format()) : Messages.ArchiveNewsAction_ARCHIVE_NEWS;
  }

  /*
   * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
   */
 
View Full Code Here

  }

  private String getLabelWithBinding(String id, String label, boolean forToolTip) {
    TriggerSequence binding = fBindingService.getBestActiveBindingFor(id);
    if (binding != null)
      return forToolTip ? (NLS.bind(Messages.CoolBarAdvisor_LABEL_KEY, label, binding.format())) : (NLS.bind(Messages.CoolBarAdvisor_LABEL_TAB_KEY, label, binding.format()));

    return label;
  }
}
View Full Code Here

  }

  private String getLabelWithBinding(String id, String label, boolean forToolTip) {
    TriggerSequence binding = fBindingService.getBestActiveBindingFor(id);
    if (binding != null)
      return forToolTip ? (NLS.bind(Messages.CoolBarAdvisor_LABEL_KEY, label, binding.format())) : (NLS.bind(Messages.CoolBarAdvisor_LABEL_TAB_KEY, label, binding.format()));

    return label;
  }
}
View Full Code Here

      return Messages.LabelAction_REMOVE_ALL_LABELS;

    IBindingService bs = (IBindingService) PlatformUI.getWorkbench().getService(IBindingService.class);
    TriggerSequence binding = bs.getBestActiveBindingFor(Controller.LABEL_ACTION_PREFIX + fLabel.getId());

    return binding != null ? NLS.bind(Messages.LabelAction_LABEL_BINDING, fLabel.getName(), binding.format()) : fLabel.getName();
  }

  /*
   * @see org.eclipse.jface.action.Action#isEnabled()
   */
 
View Full Code Here

  @Override
  public String getText() {
    IBindingService bs = (IBindingService) PlatformUI.getWorkbench().getService(IBindingService.class);
    TriggerSequence binding = bs.getBestActiveBindingFor(ID);

    return binding != null ? NLS.bind(Messages.ToggleReadStateAction_NEWS_READ_BINDING, binding.format()) : Messages.ToggleReadStateAction_NEWS_READ;
  }

  /*
   * @see org.eclipse.jface.action.Action#isChecked()
   */
 
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.