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.mylyn.ui/src/org
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.mylyn.ui/src/org')
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/CommitHyperlinkDetector.java5
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/EGitMylynUI.java2
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/ActiveTaskBranchNameProvider.java1
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java1
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java2
5 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/CommitHyperlinkDetector.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/CommitHyperlinkDetector.java
index b5746b52ae..b82cc5205a 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/CommitHyperlinkDetector.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/CommitHyperlinkDetector.java
@@ -69,18 +69,22 @@ public class CommitHyperlinkDetector extends AbstractHyperlinkDetector {
this.objectId = objectId;
}
+ @Override
public IRegion getHyperlinkRegion() {
return region;
}
+ @Override
public String getTypeLabel() {
return null;
}
+ @Override
public String getHyperlinkText() {
return objectId;
}
+ @Override
public void open() {
try {
RepositoryCommit commit;
@@ -151,6 +155,7 @@ public class CommitHyperlinkDetector extends AbstractHyperlinkDetector {
* Detects and returns all available hyperlinks for the given
* {@link TextViewer} which link to a Git commit.
*/
+ @Override
public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
final IRegion region, boolean canShowMultipleHyperlinks) {
IDocument document = textViewer.getDocument();
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/EGitMylynUI.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/EGitMylynUI.java
index f1433ad2c0..f450e96d9d 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/EGitMylynUI.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/EGitMylynUI.java
@@ -28,6 +28,7 @@ public class EGitMylynUI extends AbstractUIPlugin {
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
+ @Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
@@ -37,6 +38,7 @@ public class EGitMylynUI extends AbstractUIPlugin {
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
+ @Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/ActiveTaskBranchNameProvider.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/ActiveTaskBranchNameProvider.java
index c45532beca..6ec42ea0d9 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/ActiveTaskBranchNameProvider.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/ActiveTaskBranchNameProvider.java
@@ -33,6 +33,7 @@ public class ActiveTaskBranchNameProvider implements IBranchNameProvider {
return TasksUi.getTaskActivityManager().getActiveTask();
}
+ @Override
public String getBranchNameSuggestion() {
ITask task = getCurrentTask();
if (task == null)
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java
index 66c398ef6d..26e28350ec 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java
@@ -31,6 +31,7 @@ public class MylynCommitMessageProvider implements ICommitMessageProvider {
/**
* @return the mylyn commit message template defined in the preferences
*/
+ @Override
public String getMessage(IResource[] resources) {
String message = ""; //$NON-NLS-1$
if (resources == null)
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java
index dafc8967be..56421afcef 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java
@@ -47,6 +47,7 @@ public class TaskReferenceFactory implements IAdapterFactory {
private static final String BUGTRACK_SECTION = "bugtracker"; //$NON-NLS-1$
private static final String BUGTRACK_URL = "url"; //$NON-NLS-1$
+ @Override
@SuppressWarnings({ "rawtypes" })
public Class[] getAdapterList() {
final Class[] c = new Class[ADAPTER_TYPES.length];
@@ -54,6 +55,7 @@ public class TaskReferenceFactory implements IAdapterFactory {
return c;
}
+ @Override
@SuppressWarnings("rawtypes")
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (!AbstractTaskReference.class.equals(adapterType))

Back to the top