Java 类com.intellij.util.ui.MutableErrorTreeView 实例源码

项目:intellij-ce-playground    文件:HotfixGroupElement.java   
public HotfixGroupElement(final String name, final Object data, final VirtualFile file, final Consumer<HotfixGate> hotfix,
                          final String fixDescription, final MutableErrorTreeView view) {
  super(name, data, file);
  myHotfix = hotfix;
  myFixDescription = fixDescription;
  myView = view;
  myLeftTreeCellRenderer = new CustomizeColoredTreeCellRenderer() {
    public void customizeCellRenderer(SimpleColoredComponent renderer,
                                      JTree tree,
                                      Object value,
                                      boolean selected,
                                      boolean expanded,
                                      boolean leaf,
                                      int row,
                                      boolean hasFocus) {
      renderer.setIcon(AllIcons.General.Error);

      final String[] text = getText();
      final String errorText = ((text != null) && (text.length > 0)) ? text[0] : "";
      renderer.append("Error: " + errorText, SimpleTextAttributes.REGULAR_ATTRIBUTES);
    }
  };
  myRightTreeCellRenderer = new MyRightRenderer();
}
项目:tools-idea    文件:HotfixGroupElement.java   
public HotfixGroupElement(final String name, final Object data, final VirtualFile file, final Consumer<HotfixGate> hotfix,
                          final String fixDescription, final MutableErrorTreeView view) {
  super(name, data, file);
  myHotfix = hotfix;
  myFixDescription = fixDescription;
  myView = view;
  myLeftTreeCellRenderer = new CustomizeColoredTreeCellRenderer() {
    public void customizeCellRenderer(SimpleColoredComponent renderer,
                                      JTree tree,
                                      Object value,
                                      boolean selected,
                                      boolean expanded,
                                      boolean leaf,
                                      int row,
                                      boolean hasFocus) {
      renderer.setIcon(AllIcons.General.Error);

      final String[] text = getText();
      final String errorText = ((text != null) && (text.length > 0)) ? text[0] : "";
      renderer.append("Error: " + errorText, SimpleTextAttributes.REGULAR_ATTRIBUTES);
    }
  };
  myRightTreeCellRenderer = new MyRightRenderer();
}
项目:consulo    文件:HotfixGroupElement.java   
public HotfixGroupElement(final String name, final Object data, final VirtualFile file, final Consumer<HotfixGate> hotfix,
                          final String fixDescription, final MutableErrorTreeView view) {
  super(name, data, file);
  myHotfix = hotfix;
  myFixDescription = fixDescription;
  myView = view;
  myLeftTreeCellRenderer = new CustomizeColoredTreeCellRenderer() {
    public void customizeCellRenderer(SimpleColoredComponent renderer,
                                      JTree tree,
                                      Object value,
                                      boolean selected,
                                      boolean expanded,
                                      boolean leaf,
                                      int row,
                                      boolean hasFocus) {
      renderer.setIcon(AllIcons.General.Error);

      final String[] text = getText();
      final String errorText = ((text != null) && (text.length > 0)) ? text[0] : "";
      renderer.append("Error: " + errorText, SimpleTextAttributes.REGULAR_ATTRIBUTES);
    }
  };
  myRightTreeCellRenderer = new MyRightRenderer();
}
项目:intellij-ce-playground    文件:HotfixGate.java   
public HotfixGate(final String groupName, final MutableErrorTreeView tree) {
  myGroupName = groupName;
  myView = tree;
}
项目:intellij-ce-playground    文件:HotfixGate.java   
public MutableErrorTreeView getView() {
  return myView;
}
项目:intellij-ce-playground    文件:ErrorViewStructure.java   
public void addHotfixGroup(final HotfixData hotfixData, final List<SimpleErrorData> children, final MutableErrorTreeView view) {
  final String text = hotfixData.getErrorText();
  final HotfixGroupElement group = new HotfixGroupElement(text, null, null, hotfixData.getFix(), hotfixData.getFixComment(), view);

  addGroupPlusElements(text, group, children);
}
项目:tools-idea    文件:HotfixGate.java   
public HotfixGate(final String groupName, final MutableErrorTreeView tree) {
  myGroupName = groupName;
  myView = tree;
}
项目:tools-idea    文件:HotfixGate.java   
public MutableErrorTreeView getView() {
  return myView;
}
项目:tools-idea    文件:ErrorViewStructure.java   
public void addHotfixGroup(final HotfixData hotfixData, final List<SimpleErrorData> children, final MutableErrorTreeView view) {
  final String text = hotfixData.getErrorText();
  final HotfixGroupElement group = new HotfixGroupElement(text, null, null, hotfixData.getFix(), hotfixData.getFixComment(), view);

  addGroupPlusElements(text, group, children);
}
项目:consulo    文件:HotfixGate.java   
public HotfixGate(final String groupName, final MutableErrorTreeView tree) {
  myGroupName = groupName;
  myView = tree;
}
项目:consulo    文件:HotfixGate.java   
public MutableErrorTreeView getView() {
  return myView;
}
项目:consulo    文件:ErrorViewStructure.java   
public void addHotfixGroup(final HotfixData hotfixData, final List<SimpleErrorData> children, final MutableErrorTreeView view) {
  final String text = hotfixData.getErrorText();
  final HotfixGroupElement group = new HotfixGroupElement(text, null, null, hotfixData.getFix(), hotfixData.getFixComment(), view);

  addGroupPlusElements(text, group, children);
}