@Override public void stateResolved(StateDelta delta) { if (delta == null) { // if delta is null, then target has changed // prepare all projects for "touching" fTouchWorkspace = true; fProjectNames.clear(); } else { BundleDelta[] deltas = delta.getChanges(); for (int i = 0; i < deltas.length; i++) { // only interested in workspace plug-ins that are affected by delta // but not those who have caused it. int type = deltas[i].getType(); if ((type & BundleDelta.UPDATED) == BundleDelta.UPDATED || (type & BundleDelta.ADDED) == BundleDelta.ADDED || (type & BundleDelta.REMOVED) == BundleDelta.REMOVED) continue; IPluginModelBase model = PluginRegistry.findModel(deltas[i].getBundle()); IResource resource = model == null ? null : model.getUnderlyingResource(); if (resource != null) fProjectNames.add(resource.getProject().getName()); } } }
if (sameNames != null && sameNames.length > 1) { if (addDeltas == null) addDeltas = systemState.getChanges().getChanges(BundleDelta.ADDED, false); for (int j = 0; j < sameNames.length; j++) if (sameNames[j] != bundles[i]) { BundleDelta[] delta = stateDelta.getChanges(); processDelta(delta, refreshPackages, systemState); if (stateDelta.getResovlerHookException() != null) throw stateDelta.getResovlerHookException(); } catch (Throwable t) { if (Debug.DEBUG_PACKAGEADMIN) {
public void stateResolved(StateDelta delta) { if (delta == null) { // if delta is null, then target has changed // prepare all projects for "touching" fTouchWorkspace = true; fProjectNames.clear(); } else { BundleDelta[] deltas = delta.getChanges(); for (int i = 0; i < deltas.length; i++) { // only interested in workspace plug-ins that are affected by delta // but not those who have caused it. int type = deltas[i].getType(); if ((type & BundleDelta.UPDATED) == BundleDelta.UPDATED || (type & BundleDelta.ADDED) == BundleDelta.ADDED || (type & BundleDelta.REMOVED) == BundleDelta.REMOVED) continue; IPluginModelBase model = PluginRegistry.findModel(deltas[i].getBundle()); IResource resource = model == null ? null : model.getUnderlyingResource(); if (resource != null) fProjectNames.add(resource.getProject().getName()); } } }
BundleDelta[] delta = stateDelta.getChanges(); processDelta(delta, refreshPackages, systemState); if (stateDelta.getResovlerHookException() != null) throw stateDelta.getResovlerHookException(); } catch (Throwable t) { if (Debug.DEBUG_PACKAGEADMIN) {
@Override public void stateResolved(final StateDelta delta) { if (!fView.getCurrentPage().equals(this) || fTreeViewer == null || fTreeViewer.getTree().isDisposed()) // if this page is not active, then wait until we call refresh on next activation return; fTreeViewer.getTree().getDisplay().asyncExec(() -> { if (delta == null) { fTreeViewer.refresh(); } else { BundleDelta[] deltas = delta.getChanges(); for (BundleDelta d : deltas) { int type = d.getType(); if (type == BundleDelta.REMOVED || type == BundleDelta.RESOLVED || type == BundleDelta.ADDED || type == BundleDelta.UNRESOLVED) { fTreeViewer.refresh(); break; } } } }); }
BundleDelta[] deltas = delta.getChanges(); for (int i = 0; i < deltas.length; i++) { try {
BundleDelta[] deltas = delta.getChanges(); for (int i = 0; i < deltas.length; i++) { try {