Search in sources :

Example 1 with WizardConnectionController

use of org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardConnectionController in project data-access by pentaho.

the class QueryPhysicalStep method init.

@Bindable
public void init(IWizardModel wizardModel) throws XulException {
    // $NON-NLS-1$
    datasourceNameTextBox = (XulTextbox) document.getElementById("datasourceName");
    wizardConnectionController = new WizardConnectionController(document);
    wizardConnectionController.setDatasourceModel(datasourceModel);
    // wizardConnectionController.setConnectionService(connectionService);
    getXulDomContainer().addEventHandler(wizardConnectionController);
    wizardConnectionController.init();
    databaseConnectionController = new ConnectionController(document);
    databaseConnectionController.setDatasourceModel(datasourceModel);
    // databaseConnectionController.setService(connectionService);
    databaseConnectionController.reloadConnections();
    WizardRelationalDatasourceController relationalDatasourceController = new WizardRelationalDatasourceController();
    relationalDatasourceController.setService(datasourceService);
    getXulDomContainer().addEventHandler(relationalDatasourceController);
    relationalDatasourceController.init(datasourceModel);
    initialize();
    datasourceModel.clearModel();
    super.init(wizardModel);
}
Also used : WizardRelationalDatasourceController(org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardRelationalDatasourceController) WizardConnectionController(org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardConnectionController) ConnectionController(org.pentaho.platform.dataaccess.datasource.wizard.controllers.ConnectionController) WizardConnectionController(org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardConnectionController) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Aggregations

ConnectionController (org.pentaho.platform.dataaccess.datasource.wizard.controllers.ConnectionController)1 WizardConnectionController (org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardConnectionController)1 WizardRelationalDatasourceController (org.pentaho.platform.dataaccess.datasource.wizard.controllers.WizardRelationalDatasourceController)1 Bindable (org.pentaho.ui.xul.stereotype.Bindable)1