Search in sources :

Example 1 with GwtDatasourceMessages

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

the class GwtDatasourceAdminDialog method xulLoaded.

public void xulLoaded(final GwtXulRunner runner) {
    try {
        GwtXulDomContainer container = (GwtXulDomContainer) runner.getXulDomContainers().get(0);
        BindingFactory bf = new GwtBindingFactory(container.getDocumentRoot());
        ResourceBundle resBundle = (ResourceBundle) container.getResourceBundles().get(0);
        datasourceMessages = new GwtDatasourceMessages();
        datasourceMessages.setMessageBundle(resBundle);
        datasourceAdminDialogController = new DatasourceAdminDialogController();
        datasourceAdminDialogController.setBindingFactory(bf);
        datasourceAdminDialogController.setDatasourceServiceManager(genericDatasourceServiceManager);
        datasourceAdminDialogController.setModelerService(modelerService);
        datasourceAdminDialogController.setDSWService(dswService);
        datasourceAdminDialogController.setEntryPoint(entryPoint);
        datasourceAdminDialogController.setMessageBundle(datasourceMessages);
        container.addEventHandler(datasourceAdminDialogController);
        runner.initialize();
        runner.start();
        initialized = true;
        if (constructorListener != null) {
            constructorListener.asyncConstructorDone(this);
        }
        datasourceAdminDialogController.onDialogReady();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : GwtDatasourceMessages(org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory) ResourceBundle(org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle) GwtXulDomContainer(org.pentaho.ui.xul.gwt.GwtXulDomContainer) BindingFactory(org.pentaho.ui.xul.binding.BindingFactory) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)

Example 2 with GwtDatasourceMessages

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

the class GwtImportDialog method xulLoaded.

public void xulLoaded(GwtXulRunner runner) {
    try {
        XulDomContainer container = runner.getXulDomContainers().get(0);
        BindingFactory bf = new GwtBindingFactory(container.getDocumentRoot());
        ResourceBundle resBundle = (ResourceBundle) container.getResourceBundles().get(0);
        datasourceMessages = new GwtDatasourceMessages();
        datasourceMessages.setMessageBundle(resBundle);
        metadataImportDialogController = new MetadataImportDialogController();
        metadataImportDialogController.setBindingFactory(bf);
        container.addEventHandler(metadataImportDialogController);
        metadataImportDialogController.setDatasourceMessages(datasourceMessages);
        analysisImportDialogController = new AnalysisImportDialogController();
        analysisImportDialogController.setBindingFactory(bf);
        container.addEventHandler(analysisImportDialogController);
        analysisImportDialogController.setDatasourceMessages(datasourceMessages);
        importDialogController = new ImportDialogController();
        importDialogController.addImportPerspective(0, metadataImportDialogController);
        importDialogController.addImportPerspective(1, analysisImportDialogController);
        container.addEventHandler(importDialogController);
        runner.initialize();
        runner.start();
        importDialogController.init();
        metadataImportDialogController.init();
        analysisImportDialogController.init();
        if (constructorListener != null) {
            constructorListener.asyncConstructorDone(this);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : GwtDatasourceMessages(org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory) ResourceBundle(org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle) XulDomContainer(org.pentaho.ui.xul.XulDomContainer) BindingFactory(org.pentaho.ui.xul.binding.BindingFactory) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)

Example 3 with GwtDatasourceMessages

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

the class GwtDatasourceSelectionDialog method xulLoaded.

public void xulLoaded(final GwtXulRunner runner) {
    try {
        GwtXulDomContainer container = (GwtXulDomContainer) runner.getXulDomContainers().get(0);
        BindingFactory bf = new GwtBindingFactory(container.getDocumentRoot());
        // begin DatasourceSelectionDialogController setup
        datasourceSelectionDialogController = new DatasourceSelectionDialogController(context);
        datasourceSelectionDialogController.setBindingFactory(bf);
        datasourceSelectionDialogController.setDatasourceService(datasourceService);
        container.addEventHandler(datasourceSelectionDialogController);
        // end DatasourceSelectionDialogController setup
        datasourceSelectionDialogController.setDatasourceDialogController(gwtDatasourceEditor);
        ResourceBundle resBundle = (ResourceBundle) container.getResourceBundles().get(0);
        GwtDatasourceMessages datasourceMessages = new GwtDatasourceMessages();
        datasourceMessages.setMessageBundle(resBundle);
        datasourceSelectionDialogController.setMessageBundle(datasourceMessages);
        runner.initialize();
        runner.start();
        initialized = true;
        if (constructorListener != null) {
            constructorListener.asyncConstructorDone(this);
        }
        datasourceSelectionDialogController.onDialogReady();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : GwtDatasourceMessages(org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory) ResourceBundle(org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle) GwtXulDomContainer(org.pentaho.ui.xul.gwt.GwtXulDomContainer) BindingFactory(org.pentaho.ui.xul.binding.BindingFactory) GwtBindingFactory(org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)

Aggregations

ResourceBundle (org.pentaho.gwt.widgets.client.utils.i18n.ResourceBundle)3 GwtDatasourceMessages (org.pentaho.platform.dataaccess.datasource.wizard.GwtDatasourceMessages)3 BindingFactory (org.pentaho.ui.xul.binding.BindingFactory)3 GwtBindingFactory (org.pentaho.ui.xul.gwt.binding.GwtBindingFactory)3 GwtXulDomContainer (org.pentaho.ui.xul.gwt.GwtXulDomContainer)2 XulDomContainer (org.pentaho.ui.xul.XulDomContainer)1