Search in sources :

Example 1 with TransferableFileEditorState

use of com.intellij.openapi.fileEditor.TransferableFileEditorState in project intellij-community by JetBrains.

the class TransferableFileEditorStateSupport method processContextHints.

public void processContextHints(@NotNull DiffRequest request, @NotNull DiffContext context) {
    if (!isEnabled())
        return;
    for (BinaryEditorHolder holder : myHolders) {
        FileEditor editor = holder.getEditor();
        TransferableFileEditorState state = getEditorState(holder.getEditor());
        if (state != null) {
            readContextData(context, editor, state);
        }
    }
}
Also used : BinaryEditorHolder(com.intellij.diff.tools.holders.BinaryEditorHolder) FileEditor(com.intellij.openapi.fileEditor.FileEditor) TransferableFileEditorState(com.intellij.openapi.fileEditor.TransferableFileEditorState)

Aggregations

BinaryEditorHolder (com.intellij.diff.tools.holders.BinaryEditorHolder)1 FileEditor (com.intellij.openapi.fileEditor.FileEditor)1 TransferableFileEditorState (com.intellij.openapi.fileEditor.TransferableFileEditorState)1