svn: Fixed "TreeConflictRefreshablePanel" disposing
[idea/community.git] / plugins / svn4idea / src / org / jetbrains / idea / svn / difftool / SvnDiffViewerWrapper.java
1 package org.jetbrains.idea.svn.difftool;
2
3 import com.intellij.diff.DiffContext;
4 import com.intellij.diff.FrameDiffTool.DiffViewer;
5 import com.intellij.diff.impl.DiffViewerWrapper;
6 import com.intellij.diff.requests.DiffRequest;
7 import org.jetbrains.annotations.NotNull;
8
9 public class SvnDiffViewerWrapper implements DiffViewerWrapper {
10   @NotNull private final DiffRequest myPropertyRequest;
11
12   public SvnDiffViewerWrapper(@NotNull DiffRequest propertyRequest) {
13     myPropertyRequest = propertyRequest;
14   }
15
16   @Override
17   public DiffViewer createComponent(@NotNull DiffContext context, @NotNull DiffRequest request, @NotNull DiffViewer wrappedViewer) {
18     return new SvnDiffViewer(context, myPropertyRequest, wrappedViewer);
19   }
20 }