Java 类com.intellij.openapi.projectRoots.ProjectRootListener 实例源码

项目:tools-idea    文件:ProjectRootContainerImpl.java   
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();
  }
}
项目:consulo    文件:SdkRootContainerImpl.java   
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();
  }
}
项目:intellij-ce-playground    文件:ProjectRootContainerImpl.java   
public void addProjectRootContainerListener(ProjectRootListener listener) {
  myListeners.add(listener);
}
项目:intellij-ce-playground    文件:ProjectRootContainerImpl.java   
public void removeProjectRootContainerListener(ProjectRootListener listener) {
  myListeners.remove(listener);
}
项目:intellij-ce-playground    文件:ProjectRootContainerImpl.java   
private void fireRootsChanged() {
  for (final ProjectRootListener listener : myListeners) {
    listener.rootsChanged();
  }
}
项目:tools-idea    文件:ProjectRootContainerImpl.java   
public void addProjectRootContainerListener(ProjectRootListener listener) {
  myListeners.add(listener);
}
项目:tools-idea    文件:ProjectRootContainerImpl.java   
public void removeProjectRootContainerListener(ProjectRootListener listener) {
  myListeners.remove(listener);
}
项目:consulo    文件:SdkRootContainerImpl.java   
public void addProjectRootContainerListener(ProjectRootListener listener) {
  myListeners.add(listener);
}
项目:consulo    文件:SdkRootContainerImpl.java   
public void removeProjectRootContainerListener(ProjectRootListener listener) {
  myListeners.remove(listener);
}