Package org.cloudfoundry.ide.eclipse.server.standalone.internal.application

Examples of org.cloudfoundry.ide.eclipse.server.standalone.internal.application.StandaloneFacetHandler


  protected List<IAction> getActions(IMenuService menuService) {
    Object context = menuService.getCurrentState();
    IProject project = getProjectFromContext(context);
    List<IAction> actions = new ArrayList<IAction>();
    if (project != null) {
      StandaloneFacetHandler handler = new StandaloneFacetHandler(project);
      if (handler.canAddFacet()) {
        actions.add(new ConvertToStandaloneAction(project));
      } else if (handler.hasFacet()) {
        actions.add(new RemoveStandaloneAction(project));
      }

    }
    return actions;
View Full Code Here


    public void run() {
      Job job = new Job(Messages.ProjectExplorerMenuFactory_JOB_ENABLE) {

        protected IStatus run(IProgressMonitor monitor) {

          new StandaloneFacetHandler(project).addFacet(monitor);
          return Status.OK_STATUS;
        }
      };

      job.setSystem(false);
View Full Code Here

    public void run() {
      Job job = new Job(Messages.ProjectExplorerMenuFactory_JOB_DISABLE) {

        protected IStatus run(IProgressMonitor monitor) {

          new StandaloneFacetHandler(project).removeFacet();
          return Status.OK_STATUS;
        }
      };

      job.setSystem(false);
View Full Code Here

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.standalone.internal.application.StandaloneFacetHandler

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.