private void fireRootsChanged() { /* ApplicationManager.getApplication().runReadAction(new Runnable() { public void run() { LOG.info("roots changed: type='" + type + "'\n oldRoots='" + Arrays.asList(oldRoots) + "'\n newRoots='" + Arrays.asList(newRoots) + "' "); } }); */ for (final ProjectRootListener listener : myListeners) { listener.rootsChanged(); } }
public void addProjectRootContainerListener(ProjectRootListener listener) { myListeners.add(listener); }
public void removeProjectRootContainerListener(ProjectRootListener listener) { myListeners.remove(listener); }
private void fireRootsChanged() { for (final ProjectRootListener listener : myListeners) { listener.rootsChanged(); } }