Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-11-14 03:32:49 -0500
committerLars Vogel2019-11-14 03:33:13 -0500
commita63fd8787e17e771ad042b21b5ab7875b8fb1bf8 (patch)
treec556273642dee1e2772463cf1cd86f4192e8f267
parent7be790e400bb2d02a352e9b9b36313497e43b527 (diff)
downloadeclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.tar.gz
eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.tar.xz
eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.zip
Done via running the cleanup action on the code base Change-Id: I9a8d23d6d5e77fec0f845b60b99cac6bd1c2b429 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java8
-rw-r--r--org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java2
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java24
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest.java6
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest2.java4
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java28
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java4
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java6
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java56
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java4
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java2
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java2
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java14
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/ContextInfoTest.java8
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/EditorTest.java2
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/TestQuickAssist.java2
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/MarkerResolutionGenerator.java4
17 files changed, 88 insertions, 88 deletions
diff --git a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java
index deb7b5eb6..2b8ba89c3 100644
--- a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java
+++ b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java
@@ -37,7 +37,7 @@ import org.eclipse.swt.widgets.Shell;
public class ColorAnnotation extends LineContentAnnotation {
private Color color;
-
+
private Consumer<MouseEvent> action = e -> {
StyledText styledText = super.getTextWidget();
Shell shell = new Shell(styledText.getDisplay());
@@ -61,10 +61,10 @@ public class ColorAnnotation extends LineContentAnnotation {
}
}
};
-
+
/**
* Format the given rgb to hexa color.
- *
+ *
* @param rgb
* @return the hexa color from the given rgb.
*/
@@ -121,7 +121,7 @@ public class ColorAnnotation extends LineContentAnnotation {
int width = (int) (2 * fontMetrics.getAverageCharacterWidth() + getSquareSize(fontMetrics));
return width;
}
-
+
@Override
public Consumer<MouseEvent> getAction(MouseEvent e) {
return action;
diff --git a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java
index d50d7e146..3e37f642b 100644
--- a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java
+++ b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java
@@ -210,7 +210,7 @@ public class InlinedAnnotationDemo {
/**
* Add RGB parameter name annotation
- *
+ *
* @param paramName
* @param rgbContent
* @param startIndex
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
index db8b2ffea..2e6b9202d 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractPairMatcherTest.java
@@ -55,7 +55,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Constructs a new character pair matcher.
- *
+ *
* @param chars the characters to match
* @return the character pair matcher
*/
@@ -65,7 +65,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Returns the partitioning treated by the matcher.
- *
+ *
* @return the partition
*/
protected String getDocumentPartitioning() {
@@ -83,7 +83,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Very simple checks.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -116,7 +116,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Very simple checks.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -135,7 +135,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Close matches.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -163,7 +163,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Checks of simple situations where no matches should be found.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -177,7 +177,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Test that it doesn't match across different partitions.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -215,7 +215,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Test that it works properly next to partition boundaries.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -271,7 +271,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Test a few boundary conditions.
- *
+ *
* * @throws BadLocationException test failure
*/
@Test
@@ -307,7 +307,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Checks that the test case reader reads the test case as specified.
- *
+ *
* @param testString the string to test
* @param expectedPos the expected position
* @param expectedMatch the expected match
@@ -322,7 +322,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Checks that the given matcher matches the input as specified.
- *
+ *
* @param matcher the matcher
* @param testCase the test string
*/
@@ -372,7 +372,7 @@ public abstract class AbstractPairMatcherTest {
/**
* Creates a text case from a string. In the given string a '%' represents the position of the
* cursor and a '#' represents the position of the expected matching character.
- *
+ *
* @param str the string for which to create the test case
* @return the created test case
*/
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest.java
index 656401459..88f081651 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest.java
@@ -26,7 +26,7 @@ import org.eclipse.jface.text.source.ICharacterPairMatcher;
* @since 3.3
*/
public class DefaultPairMatcherTest extends AbstractPairMatcherTest {
-
+
public DefaultPairMatcherTest() {
super(false);
}
@@ -40,7 +40,7 @@ public class DefaultPairMatcherTest extends AbstractPairMatcherTest {
/**
* Close matches.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
@@ -54,7 +54,7 @@ public class DefaultPairMatcherTest extends AbstractPairMatcherTest {
/**
* Checks of simple situations where no matches should be found.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest2.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest2.java
index ec966af83..eac01938f 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest2.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/DefaultPairMatcherTest2.java
@@ -20,7 +20,7 @@ import org.eclipse.jface.text.source.ICharacterPairMatcher;
/**
* Tests for the default pair matcher.
- *
+ *
* @since 3.8
*/
public class DefaultPairMatcherTest2 extends AbstractPairMatcherTest {
@@ -38,7 +38,7 @@ public class DefaultPairMatcherTest2 extends AbstractPairMatcherTest {
/**
* Very simple checks.
- *
+ *
* @throws BadLocationException test failure
*/
@Test
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
index 6c80e7e2f..39f197880 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/HTML2TextReaderTest.java
@@ -92,26 +92,26 @@ public class HTML2TextReaderTest {
if (DEBUG)
System.out.println("<" + result + "/>");
assertEquals(expectedOutput, result);
-
+
Iterator<StyleRange> styleRangeIterator= textPresentation.getAllStyleRangeIterator();
List<StyleRange> ranges= new ArrayList<>();
while (styleRangeIterator.hasNext()) {
ranges.add(styleRangeIterator.next());
}
-
+
Collections.sort(ranges, (r1, r2) -> r1.start - r2.start);
-
+
assertEquals(Arrays.asList(styleRanges), ranges);
-
+
for (int i= 0; i < ranges.size() - 1; i++) {
StyleRange range1= ranges.get(i);
StyleRange range2= ranges.get(i + 1);
-
+
if (range1.start + range1.length > range2.start) {
assertTrue("StyleRanges overlap", false);
}
}
-
+
}
@Test
@@ -120,14 +120,14 @@ public class HTML2TextReaderTest {
String expected= "3<5";
verify(string, expected, 0);
}
-
+
@Test
public void test1() throws IOException{
String string= "<dl><dt>@author</dt><dd>Foo Bar</dd></dl>";
String expected= LD+ "@author"+LD+"\tFoo Bar"+LD;
verify(string, expected, 1);
}
-
+
@Test
public void test2() throws IOException{
String string= "<code>3>5<code>";
@@ -148,7 +148,7 @@ public class HTML2TextReaderTest {
String expected= "void p.Bb.fes()"+ LD + LD + LD+ "Parameters:"+ LD + "\ti fred or null"+LD;
verify(string, expected, 3);
}
-
+
@Test
public void test5() throws IOException{
String string= "<code>1<2<3<4</code>";
@@ -163,7 +163,7 @@ public class HTML2TextReaderTest {
String expected= LD + "Something." + LD + "Something more.";
verify(string, expected, 0);
}
-
+
@Test
public void testEntity1() throws IOException {
String string= "&amp;";
@@ -177,7 +177,7 @@ public class HTML2TextReaderTest {
String expected= "&unknown;";
verify(string, expected, 0);
}
-
+
@Test
public void testBug367378() throws IOException {
verify("<head>", "", 0);
@@ -197,7 +197,7 @@ public class HTML2TextReaderTest {
String expected= "no comment";
verify(string, expected, 0);
}
-
+
@Test
public void testStyles1() throws IOException {
String string= "<b>Hello World</b>";
@@ -267,7 +267,7 @@ public class HTML2TextReaderTest {
String expected= "This is yet another test";
verify(string, expected, 3);
}
-
+
@Test
public void testStylesWithPre() throws IOException {
String string= "I am <b>bold</b>." + LD + "<p>" + LD + "<pre>One" + LD + LD + "<b>T</b>hree.</pre>" + LD + "<p>" + LD + "<b>Author:</b> me.";
@@ -279,7 +279,7 @@ public class HTML2TextReaderTest {
};
verify(string, expected, ranges);
}
-
+
@Test
public void testCombineBoldItalicStriker() throws IOException {
String string= "<strong>strong</strong>,<em>italic</em>,<s>strike</s>," +
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java
index 7e71c22be..63829a879 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextPresentationTest.java
@@ -87,7 +87,7 @@ public class TextPresentationTest {
/**
* Creates a new color.
- *
+ *
* @param red the amount of red in the color
* @param green the amount of green in the color
* @param blue the amount of blue in the color
@@ -119,7 +119,7 @@ public class TextPresentationTest {
public void testUnclippedRegions() {
checkRegions(fAllRanges, fNonDefaultRanges);
}
-
+
@Test
public void testClippedRegions1() {
fTextPresentation.setResultWindow(new Region(0, 140));
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java
index 3965f17c9..580742ef5 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/TextViewerUndoManagerTest.java
@@ -95,17 +95,17 @@ public class TextViewerUndoManagerTest extends AbstractUndoManagerTest {
undoManager.disconnect(newContext);
}
-
+
@Test
public void testTransferNonUndoableNonTextOp() throws Exception {
internalTestTransferNonTextOp(false);
}
-
+
@Test
public void testTransferUndoableNonTextOp() throws Exception {
internalTestTransferNonTextOp(true);
}
-
+
@Test
public void testCanUndo() throws Exception {
IDocument doc= new Document();
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java
index d7e4882d5..73f9826df 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java
@@ -48,30 +48,30 @@ import org.eclipse.jface.text.tests.util.DisplayHelper;
/**
* Tests for Async completion proposal popup proposals filtering mechanics
- *
+ *
* @author Alex Boyko
*
*/
public class FilteringAsyncContentAssistTests {
-
- private Shell shell;
+
+ private Shell shell;
private SourceViewer viewer;
private ContentAssistant ca;
-
+
@Before
public void setup() {
tearDown();
-
+
shell = new Shell();
shell.setSize(300, 300);
shell.open();
-
+
viewer = new SourceViewer(shell, null, SWT.NONE);
Document document = new Document();
viewer.setDocument(document);
ca = new ContentAssistant(true);
}
-
+
@After
public void tearDown() {
if (shell != null) {
@@ -86,7 +86,7 @@ public class FilteringAsyncContentAssistTests {
/**
* Simple CA with 1 immediate CA processor. Empty text, invoke CA, verify 1
* proposal, apply it, verify the resultant text
- *
+ *
* @throws Exception exception
*/
@Test
@@ -107,7 +107,7 @@ public class FilteringAsyncContentAssistTests {
assertEquals(1, computedProposals.size());
ICompletionProposal proposal = computedProposals.get(0);
-
+
IDocument document = viewer.getDocument();
proposal.apply(document);
@@ -118,7 +118,7 @@ public class FilteringAsyncContentAssistTests {
/**
* Simple CA with filtering with 2 immediate CA processors. Empty text
* initially. Invoke CA, verify 2 proposals, type 'x', verify only 1 proposal 1
- *
+ *
* @throws Exception exception
*/
@Test
@@ -159,7 +159,7 @@ public class FilteringAsyncContentAssistTests {
/**
* Simple CA with filtering with 1 immediate CA processors. Empty text
* initially. Invoke CA, verify 1 proposal, type 'a', verify no proposals
- *
+ *
* @throws Exception exception
*/
@Test
@@ -194,7 +194,7 @@ public class FilteringAsyncContentAssistTests {
* CA with 1 immediate and 1 delayed CA processors. Empty text initially. Invoke
* CA, verify 1 proposal shows right away, and then another added later after
* delay
- *
+ *
* @throws Exception exception
*/
@Test
@@ -231,7 +231,7 @@ public class FilteringAsyncContentAssistTests {
viewer.getSelectedRange().x);
assertEquals("yy", document.get());
}
-
+
/**
* CA with 1 CA processor for which the first request takes long time and consequent request are
* instant. Invoke CA. and type 'a' such that completions are not ready yet, but while recompute
@@ -239,7 +239,7 @@ public class FilteringAsyncContentAssistTests {
* UI runnable to show completions. Recompute is immediate. Hence proposals shown right away.
* However the async UI runnable to show old proposals runs after and overwrites the correct
* immediate proposals. Test that this behaviour is fixed
- *
+ *
* @throws Exception exception
*/
@Test
@@ -252,22 +252,22 @@ public class FilteringAsyncContentAssistTests {
ca.install(viewer);
viewer.setSelectedRange(0, 0);
-
+
ca.showPossibleCompletions();
-
+
DisplayHelper.sleep(shell.getDisplay(), 200);
new InsertEdit(0, "a").apply(document);
viewer.setSelectedRange(1, 0);
-
+
DisplayHelper.sleep(shell.getDisplay(), 3000);
-
+
List<ICompletionProposal> filteredProposals= getFilteredProposals(ca,
p -> p instanceof IncompleteCompletionProposal);
assertTrue(filteredProposals != null);
assertEquals(1, filteredProposals.size());
-
+
filteredProposals.get(0).apply(document);
-
+
assertEquals("aabc", document.get());
}
@@ -276,9 +276,9 @@ public class FilteringAsyncContentAssistTests {
* CA with filtering with 1 immediate and 1 delayed CA processors. Empty text
* initially. Invoke CA, verify 1 proposal shows right away, type `a` before
* delayed proposal calculated, verify immediate proposal filtered out
- *
+ *
* Bug: filtering only applied after all CA processors have completed
- *
+ *
* @throws Exception exception
*/
@Test @Ignore
@@ -394,9 +394,9 @@ public class FilteringAsyncContentAssistTests {
return super.computeCompletionProposals(viewer, offset);
}
}
-
+
private class LongInitialContentAssistProcessor extends DelayedContentAssistProcessor {
-
+
LongInitialContentAssistProcessor(String template, long delay, boolean incomplete) {
super(template, delay, incomplete);
}
@@ -446,7 +446,7 @@ public class FilteringAsyncContentAssistTests {
List<ICompletionProposal> filteredProposals = getFilteredProposals(ca);
return filteredProposals == null ? null : filteredProposals.stream().filter(p).collect(Collectors.toList());
}
-
+
private static class IncompleteCompletionProposal implements ICompletionProposal {
/** The string to be displayed in the completion proposal popup. */
@@ -504,7 +504,7 @@ public class FilteringAsyncContentAssistTests {
return null;
}
}
-
+
private static class CompletionProposal extends IncompleteCompletionProposal
implements ICompletionProposalExtension, ICompletionProposalExtension2 {
@@ -559,9 +559,9 @@ public class FilteringAsyncContentAssistTests {
public int getContextInformationPosition() {
return 0;
}
-
+
}
-
+
@SuppressWarnings("boxing")
private static boolean isSubstringFoundOrderedInString(String subString, String string) {
int lastIndex = 0;
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java
index 75ad0acde..70ecd85bf 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/reconciler/AbstractReconcilerTest.java
@@ -179,7 +179,7 @@ public class AbstractReconcilerTest {
};
fReconciler.setIsIncrementalReconciler(false);
fReconciler.setDelay(50); // make tests run faster
-
+
fProgressMonitor= new NullProgressMonitor();
fReconciler.setProgressMonitor(fProgressMonitor);
@@ -222,7 +222,7 @@ public class AbstractReconcilerTest {
assertFalse(isActive());
assertFalse(isDirty());
}
-
+
@Test
public void testDirtyingWhenClean() throws BadLocationException, InterruptedException {
installDocument();
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java
index 9a51de2b4..898857e94 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/rules/FastPartitionerTest.java
@@ -79,7 +79,7 @@ public class FastPartitionerTest {
int[] offsets= new int[] { 13, 26, 26, 39 };
assertGetPartition_InterleavingPartitions(offsets);
}
-
+
@Test
public void testGetPartitionEmptyStart() {
fDoc.set("/* comment */docu ment");
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java
index 662dde682..a609aa4bb 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/util/DisplayHelper.java
@@ -108,7 +108,7 @@ public abstract class DisplayHelper {
/**
* The condition which has to be met in order for {@link #waitForCondition(Display, long)} to
* return before the timeout elapses.
- *
+ *
* @return <code>true</code> if the condition is met, <code>false</code> if the event loop
* should be driven some more
*/
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java
index 888192355..30ecf8f5f 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java
@@ -41,15 +41,15 @@ import org.eclipse.ui.texteditor.AbstractTextEditor;
/**
* Closes intro, create {@link #project}, create {@link #file} and open {@link #editor}; and clean up.
* Also contains additional utility methods
- * @since 1.0
+ * @since 1.0
*/
public class AbstratGenericEditorTest {
-
+
protected IProject project;
protected IFile file;
protected ExtensionBasedTextEditor editor;
protected IWorkbenchWindow window;
-
+
/**
* Closes intro, create {@link #project}, create {@link #file} and open {@link #editor}
* @throws Exception ex
@@ -70,7 +70,7 @@ public class AbstratGenericEditorTest {
protected void createAndOpenFile() throws Exception {
createAndOpenFile("foo.txt", "bar 'bar'");
}
-
+
/**
* Creates a new file in the project, opens it, and associate that file with the test state
* @param name name of the file in the project
@@ -103,12 +103,12 @@ public class AbstratGenericEditorTest {
file = null;
}
}
-
+
protected SourceViewer getSourceViewer() {
SourceViewer sourceViewer= (SourceViewer) new Accessor(editor, AbstractTextEditor.class).invoke("getSourceViewer", new Object[0]);
return sourceViewer;
}
-
+
@After
public void tearDown() throws Exception {
cleanFileAndEditor();
@@ -124,7 +124,7 @@ public class AbstratGenericEditorTest {
UITestCase.processEvents();
}
}
-
+
public static void waitAndDispatch(long milliseconds) {
long timeout = milliseconds; //ms
long start = System.currentTimeMillis();
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/ContextInfoTest.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/ContextInfoTest.java
index dd7ffbc1b..5de19e0de 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/ContextInfoTest.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/ContextInfoTest.java
@@ -56,7 +56,7 @@ public class ContextInfoTest extends AbstratGenericEditorTest {
editor.selectAndReveal(4, 0);
UITestCase.processEvents();
-
+
action.update();
action.run();
this.completionShell= findNewShell(beforeShells);
@@ -64,7 +64,7 @@ public class ContextInfoTest extends AbstratGenericEditorTest {
editor.selectAndReveal(8, 0);
UITestCase.processEvents();
-
+
action.update();
action.run();
this.completionShell= findNewShell(beforeShells);
@@ -81,14 +81,14 @@ public class ContextInfoTest extends AbstratGenericEditorTest {
editor.selectAndReveal(4, 0);
UITestCase.processEvents();
-
+
action.update();
action.run();
this.completionShell= findNewShell(beforeShells);
editor.selectAndReveal(8, 0);
UITestCase.processEvents();
-
+
action.update();
action.run();
this.completionShell= findNewShell(beforeShells);
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/EditorTest.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/EditorTest.java
index 04bb0ebc5..b06eb09c0 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/EditorTest.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/EditorTest.java
@@ -46,7 +46,7 @@ public class EditorTest extends AbstratGenericEditorTest{
Assert.assertTrue(editorTextWidget.getWordWrap());
Assert.assertTrue(this.editor.isWordWrapEnabled());
}
-
+
@Test
public void testGenericEditorCanShowWhitespaceCharacters() throws Exception {
this.editor.setFocus();
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/TestQuickAssist.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/TestQuickAssist.java
index cbc6d4d3d..89d93d83d 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/TestQuickAssist.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/TestQuickAssist.java
@@ -71,7 +71,7 @@ public class TestQuickAssist extends AbstratGenericEditorTest {
assertEquals(1, completionProposalList.getItemCount());
final TableItem quickAssistItem = completionProposalList.getItem(0);
assertTrue("Missing quick assist proposal", quickAssistItem.getText().contains("QUICK ASSIST PROPOSAL")); //$NON-NLS-1$ //$NON-NLS-2$
-
+
}
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/MarkerResolutionGenerator.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/MarkerResolutionGenerator.java
index 7207d1ccc..b252df8f1 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/MarkerResolutionGenerator.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/MarkerResolutionGenerator.java
@@ -28,7 +28,7 @@ import org.eclipse.ui.ide.IDE;
public class MarkerResolutionGenerator implements IMarkerResolutionGenerator {
public static final String FIXME= MarkerResolutionGenerator.class.getName() + ".fixme";
-
+
private static class MarkerResolution implements IMarkerResolution2 {
@Override
public String getDescription() {
@@ -51,7 +51,7 @@ public class MarkerResolutionGenerator implements IMarkerResolutionGenerator {
e.printStackTrace();
}
}
-
+
}
@Override

Back to the top