Examples of canEnable()


Examples of com.adito.extensions.ExtensionBundle.canEnable()

        String id = request.getParameter("id");
        PolicyUtil.checkPermission(PolicyConstants.EXTENSIONS_RESOURCE_TYPE,
            PolicyConstants.PERM_CHANGE,
            getSessionInfo(request).getUser());
        ExtensionBundle bundle = ExtensionStore.getInstance().getExtensionBundle(id);
        if (!bundle.canEnable()) {
            throw new Exception("Bundle cannot be enabled.");
        }
        ExtensionStore.getInstance().enableExtension(id);
        if(bundle.isContainsPlugin()) {
          GlobalWarningManager.getInstance().addMultipleGlobalWarning(new GlobalWarning(GlobalWarning.MANAGEMENT_USERS, new BundleActionMessage("extensions",
View Full Code Here

Examples of org.eclipse.dltk.internal.corext.refactoring.reorg.IReorgPolicy.ICopyPolicy.canEnable()

    if (fCopyProcessor == null) {
      final ICopyPolicy policy = ReorgPolicyFactory.createCopyPolicy(
          getResources(fElements), ReorgUtils
              .getModelElements(fElements));
      fCopyProcessor = policy.canEnable() ? new ScriptCopyProcessor(
          policy) : null;
    }

    if (!canCopyElements())
      return DND.DROP_NONE;
View Full Code Here

Examples of org.eclipse.dltk.internal.corext.refactoring.reorg.IReorgPolicy.IMovePolicy.canEnable()

  private int handleValidateMove(Object target) throws ModelException {
    if (fMoveProcessor == null) {
      IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(
          getResources(fElements), ReorgUtils
              .getModelElements(fElements));
      if (policy.canEnable())
        fMoveProcessor = new ScriptMoveProcessor(policy);
    }

    if (!canMoveElements())
      return DND.DROP_NONE;
View Full Code Here

Examples of org.eclipse.jdt.internal.corext.refactoring.reorg.IReorgPolicy.IMovePolicy.canEnable()

  protected void startRefactoring(IResource[] resources, IJavaElement[] javaElements, Shell shell)
      throws CoreException {
    if (RefactoringAvailabilityTester.isMoveAvailable(resources, javaElements)) {
      IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(resources, javaElements);
      if (policy.canEnable()) {
        JavaMoveProcessor processor = new JavaMoveProcessor(policy);
        Refactoring refactoring = new MoveRefactoring(processor);
       
        RefactoringWizard wizard = null;
       
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.