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

项目:intellij-ce-playground    文件:DomCollectionControl.java   
private void validate() {
  DomElement domElement = getDomElement();
  final List<DomElementProblemDescriptor> list =
    DomElementAnnotationsManager.getInstance(getProject()).getCachedProblemHolder(domElement).getProblems(domElement);
  final List<String> messages = new ArrayList<String>();
  for (final DomElementProblemDescriptor descriptor : list) {
    if (descriptor instanceof DomCollectionProblemDescriptor
        && myChildDescription.equals(((DomCollectionProblemDescriptor)descriptor).getChildDescription())) {
      messages.add(descriptor.getDescriptionTemplate());
    }
  }
  myCollectionPanel.setErrorMessages(ArrayUtil.toStringArray(messages));
  myCollectionPanel.repaint();
}
项目:tools-idea    文件:DomCollectionControl.java   
private void validate() {
  DomElement domElement = getDomElement();
  final List<DomElementProblemDescriptor> list =
    DomElementAnnotationsManager.getInstance(getProject()).getCachedProblemHolder(domElement).getProblems(domElement);
  final List<String> messages = new ArrayList<String>();
  for (final DomElementProblemDescriptor descriptor : list) {
    if (descriptor instanceof DomCollectionProblemDescriptor
        && myChildDescription.equals(((DomCollectionProblemDescriptor)descriptor).getChildDescription())) {
      messages.add(descriptor.getDescriptionTemplate());
    }
  }
  myCollectionPanel.setErrorMessages(ArrayUtil.toStringArray(messages));
  myCollectionPanel.repaint();
}
项目:consulo-xml    文件:DomCollectionControl.java   
private void validate() {
  DomElement domElement = getDomElement();
  final List<DomElementProblemDescriptor> list =
    DomElementAnnotationsManager.getInstance(getProject()).getCachedProblemHolder(domElement).getProblems(domElement);
  final List<String> messages = new ArrayList<String>();
  for (final DomElementProblemDescriptor descriptor : list) {
    if (descriptor instanceof DomCollectionProblemDescriptor
        && myChildDescription.equals(((DomCollectionProblemDescriptor)descriptor).getChildDescription())) {
      messages.add(descriptor.getDescriptionTemplate());
    }
  }
  myCollectionPanel.setErrorMessages(ArrayUtil.toStringArray(messages));
  myCollectionPanel.repaint();
}