View | Details | Raw Unified | Return to bug 210001
Collapse All | Expand All

(-)CompareUI.java (+18 lines)
Lines 10-17 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.compare;
11
package org.eclipse.compare;
12
12
13
import java.util.HashSet;
13
import java.util.ResourceBundle;
14
import java.util.ResourceBundle;
15
import java.util.Set;
14
16
17
import org.eclipse.compare.CompareEditorInput;
15
import org.eclipse.compare.internal.*;
18
import org.eclipse.compare.internal.*;
16
import org.eclipse.compare.structuremergeviewer.ICompareInput;
19
import org.eclipse.compare.structuremergeviewer.ICompareInput;
17
import org.eclipse.compare.structuremergeviewer.IStructureCreator;
20
import org.eclipse.compare.structuremergeviewer.IStructureCreator;
Lines 169-174 Link Here
169
	}
172
	}
170
	
173
	
171
	/**
174
	/**
175
	 * Performs the comparison described by the given input while bypassing all registered viewers
176
	 * and comparators for textual comparison only.
177
	 * 
178
	 * @param input the input on which to open the compare dialog
179
	 */
180
	public static void openTextCompareEditor(CompareEditorInput input) {
181
		Set set = new HashSet();
182
		input.getCompareConfiguration().setProperty(
183
				ICompareAsText.PROP_TEXT_INPUTS, set);
184
		set.add(input);
185
		set.add(input.getCompareResult());
186
		openCompareEditorOnPage(input, null);
187
	}
188
	
189
	/**
172
	 * Performs the comparison described by the given input and
190
	 * Performs the comparison described by the given input and
173
	 * shows the result in the given editor.
191
	 * shows the result in the given editor.
174
	 *
192
	 *

Return to bug 210001