Package org.pentaho.reporting.libraries.designtime.swing.filechooser

Examples of org.pentaho.reporting.libraries.designtime.swing.filechooser.CommonFileChooser.showDialog()


     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final CommonFileChooser chooser = FileChooserService.getInstance().getFileChooser("drilldown-profiles");
      if (chooser.showDialog(DrillDownProfileEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }
      final File selectedFile = chooser.getSelectedFile();
      if (selectedFile != null)
View Full Code Here


     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final CommonFileChooser chooser = FileChooserService.getInstance().getFileChooser("drilldown-profiles");
      if (chooser.showDialog(DrillDownProfileEditor.this, JFileChooser.SAVE_DIALOG) == false)
      {
        return;
      }
      final File selectedFile = chooser.getSelectedFile();
      if (selectedFile != null)
View Full Code Here


      final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("mondrian");
      fileChooser.setSelectedFile(initiallySelectedFile);
      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(SimpleMondrianDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }
      final File file = fileChooser.getSelectedFile();
      if (file == null)
View Full Code Here


      final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("mondrian"); // NON-NLS
      fileChooser.setSelectedFile(initiallySelectedFile);
      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(MondrianDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }
      final File file = fileChooser.getSelectedFile();
      if (file == null)
View Full Code Here

          Messages.getString("PmdDataSourceEditor.XmiFileName") + " (*.xmi)", true)}; // NON-NLS

      final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("xmifile");
      fileChooser.setSelectedFile(initiallySelectedFile);
      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(PmdDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }

      final File file = fileChooser.getSelectedFile();
View Full Code Here

          Messages.getString("PmdDataSourceEditor.XmiFileName") + " (*.xmi)", true)}; // NON-NLS

      final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("xmifile");
      fileChooser.setSelectedFile(initiallySelectedFile);
      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(SimplePmdDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }

      final File file = fileChooser.getSelectedFile();
View Full Code Here

          {new FilesystemFilter(new String[]{".xls", ".xlsx"}, // NON-NLS
              Messages.getString("TableDataSourceEditor.ExcelFileDescription"), true)};
      final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("xls");

      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(TableDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }

      final File file = fileChooser.getSelectedFile();
View Full Code Here

        {
          fileChooser.setSelectedFile(new File(fileTextField.getText()));
        }
      }
      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(KettleDataSourceDialog.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }

      final File file = fileChooser.getSelectedFile();
View Full Code Here

        {
          fileChooser.setSelectedFile(new File(fileTextField.getText()));
        }
      }
      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog (KettleDataSourceDialog.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }
     
      final File file = fileChooser.getSelectedFile();
View Full Code Here

          {new FilesystemFilter(new String[]{".xls", ".xlsx"}, // NON-NLS
              Messages.getString("TableDataSourceEditor.ExcelFileDescription"), true)};
      final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("xls");

      fileChooser.setFilters(fileFilters);
      if (fileChooser.showDialog(TableDataSourceEditor.this, JFileChooser.OPEN_DIALOG) == false)
      {
        return;
      }

      final File file = fileChooser.getSelectedFile();
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.