Examples of canAddFacet()


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

    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));
      }
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.