FileDocCategorySizeDatePackage
ExtractStringDescriptor.javaAPI DocAndroid 1.5 API2554Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.refactorings.extractstring

ExtractStringDescriptor

public class ExtractStringDescriptor extends org.eclipse.ltk.core.refactoring.RefactoringDescriptor
A descriptor that allows an {@link ExtractStringRefactoring} to be created from a previous instance of itself.

Fields Summary
public static final String
ID
private final Map
mArguments
Constructors Summary
public ExtractStringDescriptor(String project, String description, String comment, Map arguments)


          
               
        super(ID, project, description, comment,
                RefactoringDescriptor.STRUCTURAL_CHANGE | RefactoringDescriptor.MULTI_CHANGE //flags
        );
        mArguments = arguments;
    
Methods Summary
public org.eclipse.ltk.core.refactoring.RefactoringcreateRefactoring(org.eclipse.ltk.core.refactoring.RefactoringStatus status)
Creates a new refactoring instance for this refactoring descriptor based on an argument map. The argument map is created by the refactoring itself in {@link ExtractStringRefactoring#createChange(org.eclipse.core.runtime.IProgressMonitor)}

This is apparently used to replay a refactoring. {@inheritDoc}

throws
CoreException

        try {
            ExtractStringRefactoring ref = new ExtractStringRefactoring(mArguments);
            return ref;
        } catch (NullPointerException e) {
            status.addFatalError("Failed to recreate ExtractStringRefactoring from descriptor");
            return null;
        }
    
public java.util.MapgetArguments()

        return mArguments;