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();
}
}
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();
}
}
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();
}
}
Aggregations