Package org.eclipse.core.runtime

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


        IClasspathEntry[] jarEntries = getJarEntries();
        File userClassFilesDir = getAbsoluteOutputLocation(this.javaProject);
       
        outputWar.delete();
        War warTask = new War();
        progressMonitor.worked(1);
        Project antProject = new Project();
        antProject.init();
        warTask.setProject(antProject);
        warTask.setDestFile(outputWar);
        ZipFileSet classes = new ZipFileSet();
View Full Code Here


        for (int i = 0; i < jarFS.length; i++)
        {
            warTask.addLib(jarFS[i]);
        }
        warTask.execute();
        progressMonitor.worked(2);
        return outputWar;
    }

    /**
     * @param theJarEntries the jars to build ZipFileSets from
View Full Code Here

        int port= SocketUtil.findFreePort();
        if (port == -1) {
            abort(LaunchingMessages.StandardVMDebugger_Could_not_find_a_free_socket_for_the_debugger_1, null, IJavaLaunchConfigurationConstants.ERR_NO_SOCKET_AVAILABLE);
        }

        subMonitor.worked(1);

        // check for cancellation
        if (monitor.isCanceled()) {
            return;
        }
View Full Code Here

        // check for cancellation
        if (monitor.isCanceled()) {
            return;
        }

        subMonitor.worked(1);
        subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Starting_virtual_machine____4);

        ListeningConnector connector= getConnector();
        if (connector == null) {
            abort(LaunchingMessages.StandardVMDebugger_Couldn__t_find_an_appropriate_debug_connector_2, null, IJavaLaunchConfigurationConstants.ERR_CONNECTOR_NOT_AVAILABLE);
View Full Code Here

                    return;
                }

                IProcess process= newProcess(launch, p, renderProcessLabel(cmdLine), getDefaultProcessMap());
                process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLineInternal(cmdLine));
                subMonitor.worked(1);
                subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Establishing_debug_connection____5);
                boolean retry= false;
                do  {
                    try {
View Full Code Here

                        }

                        VirtualMachine vm= runnable.getVirtualMachine();
                        if (vm != null) {
                            DroolsDebugModel.newDebugTarget(launch, vm, renderDebugTarget(config.getClassToLaunch(), port), process, true, false, config.isResumeOnStartup());
                            subMonitor.worked(1);
                            subMonitor.done();
                        }
                        return;
                    } catch (InterruptedIOException e) {
                        checkErrorMessage(process);
View Full Code Here

        if(view != null) {
          IActionBars bars = view.getView(false).getViewSite().getActionBars();
          IStatusLineManager statusLine = bars.getStatusLineManager();
          pm = statusLine.getProgressMonitor();
          pm.beginTask("Refreshing chart:", IProgressMonitor.UNKNOWN);
          pm.worked(1);
        }
       
        ResultSetMetaData metadata;
        if(!refresh) {
         
View Full Code Here

    IPath componentBundlePath = componentContainerPath.addTrailingSeparator().append(componentName + ".wo");
    IFolder componentBundleFolder = project.getFolder(componentBundlePath);
    if (!componentBundleFolder.exists()) {
      prepareFolder(componentBundleFolder, new SubProgressMonitor(progressMonitor, componentBundlePath.segmentCount()));
    } else {
      progressMonitor.worked(componentBundlePath.segmentCount());
    }
   
    // gather contents to populate wod, woo, html files
    String lineDelimiter = StubUtility.getLineDelimiterUsed(getJavaProject());
    Map<String, String> filesContents = new HashMap<String, String>();
View Full Code Here

    // gather contents to populate wod, woo, html files
    String lineDelimiter = StubUtility.getLineDelimiterUsed(getJavaProject());
    Map<String, String> filesContents = new HashMap<String, String>();
    filesContents.put("wod", "");
    filesContents.put("woo", wooContentsWithEncoding(lineDelimiter, getComponentWOOEncodingKey()));
    progressMonitor.worked(1);
    filesContents.put("html", getSelectedHTML().getHTML(lineDelimiter));
    progressMonitor.worked(1);
   
    // create wod, woo, html files
    for (Entry<String, String> entry : filesContents.entrySet()) {
View Full Code Here

    Map<String, String> filesContents = new HashMap<String, String>();
    filesContents.put("wod", "");
    filesContents.put("woo", wooContentsWithEncoding(lineDelimiter, getComponentWOOEncodingKey()));
    progressMonitor.worked(1);
    filesContents.put("html", getSelectedHTML().getHTML(lineDelimiter));
    progressMonitor.worked(1);
   
    // create wod, woo, html files
    for (Entry<String, String> entry : filesContents.entrySet()) {
      FileCreationWorker fileCreator = new FileCreationWorker(componentBundleFolder, componentName, entry.getKey(), entry.getValue());
      try {
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.