Java 类com.intellij.openapi.editor.impl.softwrap.mapping.CachingSoftWrapDataMapper 实例源码

项目:intellij-ce-playground    文件:SoftWrapModelImpl.java   
public SoftWrapModelImpl(@NotNull EditorImpl editor) {
  myEditor = editor;
  myStorage = new SoftWrapsStorage();
  myPainter = new CompositeSoftWrapPainter(editor);
  myEditorTextRepresentationHelper = new DefaultEditorTextRepresentationHelper(editor);
  myDataMapper = new CachingSoftWrapDataMapper(editor, myStorage);
  myApplianceManager = new SoftWrapApplianceManager(myStorage, editor, myPainter, myDataMapper);
  myVisualSizeManager = new SoftWrapAwareVisualSizeManager(myPainter);

  myApplianceManager.addListener(myVisualSizeManager);
  myApplianceManager.addListener(new SoftWrapAwareDocumentParsingListenerAdapter() {
    @Override
    public void recalculationEnds() {
      for (SoftWrapChangeListener listener : mySoftWrapListeners) {
        listener.recalculationEnds();
      }
    }
  });
  myUseSoftWraps = areSoftWrapsEnabledInEditor();
  myEditor.getColorsScheme().getFontPreferences().copyTo(myFontPreferences);

  editor.addPropertyChangeListener(this, this);

  myApplianceManager.addListener(myDataMapper);
}
项目:consulo    文件:SoftWrapModelImpl.java   
public SoftWrapModelImpl(@Nonnull EditorImpl editor) {
  myEditor = editor;
  myStorage = new SoftWrapsStorage();
  myPainter = new CompositeSoftWrapPainter(editor);
  myEditorTextRepresentationHelper = new DefaultEditorTextRepresentationHelper(editor);
  myDataMapper = new CachingSoftWrapDataMapper(editor, myStorage);
  myApplianceManager = new SoftWrapApplianceManager(myStorage, editor, myPainter, myDataMapper);

  myApplianceManager.addListener(new SoftWrapAwareDocumentParsingListenerAdapter() {
    @Override
    public void recalculationEnds() {
      for (SoftWrapChangeListener listener : mySoftWrapListeners) {
        listener.recalculationEnds();
      }
    }
  });
  myUseSoftWraps = areSoftWrapsEnabledInEditor();
  myEditor.getColorsScheme().getFontPreferences().copyTo(myFontPreferences);

  editor.addPropertyChangeListener(this, this);

  myApplianceManager.addListener(myDataMapper);
  myEditor.getInlayModel().addListener(this, this);
}
项目:intellij-ce-playground    文件:SoftWrapModelImpl.java   
@NotNull
public CachingSoftWrapDataMapper getDataMapper() {
  return myDataMapper;
}