Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2002-03-05 12:12:00 +0000
committerAndre Weinand2002-03-05 12:12:00 +0000
commit6e002137f6f34296e738085a27e9f8b09ebdc81e (patch)
tree6bab07a257f0d865e86b7ec94bb67ff9c77f42c4 /bundles/org.eclipse.compare/compare/org/eclipse/compare
parent345bb47a4c17d4b087fcab221814e1449319088f (diff)
downloadeclipse.platform.team-6e002137f6f34296e738085a27e9f8b09ebdc81e.tar.gz
eclipse.platform.team-6e002137f6f34296e738085a27e9f8b09ebdc81e.tar.xz
eclipse.platform.team-6e002137f6f34296e738085a27e9f8b09ebdc81e.zip
finished #9869
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeViewerContentProvider.java4
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResourceCompareInput.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeViewerContentProvider.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeViewerContentProvider.java
index 5ddbc17f1..d193501e5 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeViewerContentProvider.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/MergeViewerContentProvider.java
@@ -95,6 +95,8 @@ public class MergeViewerContentProvider implements IMergeViewerContentProvider {
}
if (left instanceof IEditableContent)
((IEditableContent)left).setContent(bytes);
+ if (node instanceof ResourceCompareInput.MyDiffNode)
+ ((ResourceCompareInput.MyDiffNode)node).fireChange();
} else {
node.copy(false);
}
@@ -143,6 +145,8 @@ public class MergeViewerContentProvider implements IMergeViewerContentProvider {
}
if (right instanceof IEditableContent)
((IEditableContent)right).setContent(bytes);
+ if (node instanceof ResourceCompareInput.MyDiffNode)
+ ((ResourceCompareInput.MyDiffNode)node).fireChange();
} else {
node.copy(true);
}
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResourceCompareInput.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResourceCompareInput.java
index 7909e1847..ad53bbac8 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResourceCompareInput.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ResourceCompareInput.java
@@ -37,7 +37,7 @@ class ResourceCompareInput extends CompareEditorInput {
private DiffTreeViewer fDiffViewer;
- private class MyDiffNode extends DiffNode {
+ class MyDiffNode extends DiffNode {
private boolean fDirty= false;
private ITypedElement fLastId;
@@ -47,7 +47,7 @@ class ResourceCompareInput extends CompareEditorInput {
public MyDiffNode(IDiffContainer parent, int description, ITypedElement ancestor, ITypedElement left, ITypedElement right) {
super(parent, description, ancestor, left, right);
}
- protected void fireChange() {
+ public void fireChange() {
super.fireChange();
setDirty(true);
fDirty= true;

Back to the top