Examples of ExtensionFileFilter


Examples of org.impalaframework.file.ExtensionFileFilter

        String libraryPath = getLibraryPath(workspaceRootPath, moduleName);
        File internalModulesDirectory = new File(libraryPath);
        if (internalModulesDirectory.exists()) {
           
            final File[] listFiles = internalModulesDirectory.listFiles(new ExtensionFileFilter(".jar"));
           
            if (logger.isDebugEnabled()) {
                logger.debug("Found internal lib directories for module '" + moduleName + "'");
                for (File file : listFiles) {
                    logger.debug("\t"+file.getAbsolutePath());
View Full Code Here

Examples of org.impalaframework.file.ExtensionFileFilter

        String parent = relativeModuleRootLocation + "/lib/" + moduleName;
        Resource parentResource = new ServletContextResource(servletContext, parent);
        try {
            File file = parentResource.getFile();
            if (file.exists()) {
                File[] files = file.listFiles(new ExtensionFileFilter(".jar"));
                if (files != null && files.length > 0) {
                    return Arrays.asList(ResourceUtils.getResources(files));
                }
            }
        }
View Full Code Here

Examples of org.impalaframework.file.ExtensionFileFilter

        String parent = relativeModuleRootLocation + "/lib/" + moduleName;
        Resource parentResource = new ServletContextResource(servletContext, parent);
        try {
            File file = parentResource.getFile();
            if (file.exists()) {
                File[] files = file.listFiles(new ExtensionFileFilter(".jar"));
                if (files != null && files.length > 0) {
                    return Arrays.asList(ResourceUtils.getResources(files));
                }
            }
        }
View Full Code Here

Examples of org.impalaframework.file.ExtensionFileFilter

        String libraryPath = getLibraryPath(workspaceRootPath, moduleName);
        File internalModulesDirectory = new File(libraryPath);
        if (internalModulesDirectory.exists()) {
           
            final File[] listFiles = internalModulesDirectory.listFiles(new ExtensionFileFilter(".jar"));
           
            if (logger.isDebugEnabled()) {
                logger.debug("Found internal lib directories for module '" + moduleName + "'");
                for (File file : listFiles) {
                    logger.debug("\t"+file.getAbsolutePath());
View Full Code Here

Examples of org.jfree.ui.ExtensionFileFilter

   public void doSaveAs() throws IOException
   {

      JFileChooser fileChooser = new JFileChooser();
      fileChooser.setCurrentDirectory(this.defaultDirectoryForSaveAs);
      ExtensionFileFilter filter = new ExtensionFileFilter(
              localizationResources.getString("PNG_Image_Files"), ".png");
      fileChooser.addChoosableFileFilter(filter);

      int option = fileChooser.showSaveDialog(this);
      if (option == JFileChooser.APPROVE_OPTION)
View Full Code Here

Examples of org.jfree.ui.ExtensionFileFilter

        }
    }

    private void exportData(){
        JFileChooser jfc = new JFileChooser();
        FileFilter ff = new ExtensionFileFilter("Archivos de Texto","txt");
        jfc.setFileFilter(ff);
        jfc.setCurrentDirectory(new File("."));
        jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        jfc.setDialogTitle("Gererar Archivos de Texto");
View Full Code Here

Examples of org.jfree.ui.ExtensionFileFilter

                client.download("GT99_A09.rar", ff );
                client.disconnect(false);
                Shared.prepareMovements( ff );
            }else if ( mode.equals("File") ) {
                JFileChooser jfc = new JFileChooser();
                FileFilter f = new ExtensionFileFilter("Traslados de Total Pos","rar");
                jfc.setFileFilter(f);
                int selection = jfc.showOpenDialog(Shared.getMyMainWindows());
                if ( selection == JFileChooser.APPROVE_OPTION ){
                    Shared.prepareMovements( jfc.getSelectedFile());
                }else{
View Full Code Here

Examples of org.nasutekds.quicksetup.util.ExtensionFileFilter

    case OPEN_LDIF_FILE:
      fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
      fc.setDialogType(JFileChooser.OPEN_DIALOG);
      fc.setDialogTitle(INFO_OPEN_LDIF_FILE_DIALOG_TITLE.get().toString());
      ExtensionFileFilter ldifFiles =
          new ExtensionFileFilter("ldif",
              INFO_LDIF_FILES_DESCRIPTION.get().toString());

      fc.addChoosableFileFilter(ldifFiles);
      fc.setFileFilter(ldifFiles);
      break;

    case OPEN_ZIP_FILE:
        fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
        fc.setDialogType(JFileChooser.OPEN_DIALOG);
        fc.setDialogTitle(INFO_OPEN_ZIP_FILE_DIALOG_TITLE.get().toString());
        ExtensionFileFilter zipFiles =
            new ExtensionFileFilter("zip",
                INFO_ZIP_FILES_DESCRIPTION.get().toString());

        fc.addChoosableFileFilter(zipFiles);
        fc.setFileFilter(zipFiles);
        break;
View Full Code Here

Examples of org.openquark.util.ui.ExtensionFileFilter

     * Handle a press on the Browse button by opening a file dialog
     */
    protected void onBrowse () {
        JFileChooser fileChooser = new JFileChooser (getFilenameField().getText());
       
        fileChooser.setFileFilter(new ExtensionFileFilter ("txt", "Text Files"));
       
        if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
            String filename = fileChooser.getSelectedFile().getPath();
           
            getFilenameField().setText(filename);
View Full Code Here

Examples of org.openstreetmap.josm.actions.ExtensionFileFilter

public class GpxImporter extends FileImporter {
  private GpxData lastData;

  public GpxImporter() {
    super(new ExtensionFileFilter("gpx,gpx.gz", "gpx", tr("GPX Files")
        + " (*.gpx *.gpx.gz)"));
  }
 
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.