|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCodeGenInputDefinitionPage
ch.sahits.codegen.ui.wizards.JavaGenerationDefinition
public abstract class JavaGenerationDefinition
This abstract Generation definition class provides
UI elements for database selection and generation type selection
and functionality based upon this
This abstract wizard page adds the Input method selection, Input data file and
Database product combo to the page.
| Field Summary | |
|---|---|
protected IJavaGenerationDefinition |
validator
Instance of the contents validator |
| Constructor Summary | |
|---|---|
JavaGenerationDefinition(java.lang.String pageName,
BasicCodeGenWizard caller,
ISelection _selection)
Constructor intialisazing this wizard |
|
| Method Summary | |
|---|---|
protected void |
createSeparator(org.eclipse.swt.widgets.Composite composite,
int nColumns)
Creates a separator line. |
protected IJavaElement |
getInitialJavaElement(IStructuredSelection _selection)
Utility method to inspect a selection to find a Java element. |
IJavaProject |
getJavaProject()
Returns the Java project of the currently selected package fragment root or null
if no package fragment root is configured. |
IPackageFragmentRoot |
getPackageFragmentRoot()
Returns the IPackageFragmentRoot that corresponds to the current
value of the source folder field. |
IProject |
getProject()
Returns the project of the currently selected package fragment root or null
if no package fragment root is configured. |
void |
initDBButton(int selection,
boolean canBeModified)
Initialize the radio buttons with a pre-selection |
void |
initDBProduct4Unserialize(java.lang.Class unserializingClass)
This is a wrapper method of #initDBProduct(). |
protected void |
initPackageFragmentRoot()
Initialize the package fragment root |
void |
setDBConnectionCode(int connectionBase,
java.lang.Class callingClass)
Set the selected connection base selection. |
protected void |
setPackageFragmentRoot(IPackageFragmentRoot root)
Set the package root |
void |
updateStatus(java.lang.String message)
Print the status message |
void |
validate()
Wrapper method for IJavaGenerationDefinition.validate() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IJavaGenerationDefinition validator
| Constructor Detail |
|---|
public JavaGenerationDefinition(java.lang.String pageName,
BasicCodeGenWizard caller,
ISelection _selection)
pageName - Wizard Dialog namecaller - calling wizard_selection - current selection| Method Detail |
|---|
protected final void createSeparator(org.eclipse.swt.widgets.Composite composite,
int nColumns)
GridLayout with at least 1 column.
composite - the parent compositenColumns - number of columns to spanpublic final void validate()
IJavaGenerationDefinition.validate()
protected final void initPackageFragmentRoot()
public final IProject getProject()
null
if no package fragment root is configured.
null.public final IJavaProject getJavaProject()
null
if no package fragment root is configured.
null.public final IPackageFragmentRoot getPackageFragmentRoot()
IPackageFragmentRoot that corresponds to the current
value of the source folder field.
null if the current source
folder value is not a valid package fragment rootprotected final void setPackageFragmentRoot(IPackageFragmentRoot root)
root - protected final IJavaElement getInitialJavaElement(IStructuredSelection _selection)
_selection - the selection to be inspected
null,
if no Java element exists in the given selection
public final void setDBConnectionCode(int connectionBase,
java.lang.Class callingClass)
BasicCodeGenWizard#unserialize(String)
connectionBase - the selected connectioncallingClass - Class object of the calling class
public final void initDBButton(int selection,
boolean canBeModified)
selection - Code of the selectioncanBeModified - indicates if the buttons are enabledDynamicDBGenerationCodepublic final void initDBProduct4Unserialize(java.lang.Class unserializingClass)
#initDBProduct().
This method may only be called from the unserialize Method
BasicCodeGenWizard#unserialize(String)
unserializingClass - the class instance of the calling classpublic final void updateStatus(java.lang.String message)
message -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||