org.netbeans.modules.refactoring.api 1.22

org.netbeans.modules.refactoring.spi
Interface ModificationResult


public interface ModificationResult

Result of changes performed by refactoring plugin.

Since:
1.23

Method Summary
 void commit()
          Performs commit of changes into files.
 Collection<? extends org.openide.filesystems.FileObject> getModifiedFileObjects()
          FileObjects modified by this ModificationResult.
 Collection<? extends File> getNewFiles()
          New files generated by this ModificationResult.
 String getResultingSource(org.openide.filesystems.FileObject file)
          New source text for given file.
 

Method Detail

getResultingSource

String getResultingSource(org.openide.filesystems.FileObject file)
                          throws IOException,
                                 IllegalArgumentException
New source text for given file.

Parameters:
file -
Returns:
new source text
Throws:
IOException
IllegalArgumentException

getModifiedFileObjects

Collection<? extends org.openide.filesystems.FileObject> getModifiedFileObjects()
FileObjects modified by this ModificationResult.

Returns:

getNewFiles

Collection<? extends File> getNewFiles()
New files generated by this ModificationResult.

Returns:

commit

void commit()
            throws IOException
Performs commit of changes into files.

Throws:
IOException

org.netbeans.modules.refactoring.api 1.22

Built on March 2 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.