|
Lines 248-257
public abstract class LocalResourceSaveableComparison extends SaveableComparison
Link Here
|
| 248 |
*/ |
248 |
*/ |
| 249 |
public String getName() { |
249 |
public String getName() { |
| 250 |
// Return the name of the file element as held in the compare input |
250 |
// Return the name of the file element as held in the compare input |
| 251 |
if (fileElement.equals(input.getLeft())) { |
251 |
if (input.getLeft().equals(fileElement)) { |
| 252 |
return input.getLeft().getName(); |
252 |
return input.getLeft().getName(); |
| 253 |
} |
253 |
} |
| 254 |
if (fileElement.equals(input.getRight())) { |
254 |
if (input.getRight().equals(fileElement)) { |
| 255 |
return input.getRight().getName(); |
255 |
return input.getRight().getName(); |
| 256 |
} |
256 |
} |
| 257 |
// Fallback call returning name of the main non-null element of the input |
257 |
// Fallback call returning name of the main non-null element of the input |
|
Lines 289-302
public abstract class LocalResourceSaveableComparison extends SaveableComparison
Link Here
|
| 289 |
|
289 |
|
| 290 |
ContentMergeViewer cmv = (ContentMergeViewer) e.getSource(); |
290 |
ContentMergeViewer cmv = (ContentMergeViewer) e.getSource(); |
| 291 |
|
291 |
|
| 292 |
if (fileElement.equals(input.getLeft())) { |
292 |
if (input.getLeft().equals(fileElement)) { |
| 293 |
if (changed && cmv.internalIsLeftDirty()) |
293 |
if (changed && cmv.internalIsLeftDirty()) |
| 294 |
setDirty(changed); |
294 |
setDirty(changed); |
| 295 |
else if (!changed && !cmv.internalIsLeftDirty()) { |
295 |
else if (!changed && !cmv.internalIsLeftDirty()) { |
| 296 |
setDirty(changed); |
296 |
setDirty(changed); |
| 297 |
} |
297 |
} |
| 298 |
} |
298 |
} |
| 299 |
if (fileElement.equals(input.getRight())) { |
299 |
if (input.getRight().equals(fileElement)) { |
| 300 |
if (changed && cmv.internalIsRightDirty()) |
300 |
if (changed && cmv.internalIsRightDirty()) |
| 301 |
setDirty(changed); |
301 |
setDirty(changed); |
| 302 |
else if (!changed && !cmv.internalIsRightDirty()) { |
302 |
else if (!changed && !cmv.internalIsRightDirty()) { |