Package org.eclipse.core.runtime

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


    {
      IPath destination = generateImageDestination(cls, ".svg");
      monitor.subTask("Saving SVG image " + destination.lastSegment());
      CopyToImageUtil img = getCopyToImageUtil();
      img.copyToImage(part, destination, ImageFileFormat.SVG, new SubProgressMonitor(monitor, 1));
      saveMonitor.worked(1);
    }

    saveMonitor.done();
   
    // close the editor once we're done
View Full Code Here


        .append(getHTMLFooter());
     
      // add the SVG
      latexMap.put(resolved, getLatexTag(resolved, destination));
     
      finalMonitor.worked(1);
     
      // export HTML page
      try {
        File destFile = new File(htmlDestination.toOSString());
        FileWriter fw = new FileWriter(destFile);
View Full Code Here

        fw.write(html.toString());
        fw.close();
      } catch (IOException e) {
        throw new ExportImageException("Could not export individual HTML page '" + htmlDestination + "': " + e.getMessage(), e);
      }
      finalMonitor.worked(1);
    }
   
    // export Latex page
    IPath latexDestination = targetDiagram.getLocation().removeFileExtension().addFileExtension("tex");
    try {
View Full Code Here

      Collections.sort(objectList, new EObjectDepthComparator());
      for (EObject obj : objectList) {
        fw.write(latexMap.get(obj));
      }
      fw.close();
      finalMonitor.worked(5);
    } catch (IOException e) {
      throw new ExportImageException("Could not export Latex page '" + latexDestination + "': " + e.getMessage(), e);
    }
   
    finalMonitor.done();
View Full Code Here

      List<IFolder> allDescriptorFolders = RutaProjectUtils.getAllDescriptorFolders(proj);
      for (IFolder iFolder : allDescriptorFolders) {
        RutaProjectUtils.addProjectDataPath(proj, iFolder);
      }
     
      monitor.worked(2);
      String defaultDescriptorLocation = RutaProjectUtils.getDefaultDescriptorLocation();
      IFolder folder = container.getProject().getFolder(defaultDescriptorLocation);
      for (IPath iPath : generateResources) {
        iPath = iPath.makeRelativeTo(folder.getLocation());
        IResource findMember = folder.findMember(iPath);
View Full Code Here

      }
      folder.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor,
              generateResources.length));

      monitor.worked(1);
    } catch (ModelException e) {
      if (DLTKCore.DEBUG_PARSER) {
        e.printStackTrace();
      }
    } catch (CoreException e) {
View Full Code Here

      }
    }

    if (progressMonitor != null)
    {
      progressMonitor.worked(1);
    }
  }

  /**
   * Loads a new {@link WSDLResourceImpl} into the resource set.
View Full Code Here

                } catch (NotConnectedException e) {
                  ToolPlugin.showError("Tool System Exception", e);
                } catch (CommandException e) {
                  ToolPlugin.showError("Tool System Exception", e);
                } finally {
                  mon.worked(1);
                }

              }
            } else if (file.getFileExtension().equalsIgnoreCase("fsw")){
              System.out.println("Building Tool Window: " + file);
View Full Code Here

            if (comp != null) {
              RepositoryPropertiesManager.addRepositoryStateProperty(file, comp.getState());
            } else {
              RepositoryPropertiesManager.addRepositoryStateProperty(file, RepositoryComponent.NOT_IN_REPOSITORY);
            }
            subMonitor.worked(1);
          }
        }
        monitor.worked(1);
      }
    } catch (ToolSystemException e) {
View Full Code Here

                        int worked = filesRemainingBefore
                            - filesRemainingCurrently;

                        // Inform others for progress...
                        monitor.worked(worked);
                        remoteProgress.worked(worked);

                        filesRemainingBefore = filesRemainingCurrently;
                    }
                    try {
                        Thread.sleep(100);
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.