Package org.eclipse.core.commands

Examples of org.eclipse.core.commands.ICommandListener


              0, message, new Exception());
          Policy.getLog().log(status);

          // And remember this item so we don't log it again.
          loggedCommandIds.add(commandId);
          command.addCommandListener(new ICommandListener() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.ui.commands.ICommandListener#commandChanged(org.eclipse.ui.commands.CommandEvent)
             */
 
View Full Code Here


  /**
   * @return
   */
  private ICommandListener getCommandListener() {
    if (commandListener == null) {
      commandListener = new ICommandListener() {
        public void commandChanged(CommandEvent commandEvent) {
          if (commandEvent.isHandledChanged()
              || commandEvent.isEnabledChanged()
              || commandEvent.isDefinedChanged()) {
            if (commandEvent.isHandledChanged()) {
View Full Code Here

        Command command = service.getCommand("org.locationtech.udig.tool.edit.clearAction"); //$NON-NLS-1$
        command.setHandler(clearEditBlackboardHandler);
       
        if(clearEditBlackboardCommandListener == null){
            clearEditBlackboardCommandListener  =  new ICommandListener(){

                public void commandChanged( CommandEvent commandEvent ) {
                    if (commandEvent.isHandledChanged()) {
                        commandEvent.getCommand().removeCommandListener(this);
                        clearEditBlackboardCommandListener = null;
View Full Code Here

    init(serviceLocator, commandIdIn, parameterMap);
  }

  protected ICommandListener getCommandListener() {
    if (commandListener == null) {
      commandListener = new ICommandListener() {
        public void commandChanged(CommandEvent commandEvent) {
          if (commandEvent.isHandledChanged()
              || commandEvent.isEnabledChanged()) {
            if (commandEvent.getCommand().isDefined()) {
              setEnabled(commandEvent.getCommand().isEnabled());
View Full Code Here

    nf.setGroupingUsed(false);
    nf.setParseIntegerOnly(true);
   
    if (cmd != null) {
      updateState(cmd.isEnabled());
      cmd.addCommandListener(new ICommandListener() {

        /* (non-Javadoc)
         * @see org.eclipse.core.commands.ICommandListener#commandChanged(org.eclipse.core.commands.CommandEvent)
         */
        @Override
 
View Full Code Here

              0, message, new Exception());
          Policy.getLog().log(status);

          // And remember this item so we don't log it again.
          loggedCommandIds.add(commandId);
          command.addCommandListener(new ICommandListener() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.ui.commands.ICommandListener#commandChanged(org.eclipse.ui.commands.CommandEvent)
             */
 
View Full Code Here

TOP

Related Classes of org.eclipse.core.commands.ICommandListener

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.