Java 类com.intellij.util.xml.highlighting.DomElementAnnotationsManagerImpl 实例源码

项目:intellij-ce-playground    文件:DomUIFactoryImpl.java   
@Override
public void setupErrorOutdatingUserActivityWatcher(final CommittablePanel panel, final DomElement... elements) {
  final UserActivityWatcher userActivityWatcher = createEditorAwareUserActivityWatcher();
  userActivityWatcher.addUserActivityListener(new UserActivityListener() {
    private boolean isProcessingChange;

    @Override
    public void stateChanged() {
      if (isProcessingChange) return;
      isProcessingChange = true;
      try {
        for (final DomElement element : elements) {
          DomElementAnnotationsManagerImpl.outdateProblemHolder(element);
        }
        CommittableUtil.updateHighlighting(panel);
      }
      finally {
        isProcessingChange = false;
      }
    }
  }, panel);
  userActivityWatcher.register(panel.getComponent());
}
项目:tools-idea    文件:DomUIFactoryImpl.java   
public void setupErrorOutdatingUserActivityWatcher(final CommittablePanel panel, final DomElement... elements) {
  final UserActivityWatcher userActivityWatcher = createEditorAwareUserActivityWatcher();
  userActivityWatcher.addUserActivityListener(new UserActivityListener() {
    private boolean isProcessingChange;

    public void stateChanged() {
      if (isProcessingChange) return;
      isProcessingChange = true;
      try {
        for (final DomElement element : elements) {
          DomElementAnnotationsManagerImpl.outdateProblemHolder(element);
        }
        CommittableUtil.updateHighlighting(panel);
      }
      finally {
        isProcessingChange = false;
      }
    }
  }, panel);
  userActivityWatcher.register(panel.getComponent());
}
项目:consulo-xml    文件:DomUIFactoryImpl.java   
public void setupErrorOutdatingUserActivityWatcher(final CommittablePanel panel, final DomElement... elements) {
  final UserActivityWatcher userActivityWatcher = createEditorAwareUserActivityWatcher();
  userActivityWatcher.addUserActivityListener(new UserActivityListener() {
    private boolean isProcessingChange;

    public void stateChanged() {
      if (isProcessingChange) return;
      isProcessingChange = true;
      try {
        for (final DomElement element : elements) {
          DomElementAnnotationsManagerImpl.outdateProblemHolder(element);
        }
        CommittableUtil.updateHighlighting(panel);
      }
      finally {
        isProcessingChange = false;
      }
    }
  }, panel);
  userActivityWatcher.register(panel.getComponent());
}