Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2015-09-17 10:30:19 +0000
committerMatthias Sohn2015-09-17 13:28:08 +0000
commite686eb1d45e70f358b6673534cb70348674c9614 (patch)
tree6f96a1b65703214e674351915adce6ec1aeba7f0 /org.eclipse.egit.ui.test
parent6d548e3038a6f8f94943d3cc8870b78e0fb20544 (diff)
downloadegit-e686eb1d45e70f358b6673534cb70348674c9614.tar.gz
egit-e686eb1d45e70f358b6673534cb70348674c9614.tar.xz
egit-e686eb1d45e70f358b6673534cb70348674c9614.zip
Add missing @Override annotations to all EGit bundles
Bug: 477689 Change-Id: I490e6558db5133a60caf00af2b996feae0e2e832 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/CompareEditorTester.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/GitImportRepoWizard.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/PushWizardTester.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/FeatureRebaseHandlerTest.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/actions/SwitchToMenuTest.java4
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceAdapterTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCacheTreeTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/operations/GitScopeUtilTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/search/CommitSearchDialogTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java6
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/Eclipse.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/SWTBotTreeColumn.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/TestUtil.java23
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/RepositoryCommitMatcher.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java4
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java5
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/CreatePatchActionTest.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace/TraceConfigurationDialogTest.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRemoteHandlingTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestUtils.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewGitChangeSetModelTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositorySearchPage.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositoryServerProvider.java1
29 files changed, 78 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/CompareEditorTester.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/CompareEditorTester.java
index be61124b65..d1794aed60 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/CompareEditorTester.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/CompareEditorTester.java
@@ -79,11 +79,13 @@ public class CompareEditorTester {
this.titleSubstring = titleSubstring;
}
+ @Override
public void describeTo(Description description) {
description.appendText("Compare editor that title contains text: "
+ titleSubstring);
}
+ @Override
public boolean matches(Object item) {
if (item instanceof IEditorReference) {
IEditorReference editor = (IEditorReference) item;
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/GitImportRepoWizard.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/GitImportRepoWizard.java
index acea73b53c..08dd6f5cea 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/GitImportRepoWizard.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/GitImportRepoWizard.java
@@ -107,6 +107,7 @@ public class GitImportRepoWizard {
private void pressAltAndChar(final SWTBotShell shell, final char charToPress) {
final Display display = Display.getDefault();
display.syncExec(new Runnable() {
+ @Override
public void run() {
Event evt = new Event();
// Alt down
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
index dc7c247681..a9984d6b71 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
@@ -487,6 +487,7 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase {
protected void shareProjects(File repositoryDir) throws Exception {
Repository myRepository = lookupRepository(repositoryDir);
FilenameFilter projectFilter = new FilenameFilter() {
+ @Override
public boolean accept(File dir, String name) {
return name.equals(".project");
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/PushWizardTester.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/PushWizardTester.java
index 14e6877ec9..dd0e956f3f 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/PushWizardTester.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/PushWizardTester.java
@@ -25,6 +25,7 @@ public class PushWizardTester {
public RepoPropertiesPage openPushWizard(final Repository repository)
throws Exception {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ @Override
public void run() {
try {
Shell shell = PlatformUI.getWorkbench()
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/FeatureRebaseHandlerTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/FeatureRebaseHandlerTest.java
index 1ff34415b8..2310462531 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/FeatureRebaseHandlerTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/gitflow/FeatureRebaseHandlerTest.java
@@ -103,6 +103,7 @@ public class FeatureRebaseHandlerTest extends AbstractGitflowHandlerTest {
new InitOperation(repository).execute(null);
}
+ @Override
protected void checkoutFeature(String featureName) throws CoreException {
new FeatureCheckoutOperation(new GitFlowRepository(repository), featureName).execute(null);
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/actions/SwitchToMenuTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/actions/SwitchToMenuTest.java
index 25f96424f2..46bc78233c 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/actions/SwitchToMenuTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/actions/SwitchToMenuTest.java
@@ -158,6 +158,7 @@ public class SwitchToMenuTest extends LocalRepositoryTestCase {
private MenuItem[] fillMenu() {
final MenuItem[][] items = new MenuItem[1][];
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
Menu menu = new Menu(new Shell(Display.getDefault()));
switchToMenu.fill(menu, 0 /* index */);
@@ -168,6 +169,7 @@ public class SwitchToMenuTest extends LocalRepositoryTestCase {
}
private static class EmptySelection implements ISelection {
+ @Override
public boolean isEmpty() {
return true;
}
@@ -176,6 +178,7 @@ public class SwitchToMenuTest extends LocalRepositoryTestCase {
private static void assertTextEquals(final String expectedText,
final MenuItem item) {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
assertEquals(expectedText, item.getText());
}
@@ -185,6 +188,7 @@ public class SwitchToMenuTest extends LocalRepositoryTestCase {
private static void assertStyleEquals(final int expectedStyle,
final MenuItem item) {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
assertEquals(expectedStyle, item.getStyle());
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceAdapterTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceAdapterTest.java
index 8a1f9228da..3156f988c0 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceAdapterTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceAdapterTest.java
@@ -442,6 +442,7 @@ class TestDecoratableResource extends DecoratableResource {
return this;
}
+ @Override
public boolean equals(Object obj) {
if (!(obj instanceof IDecoratableResource))
return false;
@@ -465,6 +466,7 @@ class TestDecoratableResource extends DecoratableResource {
return true;
}
+ @Override
public int hashCode() {
// this appeases FindBugs
return super.hashCode();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCacheTreeTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCacheTreeTest.java
index 79e19e9e56..e7b8228dd7 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCacheTreeTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/synchronize/model/GitModelCacheTreeTest.java
@@ -83,9 +83,11 @@ public class GitModelCacheTreeTest extends GitModelTestCase {
throws Exception {
return new GitModelCacheTree(createModelCommit(),
lookupRepository(leftRepoFile), location, new FileModelFactory() {
+ @Override
public boolean isWorkingTree() {
return false;
}
+ @Override
public GitModelBlob createFileModel(GitModelObjectContainer objParent,
Repository repo, Change change, IPath fullPath) {
return null;
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/operations/GitScopeUtilTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/operations/GitScopeUtilTest.java
index c8907dac18..2315878da1 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/operations/GitScopeUtilTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/operations/GitScopeUtilTest.java
@@ -136,6 +136,7 @@ public class GitScopeUtilTest extends LocalRepositoryTestCase {
final IResource[] selectedResources = new IResource[] { modelFile };
UIThreadRunnable.asyncExec(new VoidResult() {
+ @Override
public void run() {
try {
GitScopeUtil.getRelatedChanges(part, selectedResources);
@@ -167,6 +168,7 @@ public class GitScopeUtilTest extends LocalRepositoryTestCase {
final IResource[] selectedResources) {
final IResource[][] relatedChanges = new IResource[1][];
UIThreadRunnable.syncExec(new VoidResult() {
+ @Override
public void run() {
try {
relatedChanges[0] = GitScopeUtil.getRelatedChanges(part,
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/search/CommitSearchDialogTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/search/CommitSearchDialogTest.java
index 0fdcd0deb1..7d2f09d18f 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/search/CommitSearchDialogTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/search/CommitSearchDialogTest.java
@@ -87,6 +87,7 @@ public class CommitSearchDialogTest extends LocalRepositoryTestCase {
assertEquals(1, repos.length);
Object repoData = UIThreadRunnable.syncExec(new Result<Object>() {
+ @Override
public Object run() {
return repos[0].widget.getData();
}
@@ -98,6 +99,7 @@ public class CommitSearchDialogTest extends LocalRepositoryTestCase {
assertEquals(1, commits.length);
Object commitData = UIThreadRunnable.syncExec(new Result<Object>() {
+ @Override
public Object run() {
return commits[0].widget.getData();
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java
index 0f12bdc1bb..fa89ce386e 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java
@@ -117,6 +117,7 @@ public class ContextMenuHelper {
// show
final MenuItem menuItem = UIThreadRunnable
.syncExec(new WidgetResult<MenuItem>() {
+ @Override
public MenuItem run() {
MenuItem theItem = getMenuItem(bot, texts);
if (theItem != null && !theItem.isEnabled())
@@ -135,6 +136,7 @@ public class ContextMenuHelper {
// hide
UIThreadRunnable.syncExec(new VoidResult() {
+ @Override
public void run() {
if (menuItem.isDisposed())
return; // menu already gone
@@ -147,6 +149,7 @@ public class ContextMenuHelper {
final String... texts) {
final MenuItem menuItem = UIThreadRunnable
.syncExec(new WidgetResult<MenuItem>() {
+ @Override
public MenuItem run() {
return getMenuItem(bot, texts);
}
@@ -203,6 +206,7 @@ public class ContextMenuHelper {
// show
final MenuItem menuItem = UIThreadRunnable
.syncExec(new WidgetResult<MenuItem>() {
+ @Override
public MenuItem run() {
MenuItem theItem = getMenuItem(bot, texts);
if (theItem != null && theItem.isEnabled())
@@ -215,6 +219,7 @@ public class ContextMenuHelper {
+ Arrays.asList(texts));
// hide
UIThreadRunnable.syncExec(new VoidResult() {
+ @Override
public void run() {
if (menuItem.isDisposed())
return; // menu already gone
@@ -244,6 +249,7 @@ public class ContextMenuHelper {
event.type = SWT.Selection;
VoidResult toExecute = new VoidResult() {
+ @Override
public void run() {
menuItem.notifyListeners(SWT.Selection, event);
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/Eclipse.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/Eclipse.java
index 669a330410..e82fb132f4 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/Eclipse.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/Eclipse.java
@@ -48,6 +48,7 @@ public class Eclipse {
@SuppressWarnings("boxing")
public static boolean isEclipseShell(final SWTBotShell shell) {
return UIThreadRunnable.syncExec(new BoolResult() {
+ @Override
public Boolean run() {
return PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell() == shell.widget;
@@ -84,6 +85,7 @@ public class Eclipse {
// bot.menu("Window").menu("Preferences").click();
// Launch preferences programmatically instead
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ @Override
public void run() {
IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/SWTBotTreeColumn.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/SWTBotTreeColumn.java
index eb2e43402b..f304ccddff 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/SWTBotTreeColumn.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/SWTBotTreeColumn.java
@@ -29,6 +29,7 @@ public class SWTBotTreeColumn extends AbstractSWTBot<TreeColumn> {
public static SWTBotTreeColumn getColumn(final Tree tree, final int index) {
TreeColumn treeColumn = UIThreadRunnable.syncExec(tree.getDisplay(),
new WidgetResult<TreeColumn>() {
+ @Override
public TreeColumn run() {
return tree.getColumn(index);
}
@@ -39,6 +40,7 @@ public class SWTBotTreeColumn extends AbstractSWTBot<TreeColumn> {
public SWTBotTreeColumn(final TreeColumn w) throws WidgetNotFoundException {
super(w);
parent = UIThreadRunnable.syncExec(new WidgetResult<Tree>() {
+ @Override
public Tree run() {
return w.getParent();
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/TestUtil.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/TestUtil.java
index 2b48f13bcc..8cb7314a67 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/TestUtil.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/TestUtil.java
@@ -258,6 +258,7 @@ public class TestUtil {
} else {
// synchronously refresh UI
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
+ @Override
public void run() {
processUIEvents();
}
@@ -301,6 +302,7 @@ public class TestUtil {
throws TimeoutException {
bot.waitUntil(new ICondition() {
+ @Override
public boolean test() throws Exception {
for (SWTBotTreeItem item : tree.getAllItems())
if (item.getText().contains(text))
@@ -308,10 +310,12 @@ public class TestUtil {
return false;
}
+ @Override
public void init(SWTBot bot2) {
// empty
}
+ @Override
public String getFailureMessage() {
return null;
}
@@ -331,6 +335,7 @@ public class TestUtil {
throws TimeoutException {
bot.waitUntil(new ICondition() {
+ @Override
public boolean test() throws Exception {
for (SWTBotTreeItem item : treeItem.getItems())
if (item.getText().contains(text))
@@ -338,10 +343,12 @@ public class TestUtil {
return false;
}
+ @Override
public void init(SWTBot bot2) {
// empty
}
+ @Override
public String getFailureMessage() {
return null;
}
@@ -362,14 +369,17 @@ public class TestUtil {
throws TimeoutException {
bot.waitUntil(new ICondition() {
+ @Override
public boolean test() throws Exception {
return tree.selection().get(0, 0).equals(text);
}
+ @Override
public void init(SWTBot bot2) {
// empty
}
+ @Override
public String getFailureMessage() {
return null;
}
@@ -388,16 +398,19 @@ public class TestUtil {
final String text, long timeout) throws TimeoutException {
bot.waitUntil(new ICondition() {
+ @Override
public boolean test() throws Exception {
if (table.indexOf(text)<0)
return false;
return true;
}
+ @Override
public void init(SWTBot bot2) {
// empty
}
+ @Override
public String getFailureMessage() {
return null;
}
@@ -408,14 +421,17 @@ public class TestUtil {
final SWTBotEditor editor, long timeout) {
bot.waitUntil(new ICondition() {
+ @Override
public boolean test() throws Exception {
return editor.isActive();
}
+ @Override
public void init(SWTBot bot2) {
// empty
}
+ @Override
public String getFailureMessage() {
return null;
}
@@ -620,12 +636,14 @@ public class TestUtil {
public static void waitUntilViewWithGivenIdShows(final String viewId) {
waitForView(new BaseMatcher<IViewReference>() {
+ @Override
public boolean matches(Object item) {
if (item instanceof IViewReference)
return viewId.equals(((IViewReference) item).getId());
return false;
}
+ @Override
public void describeTo(Description description) {
description.appendText("Wait for view with ID=" + viewId);
}
@@ -634,6 +652,7 @@ public class TestUtil {
public static void waitUntilViewWithGivenTitleShows(final String viewTitle) {
waitForView(new BaseMatcher<IViewReference>() {
+ @Override
public boolean matches(Object item) {
if (item instanceof IViewReference)
return viewTitle.equals(((IViewReference) item).getTitle());
@@ -641,6 +660,7 @@ public class TestUtil {
return false;
}
+ @Override
public void describeTo(Description description) {
description.appendText("Wait for view with title " + viewTitle);
}
@@ -657,6 +677,7 @@ public class TestUtil {
return title != null && title.startsWith(titlePrefix);
}
+ @Override
public void describeTo(Description description) {
description.appendText("Shell with title starting with '"
+ titlePrefix + "'");
@@ -669,6 +690,7 @@ public class TestUtil {
public static SWTBotView showView(final String viewId) {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
@@ -692,6 +714,7 @@ public class TestUtil {
public static void hideView(final String viewId) {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
IWorkbenchWindow[] windows = PlatformUI.getWorkbench()
.getWorkbenchWindows();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java
index fc71f8fd2d..50fd4e4eb0 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/CommitEditorTest.java
@@ -69,6 +69,7 @@ public class CommitEditorTest extends LocalRepositoryTestCase {
final AtomicReference<IEditorPart> editorRef = new AtomicReference<IEditorPart>();
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
+ @Override
public void run() {
RepositoryCommit repoCommit = new RepositoryCommit(repository,
commit);
@@ -100,6 +101,7 @@ public class CommitEditorTest extends LocalRepositoryTestCase {
final AtomicReference<IEditorPart> editorRef = new AtomicReference<IEditorPart>();
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
+ @Override
public void run() {
RepositoryCommit repoCommit = new RepositoryCommit(repository,
commit);
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/RepositoryCommitMatcher.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/RepositoryCommitMatcher.java
index 31ba818529..4b3ec904fd 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/RepositoryCommitMatcher.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/commit/RepositoryCommitMatcher.java
@@ -44,6 +44,7 @@ public final class RepositoryCommitMatcher extends
return true;
}
+ @Override
public void describeTo(Description description) {
description.appendText("commit id=")
.appendValue(wanted.abbreviate())
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
index f87222a8d1..a40fa7ef52 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
@@ -252,6 +252,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
Job.getJobManager().join(JobFamilies.GENERATE_HISTORY, null);
// join UI update triggered by GenerateHistoryJob
projectExplorerTree.widget.getDisplay().syncExec(new Runnable() {
+ @Override
public void run() {
// empty
}
@@ -293,6 +294,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
TableItem tableItem = table.widget.getSelection()[0];
ensureTableItemLoaded(tableItem);
@@ -350,6 +352,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
TableItem tableItem = table.widget.getSelection()[0];
ensureTableItemLoaded(tableItem);
@@ -411,6 +414,7 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
TableItem tableItem = table.widget.getSelection()[0];
ensureTableItemLoaded(tableItem);
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java
index f304f732ee..9d7fd468bb 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java
@@ -186,6 +186,7 @@ public class BranchAndResetActionTest extends LocalRepositoryTestCase {
assertEquals("ToBeDeleted", showUndeleted.bot().tree()
.getAllItems()[0].getItems()[0].getItems()[0].getText());
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
assertSame(folderImage, showUndeleted.bot().tree()
.getAllItems()[0].widget.getImage());
@@ -218,6 +219,7 @@ public class BranchAndResetActionTest extends LocalRepositoryTestCase {
assertEquals("ToBeDeleted", showUndeleted.bot().tree()
.getAllItems()[0].getItems()[0].getItems()[0].getText());
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
assertSame(projectImage, showUndeleted.bot().tree()
.getAllItems()[0].widget.getImage());
@@ -226,14 +228,17 @@ public class BranchAndResetActionTest extends LocalRepositoryTestCase {
ICondition treeEmpty = new ICondition() {
+ @Override
public boolean test() throws Exception {
return showUndeleted.bot().tree().getAllItems().length == 0;
}
+ @Override
public void init(SWTBot actBot) {
// nothing
}
+ @Override
public String getFailureMessage() {
return "Not deleted";
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/CreatePatchActionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/CreatePatchActionTest.java
index dfe8735bf3..d9b12660bd 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/CreatePatchActionTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/CreatePatchActionTest.java
@@ -235,6 +235,7 @@ public class CreatePatchActionTest extends LocalRepositoryTestCase {
private static void assertClipboard(final String expected) {
final String[] value = { null };
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
Clipboard clp = new Clipboard(Display.getCurrent());
value[0] = (String) clp.getContents(TextTransfer.getInstance());
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace/TraceConfigurationDialogTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace/TraceConfigurationDialogTest.java
index b8fa659cd2..bea8d1edf1 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace/TraceConfigurationDialogTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace/TraceConfigurationDialogTest.java
@@ -153,6 +153,7 @@ public class TraceConfigurationDialogTest {
private void getDialog() {
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
if (configurationDialog != null)
configurationDialog.close();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java
index 97cf84ec9d..d5b24027e1 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java
@@ -180,6 +180,7 @@ public class DynamicVariablesTest extends EGitTestCase {
findMember);
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
+ @Override
public void run() {
selectionProvider.setSelection(structuredSelection);
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
index 8553fc0a33..bea1771e1a 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
@@ -434,6 +434,7 @@ public class GitRepositoriesViewBranchHandlingTest extends
final AtomicBoolean changed = new AtomicBoolean();
ConfigChangedListener listener =
new ConfigChangedListener() {
+ @Override
public void onConfigChanged(ConfigChangedEvent event) {
changed.set(true);
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRemoteHandlingTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRemoteHandlingTest.java
index 730afa3836..9e34eeb096 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRemoteHandlingTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRemoteHandlingTest.java
@@ -193,6 +193,7 @@ public class GitRepositoriesViewRemoteHandlingTest extends
UIText.RefSpecDialog_DestinationPushLabel).widget;
shell.display.syncExec(new Runnable() {
+ @Override
public void run() {
text.setFocus();
text.notifyListeners(SWT.Modify, new Event());
@@ -309,6 +310,7 @@ public class GitRepositoriesViewRemoteHandlingTest extends
UIText.RefSpecDialog_DestinationPushLabel).widget;
shell.display.syncExec(new Runnable() {
+ @Override
public void run() {
// focus for update of other fields
text2.setFocus();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java
index 797113fd11..c3dde96548 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoHandlingTest.java
@@ -73,6 +73,7 @@ public class GitRepositoriesViewRepoHandlingTest extends
waitInUI();
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
Clipboard clp = new Clipboard(Display.getCurrent());
clp.clearContents();
@@ -104,6 +105,7 @@ public class GitRepositoriesViewRepoHandlingTest extends
UIText.RepositoriesView_messsageEmpty);
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
Clipboard clip = null;
try {
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
index 9b9089dce1..0319024622 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
@@ -121,6 +121,7 @@ public abstract class GitRepositoriesViewTestBase extends
TestUtil.processUIEvents();
}
+ @Override
@SuppressWarnings("boxing")
protected void assertProjectExistence(String projectName, boolean existence) {
IProject prj = ResourcesPlugin.getWorkspace().getRoot().getProject(
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestUtils.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestUtils.java
index 2d2f7e04a2..a5fccb758d 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestUtils.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestUtils.java
@@ -39,6 +39,7 @@ public class GitRepositoriesViewTestUtils {
final AtomicReference<RepositoriesViewLabelProvider> providerRef = new AtomicReference<RepositoriesViewLabelProvider>();
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
providerRef.set(new RepositoriesViewLabelProvider());
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewGitChangeSetModelTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewGitChangeSetModelTest.java
index 692e0094a2..5bf6c062da 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewGitChangeSetModelTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewGitChangeSetModelTest.java
@@ -310,6 +310,7 @@ public class SynchronizeViewGitChangeSetModelTest extends
// when
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
CommonUtils.runCommand("org.eclipse.compare.copyLeftToRight",
null);
@@ -337,6 +338,7 @@ public class SynchronizeViewGitChangeSetModelTest extends
// when
Display.getDefault().syncExec(new Runnable() {
+ @Override
public void run() {
CommonUtils.runCommand("org.eclipse.compare.copyRightToLeft",
null);
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositorySearchPage.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositorySearchPage.java
index 5e6e15719b..4460f3693d 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositorySearchPage.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositorySearchPage.java
@@ -26,12 +26,14 @@ public class TestRepositorySearchPage extends WizardPage implements
setMessage("Do the needful");
}
+ @Override
public void createControl(Composite parent) {
Composite main = new Composite(parent, SWT.NONE);
new Label(main, SWT.NULL).setText("Search for Repos");
setControl(main);
}
+ @Override
public GitRepositoryInfo getGitRepositoryInfo() {
return new GitRepositoryInfo(
"http://egit.eclipse.org/r/p/egit-training");
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositoryServerProvider.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositoryServerProvider.java
index 9195d652f5..31e884148b 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositoryServerProvider.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/TestRepositoryServerProvider.java
@@ -22,6 +22,7 @@ import org.eclipse.egit.ui.internal.provisional.wizards.RepositoryServerInfo;
public class TestRepositoryServerProvider implements IRepositoryServerProvider {
+ @Override
public Collection<RepositoryServerInfo> getRepositoryServerInfos() {
List<RepositoryServerInfo> info = new ArrayList<RepositoryServerInfo>();
try {

Back to the top