public class MultiSourceFileLocator extends Object implements ISourceFileLocator
ISourceFileLocator
instances. For each lookup request the first locator that returns a
Reader for source content is selected.| Constructor and Description |
|---|
MultiSourceFileLocator(int tabWidth)
Creates a new empty locator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ISourceFileLocator locator)
Adds the given locator.
|
Reader |
getSourceFile(String packageName,
String fileName)
Tries to locate the given source file and opens a reader with the
appropriate encoding.
|
int |
getTabWidth()
Returns number of blank characters that represent a tab in source code.
|
public MultiSourceFileLocator(int tabWidth)
tabWidth - tab width in source files as number of blanks used for all
source filespublic void add(ISourceFileLocator locator)
locator - Additional locator to querypublic Reader getSourceFile(String packageName, String fileName) throws IOException
ISourceFileLocatorgetSourceFile in interface ISourceFileLocatorpackageName - VM name of the packagefileName - name of the source filenull otherwiseIOException - in case of problems while opening the filepublic int getTabWidth()
ISourceFileLocatorgetTabWidth in interface ISourceFileLocatorCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.