Search in sources :

Example 1 with ModelerPerspective

use of org.pentaho.agilebi.modeler.ModelerPerspective in project data-access by pentaho.

the class GwtDatasourceEditorEntryPoint method showWizardEdit.

public void showWizardEdit(final String domainId, final String modelId, final String perspective, boolean reportingOnlyValid, final DialogListener<Domain> listener) {
    final String modelPerspective;
    if (perspective == null) {
        modelPerspective = ModelerPerspective.ANALYSIS.name();
    } else {
        modelPerspective = perspective;
    }
    modeler = ModelerDialog.getInstance(wizard, new AsyncConstructorListener<ModelerDialog>() {

        public void asyncConstructorDone(ModelerDialog dialog) {
            ModelerPerspective modelerPerspective;
            try {
                modelerPerspective = ModelerPerspective.valueOf(modelPerspective);
            } catch (IllegalArgumentException e) {
                modelerPerspective = ModelerPerspective.ANALYSIS;
            }
            dialog.addDialogListener(listener);
            dialog.showDialog(domainId, modelId, modelerPerspective);
        }
    });
}
Also used : ModelerDialog(org.pentaho.platform.dataaccess.datasource.modeler.ModelerDialog) ModelerPerspective(org.pentaho.agilebi.modeler.ModelerPerspective) AsyncConstructorListener(org.pentaho.ui.xul.gwt.util.AsyncConstructorListener)

Aggregations

ModelerPerspective (org.pentaho.agilebi.modeler.ModelerPerspective)1 ModelerDialog (org.pentaho.platform.dataaccess.datasource.modeler.ModelerDialog)1 AsyncConstructorListener (org.pentaho.ui.xul.gwt.util.AsyncConstructorListener)1