Package org.pentaho.ui.xul.components.XulFileDialog

Examples of org.pentaho.ui.xul.components.XulFileDialog.RETURN_CODE


    File selectedFile = workspace.getWorkspaceLocation();
   
    XulFileDialog fc = (XulFileDialog) document.createElement("filedialog");
   
    RETURN_CODE retVal = fc.showOpenDialog(selectedFile);
   
    if (retVal == RETURN_CODE.OK) {
      selectedFile = (File) fc.getFile();
      try {
        String xml = FileUtils.readFileToString(selectedFile);
View Full Code Here


    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

  public void chooseFile() throws AggDesignerException {
    try {
      XulFileDialog fc = (XulFileDialog) document.createElement("filedialog");

      RETURN_CODE retVal;
      if (getLastFile() != null) {
        retVal = fc.showOpenDialog(getLastFile());
      } else {
        retVal = fc.showOpenDialog();
      }
View Full Code Here

TOP

Related Classes of org.pentaho.ui.xul.components.XulFileDialog.RETURN_CODE

Copyright © 2018 www.massapicom. 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.