Examples of IButtonMenuListener


Examples of org.cloudfoundry.ide.eclipse.server.ui.internal.editor.ApplicationActionMenuControl.IButtonMenuListener

      }

    };
    restartAppButton.createControl();

    restartAppButton.addMenuListener(new IButtonMenuListener() {

      public void widgetSelected(ApplicationAction actionType) {
        restartApplication(ApplicationAction.RESTART, actionType);
      }
    });

    updateRestartAppButton = new ApplicationActionMenuControl(buttonComposite, restartActions,
        ApplicationAction.START, Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART,
        CloudFoundryImages.getImage(CloudFoundryImages.RESTART), toolkit) {

      public void setDefaultTooltipMessage() {
        // Don't do anything as tooltip is controlled by the editor part
      }

    };
    updateRestartAppButton.createControl();

    updateRestartAppButton.addMenuListener(new IButtonMenuListener() {

      public void widgetSelected(ApplicationAction actionType) {
        restartApplication(ApplicationAction.UPDATE_RESTART, actionType);
      }
    });
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.