本文整理汇总了Java中com.intellij.openapi.diff.impl.ContentChangeListener类的典型用法代码示例。如果您正苦于以下问题:Java ContentChangeListener类的具体用法?Java ContentChangeListener怎么用?Java ContentChangeListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ContentChangeListener类属于com.intellij.openapi.diff.impl包,在下文中一共展示了ContentChangeListener类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FragmentedDiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public FragmentedDiffPanelState(ContentChangeListener changeListener,
Project project,
int diffDividerPolygonsOffset,
boolean drawNumber,
@NotNull Disposable parentDisposable) {
super(changeListener, project, diffDividerPolygonsOffset, parentDisposable);
myFragmentHighlighter = new NumberedFragmentHighlighter(myAppender1, myAppender2, drawNumber);
mySeparatorsPositionConsumer = new FragmentSeparatorsPositionConsumer();
}
示例2: SimpleDiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public SimpleDiffPanelState(Project project, ContentChangeListener changeListener, @NotNull Disposable parentDisposable) {
myAppender1 = createEditorWrapper(project, changeListener, FragmentSide.SIDE1);
myAppender2 = createEditorWrapper(project, changeListener, FragmentSide.SIDE2);
myProject = project;
myDiffPolicy = DiffPolicy.LINES_WO_FORMATTING;
myHighlightMode = HighlightMode.BY_WORD;
Disposer.register(parentDisposable, this);
}
示例3: DiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public DiffPanelState(ContentChangeListener changeListener,
Project project,
int diffDividerPolygonsOffset,
@NotNull Disposable parentDisposable) {
super(project, changeListener, parentDisposable);
myDiffDividerPolygonsOffset = diffDividerPolygonsOffset;
}
示例4: SimpleDiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public SimpleDiffPanelState(Project project, ContentChangeListener changeListener, @NotNull Disposable parentDisposable) {
myAppender1 = createEditorWrapper(project, changeListener, FragmentSide.SIDE1);
myAppender2 = createEditorWrapper(project, changeListener, FragmentSide.SIDE2);
myProject = project;
myDiffPolicy = DiffPolicy.LINES_WO_FORMATTING;
Disposer.register(parentDisposable, this);
}
示例5: FragmentedDiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public FragmentedDiffPanelState(ContentChangeListener changeListener,
Project project,
int diffDividerPolygonsOffset,
boolean drawNumber,
@Nonnull Disposable parentDisposable) {
super(changeListener, project, diffDividerPolygonsOffset, parentDisposable);
myFragmentHighlighter = new NumberedFragmentHighlighter(myAppender1, myAppender2, drawNumber);
mySeparatorsPositionConsumer = new FragmentSeparatorsPositionConsumer();
}
示例6: SimpleDiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public SimpleDiffPanelState(Project project, ContentChangeListener changeListener, @Nonnull Disposable parentDisposable) {
myAppender1 = createEditorWrapper(project, changeListener, FragmentSide.SIDE1);
myAppender2 = createEditorWrapper(project, changeListener, FragmentSide.SIDE2);
myProject = project;
myDiffPolicy = DiffPolicy.LINES_WO_FORMATTING;
myHighlightMode = HighlightMode.BY_WORD;
Disposer.register(parentDisposable, this);
}
示例7: DiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public DiffPanelState(ContentChangeListener changeListener,
Project project,
int diffDividerPolygonsOffset,
@Nonnull Disposable parentDisposable) {
super(project, changeListener, parentDisposable);
myDiffDividerPolygonsOffset = diffDividerPolygonsOffset;
}
示例8: createEditorWrapper
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
private EditorPlaceHolder createEditorWrapper(Project project, ContentChangeListener changeListener, FragmentSide side) {
EditorPlaceHolder editorWrapper = new EditorPlaceHolder(side, project, this);
editorWrapper.addListener(changeListener);
return editorWrapper;
}
示例9: addListener
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public void addListener(ContentChangeListener listener) {
LOG.assertTrue(myListener == null);
myListener = listener;
}
示例10: FragmentedDiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public FragmentedDiffPanelState(ContentChangeListener changeListener, Project project, boolean drawNumber, @NotNull Disposable parentDisposable) {
super(changeListener, project, parentDisposable);
myFragmentHighlighter = new NumberedFragmentHighlighter(myAppender1, myAppender2, drawNumber);
mySeparatorsPositionConsumer = new FragmentSeparatorsPositionConsumer();
}
示例11: DiffPanelState
import com.intellij.openapi.diff.impl.ContentChangeListener; //导入依赖的package包/类
public DiffPanelState(ContentChangeListener changeListener, Project project, @NotNull Disposable parentDisposable) {
super(project,changeListener, parentDisposable);
}