Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-11-29 21:11:24 +0000
committerMarkus Keller2015-12-01 01:50:38 +0000
commit64b34b614087b96e6cc92c72143768b98ae32602 (patch)
tree4f4f493fd8161f9a5885f11021cd14a923946e9f /org.eclipse.ui.editors.tests/src
parentf01dd079500e382823d5d1767996cb9ef85233ee (diff)
downloadeclipse.platform.text-64b34b614087b96e6cc92c72143768b98ae32602.tar.gz
eclipse.platform.text-64b34b614087b96e6cc92c72143768b98ae32602.tar.xz
eclipse.platform.text-64b34b614087b96e6cc92c72143768b98ae32602.zip
Bug 478673: added @Override/@Deprecated and removed non-Javadoc boilerplate
Diffstat (limited to 'org.eclipse.ui.editors.tests/src')
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ChainedPreferenceStoreTest.java1
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java8
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java8
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java7
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java8
5 files changed, 14 insertions, 18 deletions
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ChainedPreferenceStoreTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ChainedPreferenceStoreTest.java
index a020b28d4..8ddf3d09a 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ChainedPreferenceStoreTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ChainedPreferenceStoreTest.java
@@ -29,6 +29,7 @@ public class ChainedPreferenceStoreTest extends TestCase {
private class PropertyChangeListener implements IPropertyChangeListener {
+ @Override
public void propertyChange(PropertyChangeEvent event) {
fEvents.add(event);
}
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
index 7478d5fc3..ad3feb1c2 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
@@ -77,9 +77,7 @@ public class EncodingChangeTests extends TestCase {
return ORIGINAL_CONTENT;
}
- /*
- * @see junit.framework.TestCase#setUp()
- */
+ @Override
protected void setUp() throws Exception {
IFolder folder= ResourceHelper.createFolder("EncodingChangeTestProject/EncodingChangeTests/");
fFile= ResourceHelper.createFile(folder, "file" + fCount + ".txt", getOriginalContent());
@@ -87,9 +85,7 @@ public class EncodingChangeTests extends TestCase {
fCount++;
}
- /*
- * @see junit.framework.TestCase#tearDown()
- */
+ @Override
protected void tearDown() throws Exception {
closeEditor(fEditor);
fEditor= null;
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java
index c7418d833..1ec6f4e58 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java
@@ -59,17 +59,13 @@ public class GotoLineTest extends TestCase {
return ORIGINAL_CONTENT;
}
- /*
- * @see junit.framework.TestCase#setUp()
- */
+ @Override
protected void setUp() throws Exception {
IFolder folder= ResourceHelper.createFolder("GoToLineTestProject/goToLineTests/");
fFile= ResourceHelper.createFile(folder, "file.txt", getOriginalContent());
}
- /*
- * @see junit.framework.TestCase#tearDown()
- */
+ @Override
protected void tearDown() throws Exception {
ResourceHelper.deleteProject("GoToLineTestProject");
fFile= null;
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java
index cd79c0e66..6820ccc24 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java
@@ -50,6 +50,7 @@ public class MarkerAnnotationOrderTest extends TestCase {
return new TestSuite(MarkerAnnotationOrderTest.class);
}
+ @Override
protected void setUp() throws Exception {
//add the marker updater extension point
IExtensionRegistry registry= Platform.getExtensionRegistry();
@@ -70,6 +71,7 @@ public class MarkerAnnotationOrderTest extends TestCase {
}
}
+ @Override
protected void tearDown() throws Exception {
// remove the marker updater extension point
IExtensionRegistry registry= Platform.getExtensionRegistry();
@@ -86,6 +88,7 @@ public class MarkerAnnotationOrderTest extends TestCase {
ILog log= Platform.getLog(bundle);
log.addLogListener(new ILogListener() {
+ @Override
public void logging(IStatus status, String plugin) {
list.add(status);
}
@@ -115,16 +118,20 @@ public class MarkerAnnotationOrderTest extends TestCase {
}
public class TestMarkerAnnotationModel extends AbstractMarkerAnnotationModel {
+ @Override
protected IMarker[] retrieveMarkers() throws CoreException {
return null;
}
+ @Override
protected void deleteMarkers(IMarker[] markers) throws CoreException {
}
+ @Override
protected void listenToMarkerChanges(boolean listen) {
}
+ @Override
protected boolean isAcceptable(IMarker marker) {
return false;
}
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java
index b3481fed0..2c72eb476 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java
@@ -50,17 +50,13 @@ public class SegmentedModeTest extends TestCase {
return ORIGINAL_CONTENT;
}
- /*
- * @see junit.framework.TestCase#setUp()
- */
+ @Override
protected void setUp() throws Exception {
IFolder folder= ResourceHelper.createFolder("project/folderA/folderB/");
fFile= ResourceHelper.createFile(folder, "file.txt", getOriginalContent());
}
- /*
- * @see junit.framework.TestCase#tearDown()
- */
+ @Override
protected void tearDown() throws Exception {
ResourceHelper.deleteProject("project");
}

Back to the top