public class BrowserOutputLocationManager extends java.lang.Object implements IOutputLocationManager
FILETYPE_CLASS, FILETYPE_OUTJAR, FILETYPE_RESOURCE, FILETYPE_UNKNOWN| Constructor and Description |
|---|
BrowserOutputLocationManager(UserPreferencesAdapter preferencesAdapter) |
| Modifier and Type | Method and Description |
|---|---|
int |
discoverChangesSince(java.io.File dir,
long buildtime) |
java.util.List<java.io.File> |
getAllOutputLocations()
Return a list of all output locations handled by this OutputLocationManager
|
java.io.File |
getDefaultOutputLocation()
Return the default output location (for example,
|
java.util.Map<java.io.File,java.lang.String> |
getInpathMap() |
java.io.File |
getOutputLocationForClass(java.io.File compilationUnit)
Return the directory root under which the results of compiling the given source file.
|
java.io.File |
getOutputLocationForResource(java.io.File resource)
When copying resources from source folders to output location, return the root directory under which the resource should be
copied.
|
java.lang.String |
getSourceFolderForFile(java.io.File sourceFile)
For environments where multiple source folders are supported, they need to be included in the model.
|
void |
reportFileRemove(java.lang.String outputfile,
int filetype)
Callback from the compiler to indicate that a file has been removed from disk, the type of the file (if known) is also
supplied.
|
void |
reportFileWrite(java.lang.String outputfile,
int filetype)
Callback from the compiler to indicate that a file has been written to disk, the type of the file (if known) is also
supplied.
|
public BrowserOutputLocationManager(UserPreferencesAdapter preferencesAdapter)
public java.io.File getOutputLocationForClass(java.io.File compilationUnit)
IOutputLocationManagergetOutputLocationForClass in interface IOutputLocationManagercompilationUnit - the compilation unit that has been compiledpublic java.io.File getOutputLocationForResource(java.io.File resource)
IOutputLocationManagergetOutputLocationForResource in interface IOutputLocationManagerresource - the resource to be copiedpublic java.util.List<java.io.File> getAllOutputLocations()
IOutputLocationManagergetAllOutputLocations in interface IOutputLocationManagerpublic java.io.File getDefaultOutputLocation()
IOutputLocationManagergetDefaultOutputLocation in interface IOutputLocationManagerpublic java.lang.String getSourceFolderForFile(java.io.File sourceFile)
IOutputLocationManagergetSourceFolderForFile in interface IOutputLocationManagersourceFile - the File object for the source filepublic void reportFileWrite(java.lang.String outputfile,
int filetype)
IOutputLocationManagerreportFileWrite in interface IOutputLocationManageroutputfile - the file that has been writtenfiletype - the kind of file from the FILETYPE_XXX constants defined in this typepublic void reportFileRemove(java.lang.String outputfile,
int filetype)
IOutputLocationManagerreportFileRemove in interface IOutputLocationManageroutputfile - the file that has been writtenfiletype - the kind of file from the FILETYPE_XXX constants defined in this typepublic int discoverChangesSince(java.io.File dir,
long buildtime)
discoverChangesSince in interface IOutputLocationManagerpublic java.util.Map<java.io.File,java.lang.String> getInpathMap()
getInpathMap in interface IOutputLocationManager