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