Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubMonitor.worked()


                    break;
                String string = new String(buffer, 0, bytesRead, encoding);
                out.write(string);

                total += bytesRead;
                progress.worked(bytesRead);
                if (limit >= 0 && total >= limit) {
                    limitReached = true;
                    return;
                }
            }
View Full Code Here


                        out.write(' ');
                    }
                }

                total += bytesRead;
                progress.worked(bytesRead);
                if (limit >= 0 && total >= limit) {
                    limitReached = true;
                    return;
                }
            }
View Full Code Here

                    BndContainerInitializer.replaceClasspathProblemMarkers(eclipseProject, errors);
                } catch (CoreException e) {
                    logger.logStatus(e.getStatus());
                    return Status.CANCEL_STATUS;
                }
                progress.worked(1);
            }
            if (progress.isCanceled())
                return Status.CANCEL_STATUS;
        }
        return Status.OK_STATUS;
View Full Code Here

                    break;
                String string = new String(buffer, 0, bytesRead, encoding);
                out.write(string);

                total += bytesRead;
                progress.worked(bytesRead);
                if (limit >= 0 && total >= limit) {
                    limitReached = true;
                    return;
                }
            }
View Full Code Here

                        out.write(' ');
                    }
                }

                total += bytesRead;
                progress.worked(bytesRead);
                if (limit >= 0 && total >= limit) {
                    limitReached = true;
                    return;
                }
            }
View Full Code Here

    protected void processGeneratedProject(ProjectPaths projectPaths, BndEditModel bndModel, IJavaProject project, IProgressMonitor monitor) throws CoreException {
        SubMonitor progress = SubMonitor.convert(monitor, 3);

        Document document = new Document("");
        bndModel.saveChangesTo(document);
        progress.worked(1);

        ByteArrayInputStream bndInput;
        try {
            bndInput = new ByteArrayInputStream(document.get().getBytes("UTF-8"));
        } catch (UnsupportedEncodingException e) {
View Full Code Here

                if (resource.dependency)
                    indirectResources.add(resource);
                else
                    directResources.add(resource);
            }
            progress.worked(5);
        } catch (Exception e) {
            error = "Error searching repository: " + e.getMessage();
        }
    }
View Full Code Here

    protected void processGeneratedProject(ProjectPaths projectPaths, BndEditModel bndModel, IJavaProject project, IProgressMonitor monitor) throws CoreException {
        SubMonitor progress = SubMonitor.convert(monitor, 3);

        Document document = new Document("");
        bndModel.saveChangesTo(document);
        progress.worked(1);

        ByteArrayInputStream bndInput;
        try {
            bndInput = new ByteArrayInputStream(document.get().getBytes("UTF-8"));
        } catch (UnsupportedEncodingException e) {
View Full Code Here

    try {
      workingCopy = appModule.resolveDeploymentInfoWorkingCopy(subMonitor);

      Map<?, ?> application = getApplication(null);

      subMonitor.worked(1);
      if (application == null) {
        return null;
      }

      // NOTE: When reading from manifest, the manifest may be INCOMPLETE,
View Full Code Here

      // the
      // property is actually set before set value
      // in the info
      String appName = getStringValue(application, NAME_PROP);

      subMonitor.worked(1);
      if (appName != null) {
        workingCopy.setDeploymentName(appName);
      }

      readMemory(application, workingCopy);
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.