Class DeleteResourceChange

    • Constructor Detail

      • DeleteResourceChange

        public DeleteResourceChange​(IPath resourcePath,
                                    boolean forceOutOfSync)
        Delete a resource.
        Parameters:
        resourcePath - the resource path
        forceOutOfSync - if true, deletes the resource with IResource.FORCE
      • DeleteResourceChange

        public DeleteResourceChange​(IPath resourcePath,
                                    boolean forceOutOfSync,
                                    boolean deleteContent)
        Delete a resource.
        Parameters:
        resourcePath - the project path
        forceOutOfSync - if true, deletes the resource with IResource.FORCE
        deleteContent - if true delete the project contents. The content delete is not undoable. This setting only applies to projects and is not used when deleting files or folders.
    • Method Detail

      • getName

        public String getName()
        Description copied from class: Change
        Returns the human readable name of this change. The name MUST not be null.
        Specified by:
        getName in class Change
        Returns:
        the human readable name of this change
      • perform

        public Change perform​(IProgressMonitor pm)
                       throws CoreException
        Description copied from class: Change
        Performs this change. If this method is called on an invalid or disabled change object the result is unspecified. Changes should in general not respond to IProgressMonitor.isCanceled() since canceling a change tree in the middle of its execution leaves the workspace in a half changed state.
        Specified by:
        perform in class Change
        Parameters:
        pm - a progress monitor
        Returns:
        the undo change for this change object or null if no undo is provided
        Throws:
        CoreException - if an error occurred during change execution
      • setDescriptor

        public void setDescriptor​(ChangeDescriptor descriptor)
        Sets the change descriptor to be returned by Change.getDescriptor().
        Parameters:
        descriptor - the change descriptor