Examples of ProgressListener


Examples of org.geotools.util.ProgressListener

            }           
        };
    }
  static public ProgressListener progress(final IProgressMonitor monitor) {
    if( monitor == null ) return null;
    return new ProgressListener(){
      private String description;
      private int progress;
      private InternationalString task;
     
      public void complete() {
View Full Code Here

Examples of org.gradle.tooling.ProgressListener

                logger.info(Arrays.toString(buildArgs.toArray()));

                build.withArguments(buildArgs.toArray(new String[] {}));

                // if you want to listen to the progress events:
                ProgressListener listener = null; // use your implementation
                // build.addProgressListener(listener);

                // kick the build off:
                build.run();
            } finally {
View Full Code Here

Examples of org.jnode.install.ProgressListener

    public void execute() throws Exception {
        System.out.println("Installing jnode32.gz ...");
        CopyFile cf = new CopyFile(true);
        cf.setSource(new File("/devices/sg0/jnode32.gz"));
        cf.setDestination(new File(targetDirectory + "jnode32.gz"));
        cf.addProgressListener(new ProgressListener() {
            public void progress(ProgressEvent e) {
                System.out.print('.');
            }
        });
        cf.execute();
        System.out.println("Done.");

        System.out.println("Installing full.jgz ...");
        cf = new CopyFile(true);
        cf.setSource(new File("/devices/sg0/full.jgz"));
        cf.setDestination(new File(targetDirectory + "full.jgz"));
        cf.addProgressListener(new ProgressListener() {
            public void progress(ProgressEvent e) {
                System.out.print('.');
            }
        });
        cf.execute();
View Full Code Here

Examples of org.locationtech.geogig.api.ProgressListener

            } catch (FileNotFoundException e) {
                throw Throwables.propagate(e);
            }
        }

        ProgressListener progressListener = getProgressListener();
        progressListener.setDescription("Importing into GeoGig repo...");

        EntityConverter converter = new EntityConverter();

        OSMReport report;
        try {
            report = parseDataFileAndInsert(osmDataFile, osmDataStream, converter);
        } finally {
            Closeables.closeQuietly(osmDataStream);
        }

        if (!progressListener.isCanceled() && report != null) {
            ObjectId newTreeId = workingTree().getTree().getId();
            if (!noRaw) {
                if (mapping != null || filter != null) {
                    progressListener.setDescription("Staging features...");
                    command(AddOp.class).setProgressListener(progressListener).call();
                    progressListener.setDescription("Committing features...");
                    command(CommitOp.class).setMessage(message)
                            .setProgressListener(progressListener).call();
                    OSMLogEntry entry = new OSMLogEntry(newTreeId, report.getLatestChangeset(),
                            report.getLatestTimestamp());
                    command(AddOSMLogEntry.class).setEntry(entry).call();
View Full Code Here

Examples of org.opengis.util.ProgressListener

            IGeoResource scratch = CatalogPlugin.getDefault().getLocalCatalog().createTemporaryResource( featureType );
            final SimpleFeatureStore store = scratch.resolve(SimpleFeatureStore.class, SubMonitor.convert(monitor,Messages.ReshapeOperation_createTempSpaceTask, 10));
           
            store.setTransaction( transaction );
           
            ProgressListener progessListener = GeoToolsAdapters.progress( SubMonitor.convert(monitor,"processing "+source.getName(), 90));         //$NON-NLS-1$

            output.accepts(new FeatureVisitor(){
                boolean warning = true;
                public void visit( Feature rawFeature ) {
                    SimpleFeature feature = (SimpleFeature) rawFeature;
View Full Code Here

Examples of org.opengis.util.ProgressListener

    public final static int CANCEL_ID = 38;

    StyleLayer selectedLayer;

    public ProgressListener getProgressListener() {
        ProgressListener cancelProgress = new NullProgressListener();
        return cancelProgress ;
    }
View Full Code Here

Examples of org.opengis.util.ProgressListener

            IGeoResource scratch = CatalogPlugin.getDefault().getLocalCatalog().createTemporaryResource( featureType );
            final SimpleFeatureStore store = scratch.resolve(SimpleFeatureStore.class, SubMonitor.convert(monitor,Messages.ReshapeOperation_createTempSpaceTask, 10));
           
            store.setTransaction( transaction );
           
            ProgressListener progessListener = GeoToolsAdapters.progress( SubMonitor.convert(monitor,"processing "+source.getName(), 90));         //$NON-NLS-1$

            output.accepts(new FeatureVisitor(){
                boolean warning = true;
                public void visit( Feature rawFeature ) {
                    SimpleFeature feature = (SimpleFeature) rawFeature;
View Full Code Here

Examples of org.opengis.util.ProgressListener

                    }
                   
          if (createClassifier) {
            function = (ClassificationFunction) ff.function(fn.getFunctionName(), new Expression[fn.getArgumentCount()]);
           
            ProgressListener cancelProgress = ((StyleEditorDialog) getContainer()).getProgressListener();
            function.setProgressListener((org.geotools.util.ProgressListener) cancelProgress);
            numClasses = new Integer(getCombo(COMBO_CLASSES).getText()).intValue();

            if (getCombo(COMBO_ELSE).getSelectionIndex() == 0) {
              // function.setNumberOfClasses(numClasses);
View Full Code Here

Examples of org.opengis.util.ProgressListener

                    //count the number of unique attributes
                    int uniqueCount = -1;
                    try {
                        Expression attr = ff.property(attribute);
                        UniqueVisitor uniques = new UniqueVisitor(attr);
                        ProgressListener progress = new NullProgressListener();
                        collection.accepts(uniques, progress);
                        uniqueCount = uniques.getUnique().size();
                    } catch (IOException e1) {
                        SLDPlugin.log("unique values calculation failed", e1); //$NON-NLS-1$
                    }
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.