Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Look at this code. Rebuild your product with a new product version and try to setup a http server. It didnt work with file repo for me. Just publishing the feature will not work.</p> <pre class="lang-java prettyprint-override"><code>final IRunnableWithProgress runnable = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { sub = SubMonitor.convert(monitor, Messages.getString("UpdateManager.searchforupdates"), 200); //$NON-NLS-1$ final Update update = getUpdate(profile, provisioningContext, engine, context); status = operation.resolveModal(sub.newChild(100)); LogHelper.log(status); if (status.getCode() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) { status = null; return; } if (status.getSeverity() == IStatus.CANCEL) throw new OperationCanceledException(); if (status.getSeverity() != IStatus.ERROR) { log(IStatus.INFO, "Checking for available update matches", null); //$NON-NLS-1$ Update[] selected = new Update[1]; operation.setSelectedUpdates(new Update[0]); for (Update available : operation.getPossibleUpdates()) { if (available.equals(update)) { log(IStatus.INFO, "Update matches available: " + update, null); //$NON-NLS-1$ selected[0] = available; operation.setSelectedUpdates(selected); } } if (selected[0] == null) { status = null; monitor.setCanceled(true); log(IStatus.WARNING, "No Update matches selected", null); //$NON-NLS-1$ return; } ProvisioningJob job = operation.getProvisioningJob(monitor); if (job != null) { status = job.runModal(sub.newChild(100)); if (status.getSeverity() != IStatus.ERROR) { prefStore.setValue(JUSTUPDATED, true); Display.getDefault().syncExec(new Runnable() { public void run() { PlatformUI.getWorkbench().restart(); } }); } else { LogHelper.log(status); } } else { log(IStatus.INFO, "getJob returned null", null); //$NON-NLS-1$ status = null; } if (status != null &amp;&amp; status.getSeverity() == IStatus.CANCEL) throw new OperationCanceledException(); } } }; Display.getDefault().asyncExec(new Runnable() { public void run() { try { new ProgressMonitorDialog(null).run(true, true, runnable); } catch (InvocationTargetException x) { log(IStatus.ERROR, "Runnable failure", x); //$NON-NLS-1$ } catch (InterruptedException e) { } } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload