Examples of beginTask()


Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

    final IDiagram modelRef = model;

    // Creating the model
    IProgressMonitor pm = Job.getJobManager().createProgressGroup();
    pm.beginTask("Compute Model", IProgressMonitor.UNKNOWN);
    final ILock lock = Job.getJobManager().newLock();
    Job createModeJob = new Job("Create Model") {
      /**
       * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
       */
 
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

    if (monitor == null) {
      monitor = new NullProgressMonitor();
    }
    IProgressMonitor prepMonitor = SubMonitor.convert(monitor, 80);
    prepMonitor.beginTask("Splitting features", 1); //$NON-NLS-1$

    LineString splitter = getSplittingLineInMapCRS(handler);
    assert splitter.getUserData() instanceof CoordinateReferenceSystem;

    FeatureCollection<SimpleFeatureType, SimpleFeature> featuresToSplit = getFeaturesToSplit(splitter);
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

            int nameIndex = csv.getHeader("name");

            IProgressMonitor drawMonitor = new SubProgressMonitor(monitor, 90);
            Coordinate worldLocation = new Coordinate();
           
            drawMonitor.beginTask("draw "+csv.toString(), csv.getSize());           
            String [] row;
            while ((row = reader.readNext()) != null) {
                Point point = csv.getPoint(row);
                Coordinate dataLocation = point.getCoordinate();
                try {
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

            private void render(final DrawMapParameter params,
                    IProgressMonitor monitor, RendererCreator decisive,
                    SortedSet<RenderContext> sortedContexts)
                    throws InvocationTargetException {
               
                monitor.beginTask("Rendering map", sortedContexts.size());
                RenderContext mainContext = decisive.getContext();

                ILabelPainter labelPainter = mainContext.getLabelPainter();
                labelPainter.clear();
                labelPainter.start();
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

        // add the service to the catalog
        IServiceFactory sFactory = CatalogPlugin.getDefault().getServiceFactory();
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
        URL url = URLUtils.fileToURL(file);
        List<IService> services = sFactory.createService(url);
        monitor.beginTask("add to catalog", services.size() * 10);
        for( IService service : services ) {
            IService registeredService = catalog.add(service);
            SubProgressMonitor monitor2 = new SubProgressMonitor(monitor, 10);
            List<IGeoResource> contents = (List<IGeoResource>) registeredService.resources(monitor2);
            data.addNewResources( contents );
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

                            totalsteps += task.steps;
                        } catch (Throwable e) {
                            UiPlugin.log("error calling getProgressMonitorSteps() on " + task.task, e); //$NON-NLS-1$
                        }
                    }
                    monitor.beginTask(Messages.ShutdownTaskList_shutDown,
                            totalsteps);

                    for( PreTask task : preShutdownTasks ) {
                        IProgressMonitor subMonitor = new ProgressMonitorTaskNamer(monitor, task.steps);
                        boolean result;
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

            monitor2 = new NullProgressMonitor();
        if (id == null)
            return null;

        if (IService.class.isAssignableFrom(type)) {
            monitor2.beginTask(Messages.CatalogImpl_monitorTask, 1);
            IService service = getServiceById(id);
            monitor2.done();
            return type.cast(service);
        }
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

        try {
            List< ? extends IResolve> children = handle.members(monitor2);
            if (children == null || children.isEmpty())
                return null;

            monitor2.beginTask(Messages.CatalogImpl_monitorTask2, children.size());
            for( IResolve child : children ) {
                IResolve found = getChildById(child, id, roughMatch, null);
                if (found != null)
                    return found;
            }
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

            return result;
        }
        HashSet<IService> searchScope = new HashSet<IService>();
        searchScope.addAll(this.services);
        try {
            monitor.beginTask(Messages.CatalogImpl_finding, searchScope.size() * 10);
            SERVICE: for( IService service : searchScope ) {
                ID serviceID = service.getID();
                if (check(service, ast)) {
                    result.add(service);
                }
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()

        else
            monitor = monitor2;
        try {
            if (adaptee == null)
                return null;
            monitor.beginTask(Messages.CatalogImpl_resolving + adaptee.getSimpleName(), 2);
            monitor.worked(1);
            if (adaptee.isAssignableFrom(CatalogImpl.class))
                return adaptee.cast(this);
            if (adaptee.isAssignableFrom(CatalogInfoImpl.class))
                return adaptee.cast(metadata);
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.