Examples of FileExtensionFilter


Examples of net.sourceforge.squirrel_sql.fw.util.FileExtensionFilter

    public void loadPreferencesPanel()
    {
      super.loadPreferencesPanel();
      final String themePackDir = _ctrl._prefs.getThemePackDirectory();
      // i18n[laf.jarZip=JAR/Zip files]
      final FileExtensionFilter filter = new FileExtensionFilter(s_stringMgr.getString("laf.jarZip"), new String[] { ".jar", ".zip" });
      _themePackCmb.load(new File(themePackDir), filter);
      _themePackCmb.setSelectedItem(_ctrl._prefs.getThemePackName());
      if (_themePackCmb.getSelectedIndex() == -1 &&
          _themePackCmb.getModel().getSize() > 0)
      {
View Full Code Here

Examples of no.ugland.utransprod.util.FileExtensionFilter

  }

  private String getCuttingFileName(WindowInterface aWindow) {
    return Util.getFileName(
        aWindow != null ? aWindow.getComponent() : null,
        new FileExtensionFilter("boq", "BOQ-fil"), null);
  }
View Full Code Here

Examples of no.ugland.utransprod.util.FileExtensionFilter

    public final void importOrUpdateTransportPrices(final JLabel label,final WindowInterface window) throws ProTransException {
        TransportCostManager transportCostManager = (TransportCostManager) ModelUtil.getBean("transportCostManager");
        transportCostManager.setLabelInfo(label);
        String excelFileName = Util.getFileName(component,
                new FileExtensionFilter("xls", "Excel"),null);
       
        if (excelFileName != null) {
          transportCostActionEnum.doImport(window,managerRepository.getTransportCostManager(),label,excelFileName);
            /*switch (transportCostActionEnum) {
            case IMPORT:
View Full Code Here

Examples of no.ugland.utransprod.util.FileExtensionFilter

    public final void importBudget(final JLabel label,final WindowInterface window) throws ProTransException {
        BudgetManager productionBudgetManager = (BudgetManager) ModelUtil
                .getBean(BudgetManager.MANAGER_NAME);
        productionBudgetManager.setLabelInfo(label);
        String excelFileName = Util.getFileName(parentComponent,
                new FileExtensionFilter("xls", "Excel"),openDir);
       
        if (excelFileName != null) {
            productionBudgetManager.importBudget(excelFileName,budgetType);

        }
View Full Code Here

Examples of org.guvnor.common.services.backend.file.FileExtensionFilter

            }

            LinkedFilter filter = new LinkedDotFileFilter();
            LinkedFilter metaInfFolderFilter = new LinkedMetaInfFolderFilter();
            filter.setNextFilter( metaInfFolderFilter );
            FileExtensionFilter fileExtensionFilter = new FileExtensionFilter( ".scenario" );

            // Get list of immediate children
            final DirectoryStream<org.uberfire.java.nio.file.Path> directoryStream = ioService.newDirectoryStream( pPath );
            for ( final org.uberfire.java.nio.file.Path p : directoryStream ) {
                if ( filter.accept( p ) && fileExtensionFilter.accept( p ) ) {
                    if ( Files.isRegularFile( p ) ) {
                        items.add( Paths.convert( p ) );
                    } else if ( Files.isDirectory( p ) ) {
                        items.add( Paths.convert( p ) );
                    }
View Full Code Here

Examples of org.guvnor.common.services.backend.file.FileExtensionFilter

            }

            LinkedFilter filter = new LinkedDotFileFilter();
            LinkedFilter metaInfFolderFilter = new LinkedMetaInfFolderFilter();
            filter.setNextFilter( metaInfFolderFilter );
            FileExtensionFilter fileExtensionFilter = new FileExtensionFilter( ".scenario" );

            // Get list of immediate children
            final DirectoryStream<org.uberfire.java.nio.file.Path> directoryStream = ioService.newDirectoryStream( pPath );
            for ( final org.uberfire.java.nio.file.Path p : directoryStream ) {
                if ( filter.accept( p ) && fileExtensionFilter.accept( p ) ) {
                    if ( Files.isRegularFile( p ) ) {
                        items.add( Paths.convert( p ) );
                    } else if ( Files.isDirectory( p ) ) {
                        items.add( Paths.convert( p ) );
                    }
View Full Code Here

Examples of org.guvnor.common.services.backend.file.FileExtensionFilter

            }

            LinkedFilter filter = new LinkedDotFileFilter();
            LinkedFilter metaInfFolderFilter = new LinkedMetaInfFolderFilter();
            filter.setNextFilter( metaInfFolderFilter );
            FileExtensionFilter fileExtensionFilter = new FileExtensionFilter( ".scenario" );

            // Get list of immediate children
            final DirectoryStream<org.kie.commons.java.nio.file.Path> directoryStream = ioService.newDirectoryStream( pPath );
            for ( final org.kie.commons.java.nio.file.Path p : directoryStream ) {
                if ( filter.accept( p ) && fileExtensionFilter.accept( p ) ) {
                    if ( Files.isRegularFile( p ) ) {
                        items.add( paths.convert( p ) );
                    } else if ( Files.isDirectory( p ) ) {
                        items.add( paths.convert( p ) );
                    }
View Full Code Here

Examples of org.guvnor.common.services.backend.file.FileExtensionFilter

            }

            LinkedFilter filter = new LinkedDotFileFilter();
            LinkedFilter metaInfFolderFilter = new LinkedMetaInfFolderFilter();
            filter.setNextFilter( metaInfFolderFilter );
            FileExtensionFilter fileExtensionFilter = new FileExtensionFilter( ".scenario" );

            // Get list of immediate children
            final DirectoryStream<org.uberfire.java.nio.file.Path> directoryStream = ioService.newDirectoryStream( pPath );
            for ( final org.uberfire.java.nio.file.Path p : directoryStream ) {
                if ( filter.accept( p ) && fileExtensionFilter.accept( p ) ) {
                    if ( Files.isRegularFile( p ) ) {
                        items.add( Paths.convert( p ) );
                    } else if ( Files.isDirectory( p ) ) {
                        items.add( Paths.convert( p ) );
                    }
View Full Code Here

Examples of org.guvnor.common.services.backend.file.FileExtensionFilter

            }

            LinkedFilter filter = new LinkedDotFileFilter();
            LinkedFilter metaInfFolderFilter = new LinkedMetaInfFolderFilter();
            filter.setNextFilter( metaInfFolderFilter );
            FileExtensionFilter fileExtensionFilter = new FileExtensionFilter( ".scenario" );

            // Get list of immediate children
            final DirectoryStream<org.uberfire.java.nio.file.Path> directoryStream = ioService.newDirectoryStream( pPath );
            for ( final org.uberfire.java.nio.file.Path p : directoryStream ) {
                if ( filter.accept( p ) && fileExtensionFilter.accept( p ) ) {
                    if ( Files.isRegularFile( p ) ) {
                        items.add( Paths.convert( p ) );
                    } else if ( Files.isDirectory( p ) ) {
                        items.add( Paths.convert( p ) );
                    }
View Full Code Here

Examples of org.guvnor.common.services.backend.file.FileExtensionFilter

            return allAvailableTypes;
        }
        final org.kie.commons.java.nio.file.Path nioProjectRoot = paths.convert( projectRoot );
        final org.kie.commons.java.nio.file.Path nioSrcRoot = nioProjectRoot.resolve( "src/main/resources" );
        final Collection<org.kie.commons.java.nio.file.Path> modelNioPaths = fileDiscoveryService.discoverFiles( nioSrcRoot,
                                                                                                                 new FileExtensionFilter( typeDefinition.getSuffix() ),
                                                                                                                 true );
        for ( org.kie.commons.java.nio.file.Path modelNioPath : modelNioPaths ) {
            final Path modelPath = paths.convert( modelNioPath );
            if ( !modelPath.equals( path ) ) {
                final List<FactMetaModel> model = load( modelPath ).getModels();
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.