Lines 25-30
Link Here
|
25 |
import org.eclipse.compare.patch.IHunk; |
25 |
import org.eclipse.compare.patch.IHunk; |
26 |
import org.eclipse.compare.patch.PatchConfiguration; |
26 |
import org.eclipse.compare.patch.PatchConfiguration; |
27 |
import org.eclipse.compare.patch.ReaderCreator; |
27 |
import org.eclipse.compare.patch.ReaderCreator; |
|
|
28 |
import org.eclipse.core.runtime.CoreException; |
28 |
import org.eclipse.core.runtime.IPath; |
29 |
import org.eclipse.core.runtime.IPath; |
29 |
import org.eclipse.core.runtime.IProgressMonitor; |
30 |
import org.eclipse.core.runtime.IProgressMonitor; |
30 |
import org.eclipse.core.runtime.NullProgressMonitor; |
31 |
import org.eclipse.core.runtime.NullProgressMonitor; |
Lines 70-76
Link Here
|
70 |
this.fMatches= false; |
71 |
this.fMatches= false; |
71 |
this.fDiffProblem= false; |
72 |
this.fDiffProblem= false; |
72 |
boolean create= false; |
73 |
boolean create= false; |
73 |
this.charset = Utilities.getCharset(content); |
74 |
try { |
|
|
75 |
this.charset = content.getCharset(); |
76 |
} catch (CoreException e) { |
77 |
// Log and continue |
78 |
ComparePlugin.log(e); |
79 |
} |
74 |
//If this diff is an addition, make sure that it doesn't already exist |
80 |
//If this diff is an addition, make sure that it doesn't already exist |
75 |
boolean exists = targetExists(content); |
81 |
boolean exists = targetExists(content); |
76 |
if (this.fDiff.getDiffType(getConfiguration().isReversed()) == FilePatch2.ADDITION) { |
82 |
if (this.fDiff.getDiffType(getConfiguration().isReversed()) == FilePatch2.ADDITION) { |