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(); }
public HotfixGate(final String groupName, final MutableErrorTreeView tree) { myGroupName = groupName; myView = tree; }
public MutableErrorTreeView getView() { return myView; }
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); }