Java 类com.intellij.openapi.editor.colors.EditorColorsAdapter 实例源码

项目:intellij-ce-playground    文件:DetailsPanel.java   
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);
      }
    }
  });
}
项目:intellij-ce-playground    文件:CoverageDataManagerImpl.java   
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);
}
项目:consulo    文件:CoverageDataManagerImpl.java   
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);
}