| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.loaders.CompilerSupport
Support for compilation of data objects.
| Inner Class Summary | |
static class | 
CompilerSupport.Build
Build cookie support.  | 
static class | 
CompilerSupport.Clean
Clean cookie support.  | 
static class | 
CompilerSupport.Compile
Compile cookie support.  | 
| Inner classes inherited from class org.openide.cookies.CompilerCookie | 
CompilerCookie.Build, CompilerCookie.Clean, CompilerCookie.Compile | 
| Field Summary | |
static String | 
PROP_COMPILER_TYPE
Name of property providing a custom CompilerType for a file. | 
| Constructor Summary | |
protected  | 
CompilerSupport(MultiDataObject.Entry entry,
                Class cookie)
New support for given entry.  | 
| Method Summary | |
 void | 
addProperties(Sheet.Set set)
Helper method that creates default properties for compilation of given file entry.  | 
 void | 
addToJob(CompilerJob job,
         Compiler.Depth depth)
Allows the cookie to add its compiler(s) into a compiler job.  | 
protected  CompilerType | 
defaultCompilerType()
Allows subclasses to override the default compiler that should be used for this support.  | 
static CompilerType | 
getCompilerType(MultiDataObject.Entry entry)
Get compiler manager associated with a given file.  | 
 boolean | 
isDepthSupported(Compiler.Depth depth)
Supports only depth one. | 
static void | 
prepareJob(CompilerJob job,
           Enumeration en,
           Class type,
           Compiler.Depth depth)
Utility method to handle compilation on given set of DataObject.  | 
static void | 
setCompilerType(MultiDataObject.Entry entry,
                CompilerType man)
Set compiler manager for a given file.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String PROP_COMPILER_TYPE
CompilerType for a file.| Constructor Detail | 
protected CompilerSupport(MultiDataObject.Entry entry,
                          Class cookie)
entry - entry to create instance fromcookie - cookie class for the compilation (e.g. CompilerCookie.Build)| Method Detail | 
public boolean isDepthSupported(Compiler.Depth depth)
depth one.isDepthSupported in interface CompilerCookieorg.openide.cookies.CompilerCookiedepth - the depth to testtrue if this cookie supports such depth
public void addToJob(CompilerJob job,
                     Compiler.Depth depth)
CompilerCookiedepth parameter specifies whether or not
 the cookie should continue with its children.
 If the Compiler.Depth#isLastDepth is true then no children
 should be processed. Otherwise process the children with
 a new depth obtained by calling Compiler.Depth#nextDepth.addToJob in interface CompilerCookieorg.openide.cookies.CompilerCookiejob - the compiler job to add the compiler for this cookie todepth - the depth to use for compilationprotected CompilerType defaultCompilerType()
public static void setCompilerType(MultiDataObject.Entry entry,
                                   CompilerType man)
                            throws IOException
entry - entry to set the compiler forman - type to useIOException - if compiler cannot be setpublic static CompilerType getCompilerType(MultiDataObject.Entry entry)
entry - entry to obtain the compiler forpublic void addProperties(Sheet.Set set)
set - sheet set to add properties to
public static void prepareJob(CompilerJob job,
                              Enumeration en,
                              Class type,
                              Compiler.Depth depth)
job - compiler job to add objects toen - enumeration of DataObject or Node objectstype - class that should be requested as a cookie
   (CompilerCookie.Compile,CompilerCookie.Build,
   CompilerCookie.Clean)depth - the initial depth of compilation to start with
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||