Package org.pentaho.ui.xul.components

Examples of org.pentaho.ui.xul.components.XulMessageBox.open()


    } catch (ValidationException validationException) {
      logger.error("error", validationException);
      XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
      box.setTitle(Messages.getString("AlgorithmController.ErrorTitle"));
      box.setMessage(Messages.getString("AlgorithmController.ValidationErrorMessage", validationException.getMessage()));
      box.open();
    } catch (Throwable throwable) {
      logger.error("error", throwable);
      XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
      box.setTitle(Messages.getString("AlgorithmController.ErrorTitle"));
      box.setMessage(Messages.getString("AlgorithmController.GeneralErrorMessage"));
View Full Code Here


    } catch (Throwable throwable) {
      logger.error("error", throwable);
      XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
      box.setTitle(Messages.getString("AlgorithmController.ErrorTitle"));
      box.setMessage(Messages.getString("AlgorithmController.GeneralErrorMessage"));
      box.open();
    }
  }

  public void stopAlgo() {
    logger.debug("enter stopAlgo");
View Full Code Here

          try {
            XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
            box.setTitle("Error");
            box.setMessage(Messages.getString("Olap.apply.error"));
            box.open();
          } catch (XulException ex) {
          }

        } finally {
          logger.debug("hiding dialog if it isn't already hidden");
View Full Code Here

    if (selectedSchemaProvider == null) {
      XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
      box.setTitle("Error");
      box.setMessage("Error applying OLAP schema");
      box.open();
      return;
    }
    connectionModel.setCubeNames(cubeNames);
    connectionModel.setSelectedSchemaModel(selectedSchemaProvider.getSchemaModel());
View Full Code Here

  public void openDialog() throws Exception {
    if (getEnabledAggs().size() == 0) {
      XulMessageBox msgBox = (XulMessageBox) document.createElement(ELEM_ID_MESSAGEBOX);
      msgBox.setMessage(Messages.getString("ExportHandler.NoAggsDefinedOrEnabled")); //$NON-NLS-1$
      msgBox.open();

      logger.info("Exiting showRelationalPreview as there are no Aggs defined");
      return;
    }
    XulDialog dialog = (XulDialog) document.getElementById(ELEM_ID_EXPORT_DIALOG);
View Full Code Here

      msgBox.setMessage(e.getLocalizedMessage());
      msgBox.setTitle(Messages.getString("ExportHandler.DdlDmlExecutionErrorDialogTitle"));
      msgBox.setScrollable(true);
      msgBox.setHeight(300);
      msgBox.setWidth(400);
      msgBox.open();
    }

    if (logger.isDebugEnabled()) {
      logger.debug("exit executeDdlDmlDone");
    }
View Full Code Here

    // If we're not dealing with a MondrianFileSchemaModel object, something
    // has gone wrong with the UI application state.
    if (!(connectionModel.getSelectedSchemaModel() instanceof MondrianFileSchemaModel)) {
      XulMessageBox msgBox = (XulMessageBox) document.createElement(ELEM_ID_MESSAGEBOX);
      msgBox.setMessage("Inconsistent application state: Only MondrianFileSchemaModel should call into this method");
      msgBox.open();
      logger.error("Inconsistent application state: Only MondrianFileSchemaModel should call into this method");
      return null;
    }
   
    XulFileDialog fc = (XulFileDialog) document.createElement(ELEM_ID_FILEDIALOG);
View Full Code Here

    // If we're not dealing with a MondrianFileSchemaModel object, something
    // has gone wrong with the UI application state.
    if (!(connectionModel.getSelectedSchemaModel() instanceof MondrianFileSchemaModel)) {
      XulMessageBox msgBox = (XulMessageBox) document.createElement("messagebox");
      msgBox.setMessage("Inconsistent application state: Only MondrianFileSchemaModel should call into this method");
      msgBox.open();
      logger.error("Inconsistent application state: Only MondrianFileSchemaModel should call into this method");
      return;
    }
   
    File schemaFile = new File(((MondrianFileSchemaModel)connectionModel.getSelectedSchemaModel()).getMondrianSchemaFilename());
View Full Code Here

      XulMessageBox msgBox = (XulMessageBox) document.createElement("messagebox");
      msgBox.setTitle(Messages.getString("SchemaModifiedWarning.Title"));
      msgBox.setMessage(Messages.getString("SchemaModifiedWarning.Message"));
      msgBox.setButtons(new String[] {"Yes", "No", "Cancel"});
      int option = msgBox.open();
     
      if (option == 0) {
        schemaFile = exportHandler.saveOlap();
      } else if (option == 2) {
        return;
View Full Code Here

      String message = Messages.getString("AggController.SaveOutputMessage") + "\n"
          + Messages.getString("AggController.SaveOutputMessageSaveChanges");
      msgBox.setMessage(message);
      msgBox.setButtons(new String[] { Messages.getString("save"), Messages.getString("do_not_save") });

      int id = msgBox.open();
      if (id == 0) {
        apply();
      } else {
        reset();
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.