org.eclipse.emf.oda.ecore.ui.impl
Class EcoreDataSourcePageHelper

java.lang.Object
  extended by org.eclipse.emf.oda.ecore.ui.impl.EcoreDataSourcePageHelper

public class EcoreDataSourcePageHelper
extends java.lang.Object

A helper for Ecore data source property and wizard pages.


Field Summary
protected static java.lang.String DEFAULT_MESSAGE
           
protected  EcoreDataSourcePropertyPage propertyPage
           
protected  Text resourceField
           
protected  EcoreDataSourceWizardPage wizardPage
           
 
Constructor Summary
protected EcoreDataSourcePageHelper(EcoreDataSourcePropertyPage page)
           
protected EcoreDataSourcePageHelper(EcoreDataSourceWizardPage page)
           
 
Method Summary
protected  java.util.Properties collectCustomProperties(java.util.Properties properties)
          Collects the values of the specified properties.
protected  void createCustomControl(Composite parent)
          Creates custom page control for user-defined data sources.
protected  void createResourceControl(Composite parent)
          Creates control for resource property.
protected  Control getControl()
          Returns the page for this helper.
protected  java.lang.String getResource()
          Returns the value of the resource property.
protected  void initCustomControl(java.util.Properties properties)
          Initializes the custom control with the specified properties.
protected  void setMessage(java.lang.String newMessage, int newType)
          Sets the message for this helper's page.
protected  void setPageComplete(boolean complete)
          Sets whether the page for this helps is complete.
protected  void validateData()
          Validates that the user has specified values for the properties in the page control and sets page message accordingly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGE

protected static java.lang.String DEFAULT_MESSAGE

wizardPage

protected EcoreDataSourceWizardPage wizardPage

propertyPage

protected EcoreDataSourcePropertyPage propertyPage

resourceField

protected Text resourceField
Constructor Detail

EcoreDataSourcePageHelper

protected EcoreDataSourcePageHelper(EcoreDataSourceWizardPage page)

EcoreDataSourcePageHelper

protected EcoreDataSourcePageHelper(EcoreDataSourcePropertyPage page)
Method Detail

getResource

protected java.lang.String getResource()
Returns the value of the resource property.

Returns:
the resource

createCustomControl

protected void createCustomControl(Composite parent)
Creates custom page control for user-defined data sources.


createResourceControl

protected void createResourceControl(Composite parent)
Creates control for resource property.


initCustomControl

protected void initCustomControl(java.util.Properties properties)
Initializes the custom control with the specified properties.


collectCustomProperties

protected java.util.Properties collectCustomProperties(java.util.Properties properties)
Collects the values of the specified properties.


validateData

protected void validateData()
Validates that the user has specified values for the properties in the page control and sets page message accordingly.


getControl

protected Control getControl()
Returns the page for this helper.


setPageComplete

protected void setPageComplete(boolean complete)
Sets whether the page for this helps is complete.


setMessage

protected void setMessage(java.lang.String newMessage,
                          int newType)
Sets the message for this helper's page.


Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.