|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.wizards.BasicGeneralCodeGenerator
ch.sahits.codegen.java.wizards.BasicHeadlessJavaCodeGenerator
public class BasicHeadlessJavaCodeGenerator
This is the base class for java code generators. This class
must be extended to add specific functionality.
This is the implementation for the headless build
| Field Summary | |
|---|---|
protected ILogger |
logger
|
| Fields inherited from class ch.sahits.codegen.wizards.BasicGeneralCodeGenerator |
|---|
delegate |
| Constructor Summary | |
|---|---|
BasicHeadlessJavaCodeGenerator(ICodeGeneratorDelegate delegatedGenerator)
Constructor initializing the delegated code generator |
|
| Method Summary | |
|---|---|
protected void |
addException(java.lang.RuntimeException e)
Add an exception to the logger |
protected void |
doFinish(IFile file,
IProgressMonitor monitor)
Open a file to be displayed, if a view to open in is avalable |
protected void |
doFinish(IProgressMonitor monitor,
int modelWorkload,
IBasicDBDefinitionPage dbDefinitionPage)
Produce a java class source file |
protected void |
openEditor(IFile file)
Open the file in an editor if available |
| Methods inherited from class ch.sahits.codegen.wizards.BasicGeneralCodeGenerator |
|---|
processQueuedElements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ILogger logger
| Constructor Detail |
|---|
public BasicHeadlessJavaCodeGenerator(ICodeGeneratorDelegate delegatedGenerator)
delegatedGenerator - | Method Detail |
|---|
protected void doFinish(IProgressMonitor monitor,
int modelWorkload,
IBasicDBDefinitionPage dbDefinitionPage)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException,
CoreException
doFinish in class BasicGeneralCodeGeneratormonitor - IProgressMonitor to track the progressmodelWorkload - Workload for the generationdbDefinitionPage - current DB definition page
java.io.FileNotFoundException - File could not be found
java.io.IOException - File could not be read
java.lang.ClassNotFoundException - Class not found on the class path
CoreException - some other exceptionprotected void openEditor(IFile file)
file - protected void addException(java.lang.RuntimeException e)
e - exeption to be added
protected void doFinish(IFile file,
IProgressMonitor monitor)
throws CoreException
file - monitor -
CoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||