Package org.pentaho.ui.xul.components

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


    {
      try
      {
        final XulFileDialog fd = (XulFileDialog) document.createElement("filedialog"); //$NON-NLS-1$
        fd.setModalParent(LookAndFeelStep.this.getDesignTimeContext().getParentWindow());
        fd.showOpenDialog();
        file = (File) fd.getFile();
        if (file != null)
        { // If the file is null then the user hit cancel
          final String filePath = file.getAbsolutePath();
          final XulTextbox fileTextBox = (XulTextbox) document.getElementById(WIZARD_FILENAME_TB_ID);
View Full Code Here


    {
      try
      {
        final XulFileDialog fd = (XulFileDialog) document.createElement("filedialog"); //$NON-NLS-1$
        fd.setModalParent(LookAndFeelStep.this.getDesignTimeContext().getParentWindow());
        fd.showOpenDialog();
        file = (File) fd.getFile();
        if (file != null)
        { // If the file is null then the user hit cancel
          final String filePath = file.getAbsolutePath();
          final XulTextbox fileTextBox = (XulTextbox) document.getElementById(WIZARD_FILENAME_TB_ID);
View Full Code Here

    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

    try {
      XulFileDialog fc = (XulFileDialog) document.createElement("filedialog");

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

      if (retVal == RETURN_CODE.OK) {
View Full Code Here

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

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