Skip to content

Commit

Permalink
Compare editor needs to share contents with already open editors
Browse files Browse the repository at this point in the history
  • Loading branch information
angvoz committed Jul 29, 2013
1 parent 6d0997c commit c0a5bc3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.eclipse.compare.CompareEditorInput;
import org.eclipse.compare.CompareUI;
import org.eclipse.compare.ITypedElement;
import org.eclipse.compare.ResourceNode;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.dialogs.MessageDialog;
Expand All @@ -29,6 +28,7 @@
import org.eclipse.team.internal.ui.Utils;
import org.eclipse.team.internal.ui.history.CompareFileRevisionEditorInput;
import org.eclipse.team.internal.ui.history.FileRevisionTypedElement;
import org.eclipse.team.internal.ui.synchronize.LocalResourceTypedElement;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IReusableEditor;
Expand Down Expand Up @@ -77,7 +77,7 @@ public void run() {
return;
}

left = new ResourceNode(localFile);
left = new LocalResourceTypedElement(localFile);
right = new FileRevisionTypedElement(new CVSFileRevision(logEntry), getEncoding(localFile));

} else if (selArray.length == 2) {
Expand Down

0 comments on commit c0a5bc3

Please sign in to comment.