DataPanel(@NotNull Project project, boolean multiRoot, @NotNull Disposable disposable) { super(UIUtil.HTML_MIME, ""); myProject = project; myMultiRoot = multiRoot; setEditable(false); setOpaque(false); putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE); EditorColorsManager.getInstance().addEditorColorsListener(new EditorColorsAdapter() { @Override public void globalSchemeChange(EditorColorsScheme scheme) { update(); } }, disposable); DefaultCaret caret = (DefaultCaret)getCaret(); caret.setUpdatePolicy(DefaultCaret.NEVER_UPDATE); addHyperlinkListener(new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED && SHOW_OR_HIDE_BRANCHES.equals(e.getDescription())) { myExpanded = !myExpanded; update(); } else { BrowserHyperlinkListener.INSTANCE.hyperlinkUpdate(e); } } }); }
public CoverageDataManagerImpl(final Project project) { myProject = project; EditorColorsManager.getInstance().addEditorColorsListener(new EditorColorsAdapter() { @Override public void globalSchemeChange(EditorColorsScheme scheme) { chooseSuitesBundle(myCurrentSuitesBundle); } }, project); addSuiteListener(new CoverageViewSuiteListener(this, myProject), myProject); }