Package org.eclipse.ltk.core.refactoring

Examples of org.eclipse.ltk.core.refactoring.NullChange


            logger.warn("Unable to perform copy on server in project '"
                    + refactorController.getRefactorModel().getProject().getName()
                    + "' - project is not online enabled");
            Utils.openInfo("Offline Mode", "Project is currently offline.  Resource will not be copied to server.");
            setSuccess(false);
            return new NullChange();
        }

        try {
            refactorController.finish(new SubProgressMonitor(monitor, 3));
            setSuccess(true);
        } catch (Exception e) {
            logger.error("Unable to copy resource", e);
            setSuccess(false);
            // commented out because if copy fails once, the extension is disabled for the entire session
            //ExceptionUtils.throwNewCoreException(e);
        }

        // no undo change at this time
        return new NullChange();
    }
View Full Code Here


    }

    @Override
    public Change perform(IProgressMonitor monitor) throws CoreException {
        // no undo change at this time
        return new NullChange();
    }
View Full Code Here

    }

    @Override
    public Change perform(IProgressMonitor monitor) throws CoreException {
        // TODO: create undo change that re-deploys delete candidates
        return new NullChange();
    }
View Full Code Here

    }

    @Override
    public Change perform(IProgressMonitor monitor) throws CoreException {
        // no undo change at this time
        return new NullChange();
    }
View Full Code Here

      IScriptFolder pack = getDestinationAsScriptFolder();
      if (pack != null)
        return moveCuToPackage(cu, pack);
      IContainer container = getDestinationAsContainer();
      if (container == null)
        return new NullChange();
      return moveFileToContainer(cu, container);
    }
View Full Code Here

    }

    private Change createChange(IResource res) {
      IContainer destinationAsContainer = getDestinationAsContainer();
      if (destinationAsContainer == null)
        return new NullChange();
      return new MoveResourceChange(res, destinationAsContainer);
    }
View Full Code Here

      return RefactoringStatus
          .createFatalErrorStatus(RefactoringCoreMessages.ReorgPolicyFactory_noMoving);
    }

    public Change createChange(IProgressMonitor pm) {
      return new NullChange();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ltk.core.refactoring.NullChange

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.