public class EcoreDataSetWizardPage
extends DataSetWizardPage
Modifier and Type | Class and Description |
---|---|
protected class |
EcoreDataSetWizardPage.TypeLabelProvider
A provider of formatted labels for types.
|
protected static class |
EcoreDataSetWizardPage.Variable
Representation of an expression variable.
|
protected class |
EcoreDataSetWizardPage.VariableSpecificationDialog
A dialog which prompts the user to specify a name and select a type for an
expression variable.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[] |
classChoices |
protected java.lang.Object[] |
classifierChoices |
protected EClassifier |
contextType |
protected Text |
contextTypeField |
protected static java.lang.String |
DEFAULT_MESSAGE |
protected Combo |
queryDelegateCombo |
protected Composite |
queryTextViewerComposite |
protected java.util.Map<java.lang.String,ITextViewer> |
queryTextViewers |
protected StackLayout |
queryTextViewerStackLayout |
protected EClassifier |
resultType |
protected Text |
resultTypeField |
protected java.util.List<EcoreDataSetWizardPage.Variable> |
variables |
protected TableViewer |
variablesViewer |
Constructor and Description |
---|
EcoreDataSetWizardPage(java.lang.String pageName) |
EcoreDataSetWizardPage(java.lang.String pageName,
java.lang.String title,
ImageDescriptor titleImage) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canLeave() |
protected void |
closeConnection(IConnection connection)
Attempts to close the given ODA connection.
|
protected DataSetDesign |
collectDataSetDesign(DataSetDesign design) |
protected java.lang.String |
convertTypeToString(EClassifier type)
Converts the specified type to its string representation.
|
protected java.util.Map<java.lang.String,EClassifier> |
convertVariablesToMap(java.util.List<EcoreDataSetWizardPage.Variable> variables)
Converts the specified expression variables to a map representation.
|
protected java.lang.String |
convertVariablesToString(java.util.List<EcoreDataSetWizardPage.Variable> variables)
Converts the specified expression variables to a string representation.
|
protected void |
createContextTypeControl(Composite parent)
Creates control for context type property.
|
protected Control |
createPageControl(Composite parent)
Creates custom page control for user-defined queries.
|
void |
createPageCustomControl(Composite parent) |
protected void |
createQueryDelegateControl(Composite parent)
Creates control for query delegate property.
|
protected void |
createQueryTextControl(Composite parent)
Creates control for query text.
|
protected void |
createResultTypeControl(Composite parent)
Creates control for result type property.
|
protected void |
createVariablesControl(Composite parent)
Creates control for expression variables property.
|
protected java.lang.Object[] |
getClassChoices()
Returns an array of classes applicable for the data source.
|
protected java.lang.Object[] |
getClassifierChoices()
Returns an array of classes and data types applicable for the data source.
|
protected EClassifier |
getContextType()
Returns the value of the context type property.
|
protected java.lang.String |
getQueryDelegate()
Returns the value of the query delegate property.
|
protected java.lang.String |
getQueryText()
Returns the value of the query text.
|
protected ITextViewer |
getQueryTextViewer() |
protected EClassifier |
getResultType()
Returns the value of the result type property.
|
protected EClassifier |
getTypeFromString(java.lang.String string)
Retrieves the type corresponding to the specified string representation.
|
protected java.util.List<EcoreDataSetWizardPage.Variable> |
getVariables()
Returns the value of the expression variables property.
|
protected java.util.List<EcoreDataSetWizardPage.Variable> |
getVariablesFromString(java.lang.String string)
Retrieves the expression variables corresponding to the specified string representation.
|
protected boolean |
hasValidData()
Indicates whether the custom page has valid data to proceed
with defining a data set.
|
protected void |
initializeControl()
Initializes the page control with the last edited data set design.
|
protected void |
promptForContextTypeSelection()
Opens a dialog prompting the user to select a context type.
|
protected void |
promptForResultTypeSelection()
Opens a dialog prompting the user to select a result type.
|
protected void |
savePage(DataSetDesign dataSetDesign)
Saves the user-defined values in this page, and updates the specified
data set design with the latest design definition.
|
protected void |
setContextType(EClassifier contextType)
Sets the value of the context type property.
|
protected void |
setResultType(EClassifier resultType)
Sets the value of the result type property.
|
protected void |
updateDesign(DataSetDesign dataSetDesign,
IConnection connection,
java.lang.String queryText)
Updates the given data set design with the proeprties and derived metadata
obtained from the ODA runtime connection.
|
protected void |
updateParameterDesign(IParameterMetaData parameterMetaData,
DataSetDesign dataSetDesign)
Updates the specified data set design's parameter definition based on the
specified runtime metadata.
|
protected void |
updateResultSetDesign(IResultSetMetaData resultSetMetaData,
DataSetDesign dataSetDesign)
Updates the specified data set design's result set definition based on the
specified runtime metadata.
|
protected void |
validateData()
Validates that the user has specified values for the properties in the page control
and sets page message accordingly.
|
protected static java.lang.String DEFAULT_MESSAGE
protected Combo queryDelegateCombo
protected java.util.Map<java.lang.String,ITextViewer> queryTextViewers
protected Composite queryTextViewerComposite
protected StackLayout queryTextViewerStackLayout
protected TableViewer variablesViewer
protected java.util.List<EcoreDataSetWizardPage.Variable> variables
protected Text contextTypeField
protected EClassifier contextType
protected Text resultTypeField
protected EClassifier resultType
protected java.lang.Object[] classChoices
protected java.lang.Object[] classifierChoices
public EcoreDataSetWizardPage(java.lang.String pageName)
public EcoreDataSetWizardPage(java.lang.String pageName, java.lang.String title, ImageDescriptor titleImage)
public void createPageCustomControl(Composite parent)
protected Control createPageControl(Composite parent)
protected void createQueryDelegateControl(Composite parent)
protected void promptForContextTypeSelection()
protected void createContextTypeControl(Composite parent)
protected void createVariablesControl(Composite parent)
protected void createQueryTextControl(Composite parent)
protected void promptForResultTypeSelection()
protected void createResultTypeControl(Composite parent)
protected void initializeControl()
protected java.lang.Object[] getClassChoices()
protected java.lang.Object[] getClassifierChoices()
protected java.lang.String convertTypeToString(EClassifier type)
type
- the typeprotected EClassifier getTypeFromString(java.lang.String string)
string
- the string representationprotected java.lang.String convertVariablesToString(java.util.List<EcoreDataSetWizardPage.Variable> variables)
variables
- the expression variablesprotected java.util.Map<java.lang.String,EClassifier> convertVariablesToMap(java.util.List<EcoreDataSetWizardPage.Variable> variables)
variables
- the expression variablesprotected java.util.List<EcoreDataSetWizardPage.Variable> getVariablesFromString(java.lang.String string)
string
- the string representationprotected java.lang.String getQueryDelegate()
protected java.util.List<EcoreDataSetWizardPage.Variable> getVariables()
protected ITextViewer getQueryTextViewer()
protected java.lang.String getQueryText()
protected EClassifier getContextType()
protected void setContextType(EClassifier contextType)
contextType
- the valueprotected EClassifier getResultType()
protected void setResultType(EClassifier resultType)
resultType
- the valueprotected DataSetDesign collectDataSetDesign(DataSetDesign design)
protected boolean canLeave()
protected void validateData()
protected boolean hasValidData()
protected void savePage(DataSetDesign dataSetDesign)
protected void updateDesign(DataSetDesign dataSetDesign, IConnection connection, java.lang.String queryText) throws OdaException
OdaException
protected void updateResultSetDesign(IResultSetMetaData resultSetMetaData, DataSetDesign dataSetDesign) throws OdaException
resultSetMetaData
- runtime result set metadata instancedataSetDesign
- data set design instance to updateOdaException
protected void updateParameterDesign(IParameterMetaData parameterMetaData, DataSetDesign dataSetDesign) throws OdaException
parameterMetaData
- runtime parameter metadata instancedataSetDesign
- data set design instance to updateOdaException
protected void closeConnection(IConnection connection)