public void containersChanged(Set<TaskContainerDelta> containers) { for (TaskContainerDelta delta : containers) { switch (delta.getKind()) { case ADDED: case REMOVED: case CONTENT: IRepositoryElement element = delta.getElement(); if (element instanceof ITask) { ITask task = (ITask) element; if ("local".equals(((AbstractTask) task).getConnectorKind())) { // $NON-NLS-1$ reindex(task, null); } } } } }
public void containersChanged(Set<TaskContainerDelta> containers) { // update label in case task changes if (activeTask != null) { for (TaskContainerDelta taskContainerDelta : containers) { if (activeTask.equals(taskContainerDelta.getElement())) { if (taskContainerDelta.getKind().equals(TaskContainerDelta.Kind.CONTENT)) { Display.getDefault() .asyncExec( new Runnable() { public void run() { if (activeTask != null && activeTask.isActive()) { indicateActiveTask(); } } }); return; } } } } }