Java 类com.intellij.uiDesigner.make.FormElementNavigatable 实例源码

项目:intellij-ce-playground    文件:FormFileErrorCollector.java   
public void addError(final String inspectionId, final IComponent component, @Nullable IProperty prop,
                     @NotNull String errorMessage,
                     EditorQuickFixProvider... editorQuickFixProviders) {
  final ProblemDescriptor problemDescriptor = myManager.createProblemDescriptor(myFile, JDOMUtil.escapeText(errorMessage),
                                                                                (LocalQuickFix)null,
                                                                                ProblemHighlightType.GENERIC_ERROR_OR_WARNING, myOnTheFly);
  if (problemDescriptor instanceof ProblemDescriptorBase && component != null) {
    FormElementNavigatable navigatable = new FormElementNavigatable(myFile.getProject(), myFile.getVirtualFile(),
                                                                    component.getId());
    ((ProblemDescriptorBase) problemDescriptor).setNavigatable(navigatable);
  }
  myProblems.add(problemDescriptor);
}
项目:tools-idea    文件:FormFileErrorCollector.java   
public void addError(final String inspectionId, final IComponent component, @Nullable IProperty prop,
                     @NotNull String errorMessage,
                     EditorQuickFixProvider... editorQuickFixProviders) {
  final ProblemDescriptor problemDescriptor = myManager.createProblemDescriptor(myFile, JDOMUtil.escapeText(errorMessage),
                                                                                (LocalQuickFix)null,
                                                                                ProblemHighlightType.GENERIC_ERROR_OR_WARNING, myOnTheFly);
  if (problemDescriptor instanceof ProblemDescriptorBase && component != null) {
    FormElementNavigatable navigatable = new FormElementNavigatable(myFile.getProject(), myFile.getVirtualFile(),
                                                                    component.getId());
    ((ProblemDescriptorBase) problemDescriptor).setNavigatable(navigatable);
  }
  myProblems.add(problemDescriptor);
}
项目:consulo-ui-designer    文件:FormFileErrorCollector.java   
public void addError(final String inspectionId, final IComponent component, @Nullable IProperty prop,
                     @NotNull String errorMessage,
                     EditorQuickFixProvider... editorQuickFixProviders) {
  final ProblemDescriptor problemDescriptor = myManager.createProblemDescriptor(myFile, JDOMUtil.escapeText(errorMessage),
                                                                                (LocalQuickFix)null,
                                                                                ProblemHighlightType.GENERIC_ERROR_OR_WARNING, myOnTheFly);
  if (problemDescriptor instanceof ProblemDescriptorBase && component != null) {
    FormElementNavigatable navigatable = new FormElementNavigatable(myFile.getProject(), myFile.getVirtualFile(),
                                                                    component.getId());
    ((ProblemDescriptorBase) problemDescriptor).setNavigatable(navigatable);
  }
  myProblems.add(problemDescriptor);
}