public class IconGhostingAugmenter extends Object
Modifier and Type | Class | Description |
---|---|---|
protected class |
IconGhostingAugmenter.AugmentClassAdapter |
Adapter for augmenting a single class.
|
Constructor | Description |
---|---|
IconGhostingAugmenter() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
augmentClass(String dir,
String name,
String paintIconMethodName) |
Augments a single class with additional UI behaviour.
|
static void |
main(String[] args) |
Test method.
|
void |
process(String toStrip,
File file,
List<IconGhostingType> ids) |
Processes a single file or a directory, augmenting all relevant classes.
|
void |
setVerbose(boolean isVerbose) |
Sets the verbosity.
|
protected void augmentClass(String dir, String name, String paintIconMethodName)
dir
- Root directory for the library that contains the class.name
- Fully-qualified class name.paintIconMethodName
- Method name.AugmentException
- If the augmentation process failed.public void process(String toStrip, File file, List<IconGhostingType> ids) throws AugmentException
toStrip
- The leading prefix to strip from the file names. Is used to
create fully-qualified class name.file
- File resource (can point to a single file or to a directory).ids
- List of class-method pairs to augment.AugmentException
- If the augmentation process failed.public void setVerbose(boolean isVerbose)
isVerbose
- New value for augmentation process verbosity.public static void main(String[] args) throws AugmentException
args
- AugmentException