Package org.eclipse.jface.bindings.keys

Examples of org.eclipse.jface.bindings.keys.KeySequence.format()


      return null; // couldn't find a suitable key binding
    }

    return MessageFormat.format(Util.translateString(RESOURCE_BUNDLE,
        "openPreferencePage"), //$NON-NLS-1$
        new Object[] { keySequence.format() });
  }

  /**
   * Creates the content area for the key assistant. This creates a table and
   * places it inside the composite. The composite will contain a list of all
View Full Code Here


        addCheckBox(appearanceComposite, "Add 'self' automatically when declaring methods?", AUTO_ADD_SELF, 0);

        KeySequence down = KeyBindingHelper.getCommandKeyBinding(ITextEditorActionDefinitionIds.MOVE_LINES_DOWN);
        KeySequence up = KeyBindingHelper.getCommandKeyBinding(ITextEditorActionDefinitionIds.MOVE_LINES_UP);
        String downKey = down != null ? down.format() : "Alt+Down"; //set the default if not there
        String upKey = up != null ? up.format() : "Alt+Up"; //set the default if not there
        addCheckBox(appearanceComposite,
                com.aptana.shared_core.string.StringUtils.format("Smart move for line up  (%s) and line down (%s)?.", upKey, downKey),
                SMART_LINE_MOVE, 0);

        addLabel(appearanceComposite, "Note: smart move line up/down change applied on editor restart.", 20);
View Full Code Here

public class TerminateAllLaunchesAction extends PyAction implements IUpdate {

    public TerminateAllLaunchesAction() {
        KeySequence binding = KeyBindingHelper
                .getCommandKeyBinding("org.python.pydev.debug.ui.actions.terminateAllLaunchesAction");
        String str = binding != null ? "(" + binding.format() + " when on Pydev editor)" : "(unbinded)";

        this.setImageDescriptor(PydevPlugin.getImageCache().getDescriptor(UIConstants.TERMINATE_ALL));
        this.setToolTipText("Terminate ALL." + str);

        update();
View Full Code Here

    public void update() {
        IProcess process = console.getProcess();
        setEnabled(true);
        KeySequence binding = KeyBindingHelper
                .getCommandKeyBinding("org.python.pydev.debug.ui.actions.relaunchLastAction");
        String str = binding != null ? "(" + binding.format() + " when on Pydev editor)" : "(unbinded)";
        if (process.canTerminate()) {
            this.setImageDescriptor(PydevPlugin.getImageCache().getDescriptor(UIConstants.RELAUNCH));
            this.setToolTipText("Restart the current launch. " + str);

        } else {
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.