Example usage for org.springframework.ide.eclipse.boot.dash BootDashActivator getImageDescriptor

List of usage examples for org.springframework.ide.eclipse.boot.dash BootDashActivator getImageDescriptor

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash BootDashActivator getImageDescriptor.

Prototype

public static ImageDescriptor getImageDescriptor(String path) 

Source Link

Document

Returns an image descriptor for the image file at the given plug-in relative path

Usage

From source file:org.springframework.ide.eclipse.boot.dash.views.sections.BootDashUnifiedTreeSection.java

private void fillContextMenu(IMenuManager manager) {
    for (RunStateAction a : actions.getRunStateActions()) {
        addVisible(manager, a);/*w  w w . j  a  v a  2  s  .c  o m*/
    }
    addVisible(manager, actions.getOpenBrowserAction());
    addVisible(manager, actions.getOpenNgrokAdminUi());
    addVisible(manager, actions.getOpenConsoleAction());
    addVisible(manager, actions.getOpenInPackageExplorerAction());
    addVisible(manager, actions.getShowPropertiesViewAction());

    manager.add(new Separator());

    addVisible(manager, actions.getOpenConfigAction());
    addVisible(manager, actions.getDuplicateConfigAction());
    addVisible(manager, actions.getDeleteConfigsAction());

    manager.add(new Separator());

    addVisible(manager, actions.getExposeRunAppAction());
    addVisible(manager, actions.getExposeDebugAppAction());
    addSubmenu(manager, "Deploy and Run On...", BootDashActivator.getImageDescriptor("icons/run-on-cloud.png"),
            actions.getRunOnTargetActions());
    addSubmenu(manager, "Deploy and Debug On...",
            BootDashActivator.getImageDescriptor("icons/debug-on-cloud.png"),
            actions.getDebugOnTargetActions());

    manager.add(new Separator());

    for (AddRunTargetAction a : actions.getAddRunTargetActions()) {
        addVisible(manager, a);
    }
    manager.add(new Separator());

    addVisible(manager, actions.getRemoveRunTargetAction());
    addVisible(manager, actions.getRefreshRunTargetAction());
    addVisible(manager, actions.getRestartOnlyApplicationAction());
    addVisible(manager, actions.getSelectManifestAction());
    addVisible(manager, actions.getRestartWithRemoteDevClientAction());
    addVisible(manager, actions.getDeleteAppsAction());
    addVisible(manager, actions.getUpdatePasswordAction());
    addVisible(manager, actions.getOpenCloudAdminConsoleAction());
    addVisible(manager, actions.getToggleTargetConnectionAction());
    addVisible(manager, actions.getReconnectCloudConsole());

    manager.add(new Separator());

    ImmutableList.Builder<IAction> customizeActions = ImmutableList.builder();
    customizeActions.add(actions.getCustomizeTargetLabelAction());
    customizeActions.add(actions.getCustomizeTargetAppsManagerURLAction());
    addSubmenu(manager, "Customize...", null, customizeActions.build());

    //      manager.add
    //      addVisible(manager, new Separator());
    //      addVisible(manager, refreshAction);
    //      addVisible(manager, action2);
    // Other plug-ins can contribute there actions here
    //      manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}