Package org.pentaho.ui.xul.components

Examples of org.pentaho.ui.xul.components.XulFileDialog.showSaveDialog()


    File selectedFile = workspace.getWorkspaceLocation();
    if (saveAs || selectedFile == null) {
      // display file dialog
      XulFileDialog fc = (XulFileDialog) document.createElement("filedialog");
      // TODO: last browsed in directory?
      RETURN_CODE retVal = fc.showSaveDialog();
      if (retVal == RETURN_CODE.OK) {
        selectedFile = (File) fc.getFile();
      } else {
        return false;
      }
View Full Code Here


  public void saveDdl() throws XulException {
    XulFileDialog fc = (XulFileDialog) document.createElement(ELEM_ID_FILEDIALOG);
    fc.setModalParent(((XulDialog)document.getElementById(ELEM_ID_EXPORT_DIALOG)).getRootObject());
   
    RETURN_CODE retVal = fc.showSaveDialog();
    File selectedFile = null;
    if (retVal == RETURN_CODE.OK) {
      selectedFile = (File) fc.getFile();
      if (logger.isDebugEnabled()) {
        logger.debug("Selected Save file: " + selectedFile.getAbsolutePath());
View Full Code Here

  public void saveDml() throws XulException {
    XulFileDialog fc = (XulFileDialog) document.createElement(ELEM_ID_FILEDIALOG);
    fc.setModalParent(((XulDialog)document.getElementById(ELEM_ID_EXPORT_DIALOG)).getRootObject());

    RETURN_CODE retVal = fc.showSaveDialog();
    File selectedFile = null;
    if (retVal == RETURN_CODE.OK) {
      selectedFile = (File) fc.getFile();
      if (logger.isDebugEnabled()) {
        logger.debug("Selected Save file: " + selectedFile.getAbsolutePath());
View Full Code Here

    fc.setModalParent(((XulDialog)document.getElementById(ELEM_ID_EXPORT_DIALOG)).getRootObject());


    MondrianFileSchemaModel schemaModel = (MondrianFileSchemaModel) connectionModel.getSelectedSchemaModel();

    RETURN_CODE retVal = fc.showSaveDialog(new File(schemaModel.getMondrianSchemaFilename()));

    File selectedFile = null;
    if (retVal == RETURN_CODE.OK) {
      selectedFile = (File) fc.getFile();
      if (logger.isDebugEnabled()) {
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.