Package org.eclipse.ui.commands

Examples of org.eclipse.ui.commands.ICommand


   * (non-Javadoc)
   *
   * @see org.eclipse.commands.ICommandListener#commandChanged(org.eclipse.commands.CommandEvent)
   */
  public final void commandChanged(final CommandEvent commandEvent) {
    final ICommand command = new CommandLegacyWrapper(commandEvent.getCommand(),
        bindingManager);
    final boolean definedChanged = commandEvent.isDefinedChanged();
    final boolean descriptionChanged = commandEvent.isDescriptionChanged();
    final boolean handledChanged = commandEvent.isHandledChanged();
    final boolean nameChanged = commandEvent.isNameChanged();
View Full Code Here


    private void createConditionEditor(Composite parent) throws CoreException {
        PyBreakpoint breakpoint = (PyBreakpoint) getBreakpoint();

        String label = null;
        ICommandManager commandManager = PlatformUI.getWorkbench().getCommandSupport().getCommandManager();
        ICommand command = commandManager.getCommand("org.eclipse.ui.edit.text.contentAssist.proposals"); //$NON-NLS-1$
        if (command != null) {
            List keyBindings = command.getKeySequenceBindings();
            if (keyBindings != null && keyBindings.size() > 0) {
                IKeySequenceBinding binding = (IKeySequenceBinding) keyBindings.get(0);
                label = MessageFormat.format("E&nable Condition", new String[] { binding.getKeySequence().format() }); //$NON-NLS-1$
            }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.commands.ICommand

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.