Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2002-02-12 18:03:07 +0000
committerAndre Weinand2002-02-12 18:03:07 +0000
commitd692e677b50759ab55e1d4653e43129460dfd17a (patch)
tree68e0573c765c43dcff01d2f831675015346ae200 /bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org
parente8d74431569000cb020cae8265999f6763b5a9dc (diff)
downloadeclipse.platform.team-d692e677b50759ab55e1d4653e43129460dfd17a.tar.gz
eclipse.platform.team-d692e677b50759ab55e1d4653e43129460dfd17a.tar.xz
eclipse.platform.team-d692e677b50759ab55e1d4653e43129460dfd17a.zip
disabled automatic structure comparev20020212
Diffstat (limited to 'bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org')
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java28
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/Patcher.java11
2 files changed, 26 insertions, 13 deletions
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
index d6c702aad..efd6e3352 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
@@ -88,7 +88,7 @@ import org.eclipse.compare.structuremergeviewer.*;
*/
public abstract class CompareEditorInput implements IEditorInput, IPropertyChangeNotifier, IRunnableWithProgress {
- private static final boolean STRUCTURE_COMPARE_ON_SINGLE_CLICK= true;
+
/**
* The name of the "dirty" property.
*/
@@ -115,6 +115,8 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
private IgnoreWhiteSpaceAction fIgnoreWhitespace;
private ShowPseudoConflicts fShowPseudoConflicts;
+
+ boolean fStructureCompareOnSingleClick= false;
/**
* Creates a <code>CompareEditorInput</code> which is initialized with the given
@@ -138,6 +140,10 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
};
}
+
+ private boolean structureCompareOnSingleClick() {
+ return fStructureCompareOnSingleClick;
+ }
/* (non Javadoc)
* see IAdaptable.getAdapter
@@ -395,15 +401,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
);
- /*
- fStructureInputPane.addDoubleClickListener(
- new IDoubleClickListener() {
- public void doubleClick(DoubleClickEvent e) {
- feedDefault1(e.getSelection());
+ if (!structureCompareOnSingleClick()) {
+ fStructureInputPane.addDoubleClickListener(
+ new IDoubleClickListener() {
+ public void doubleClick(DoubleClickEvent e) {
+ feedDefault1(e.getSelection());
+ }
}
- }
- );
- */
+ );
+ }
// setup the wiring for second pane
fStructurePane1.addSelectionChangedListener(
@@ -465,7 +471,7 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
fStructurePane1.setInput(null);
} else {
Object input= getElement(selection);
- if (STRUCTURE_COMPARE_ON_SINGLE_CLICK) {
+ if (structureCompareOnSingleClick()) {
fStructurePane1.setInput(input);
//if (fStructurePane1.isEmpty())
fContentInputPane.setInput(input);
@@ -481,7 +487,6 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
);
}
- /*
private void feedDefault1(final ISelection selection) {
BusyIndicator.showWhile(fComposite.getDisplay(),
new Runnable() {
@@ -492,7 +497,6 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
);
}
- */
private void feed2(final ISelection selection) {
BusyIndicator.showWhile(fComposite.getDisplay(),
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/Patcher.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/Patcher.java
index c2d5264b3..c7d71a602 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/Patcher.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/Patcher.java
@@ -24,6 +24,8 @@ public class Patcher {
private static final boolean DEBUG= false;
private static final String DEV_NULL= "/dev/null"; //$NON-NLS-1$
+
+ //private static final String MARKER_TYPE= "rejectedPatchMarker";
// diff formats
private static final int CONTEXT= 0;
@@ -789,7 +791,14 @@ public class Patcher {
} else
pp= new Path(path.lastSegment() + ".rej"); //$NON-NLS-1$
file= createPath(container, pp);
- updateFile(getRejected(failed), file, pm);
+ if (file != null) {
+ updateFile(getRejected(failed), file, pm);
+// try {
+// IMarker marker= file.createMarker(MARKER_TYPE);
+// marker.setAttribute(marker.MESSAGE, "rejected patch");
+// } catch (CoreException ex) {
+// }
+ }
}
}

Back to the top