Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2017-06-07 01:26:42 -0400
committerTomasz Zarna2017-06-08 16:55:53 -0400
commit64f0b6e3023cd608cc8da2741b1c2df65347cd3f (patch)
tree39f5cdfb684ced04efe60074b13c3b344be62733
parent177ee278b2332fb6de256202e4c5d4e75ef168cc (diff)
downloadorg.eclipse.mylyn.tasks-64f0b6e3023cd608cc8da2741b1c2df65347cd3f.tar.gz
org.eclipse.mylyn.tasks-64f0b6e3023cd608cc8da2741b1c2df65347cd3f.tar.xz
org.eclipse.mylyn.tasks-64f0b6e3023cd608cc8da2741b1c2df65347cd3f.zip
remove unnecessary code from mylyn.tasks.ui project
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractQueryPageSchema.java17
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/RepositoryQuerySchemaPage.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskHyperlinkPresenter.java6
3 files changed, 12 insertions, 12 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractQueryPageSchema.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractQueryPageSchema.java
index 36be81ded..26abd99fe 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractQueryPageSchema.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractQueryPageSchema.java
@@ -21,7 +21,6 @@ import java.util.Map;
import java.util.Map.Entry;
import org.eclipse.core.runtime.Assert;
-import org.eclipse.mylyn.internal.provisional.tasks.ui.wizards.AbstractQueryPageSchema.Flag;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMetaData;
import org.eclipse.mylyn.tasks.core.data.TaskData;
@@ -140,7 +139,7 @@ public class AbstractQueryPageSchema {
/**
* the key to use when indexing this field
- *
+ *
* @return the index key, or null if this should not be indexed
*/
public String getIndexKey() {
@@ -234,21 +233,23 @@ public class AbstractQueryPageSchema {
}
public enum Flag {
- ATTRIBUTE, OPERATION, PEOPLE, READ_ONLY, /**
+ ATTRIBUTE, OPERATION, PEOPLE, READ_ONLY,
+ /**
* A flag used to indicate that the field is related to a description.
- *
+ *
* @see TaskAttribute#KIND_DESCRIPTION
*/
- DESCRIPTION, /**
+ DESCRIPTION,
+ /**
* A flag used to indicate that the field is required.
- *
+ *
* @see TaskAttribute#META_REQUIRED
*/
REQUIRED,
/**
* A flag used to indicate that the field is required in the Query Page.
- *
+ *
* @see TaskAttribute#META_QUERY_REQUIRED
*/
QUERY_REQUIRED
@@ -353,7 +354,7 @@ public class AbstractQueryPageSchema {
/**
* Provides an iterator for all fields within the schema. Subsequent modifications to the returned collection are
* not reflected to schema.
- *
+ *
* @return all fields within the schema
*/
public Collection<Field> getFields() {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/RepositoryQuerySchemaPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/RepositoryQuerySchemaPage.java
index 90f8f0317..f1ebda4a6 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/RepositoryQuerySchemaPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/RepositoryQuerySchemaPage.java
@@ -48,7 +48,6 @@ import org.eclipse.ui.forms.widgets.FormToolkit;
@SuppressWarnings("nls")
public class RepositoryQuerySchemaPage extends AbstractRepositoryQueryPage2 {
- private static final String QUERYPAGE_FILTER_ID = "org.eclipse.mylyn.tasks.ui.wizards.QueryPageFilter";
private static final int LABEL_WIDTH = 110;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskHyperlinkPresenter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskHyperlinkPresenter.java
index 1c9256353..b097294f0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskHyperlinkPresenter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskHyperlinkPresenter.java
@@ -40,7 +40,7 @@ import org.eclipse.swt.graphics.RGB;
/**
* A hyperlink presenter that displays a tooltip when hovering over a {@link TaskHyperlink}.
- *
+ *
* @author Steffen Pingel
* @author Frank Becker
* @since 3.1
@@ -97,7 +97,6 @@ public final class TaskHyperlinkPresenter extends MultipleHyperlinkPresenter {
delegate.uninstall();
}
- @SuppressWarnings("unchecked")
@Override
public void applyTextPresentation(TextPresentation textPresentation) {
delegate.applyTextPresentation(textPresentation);
@@ -121,9 +120,10 @@ public final class TaskHyperlinkPresenter extends MultipleHyperlinkPresenter {
}
// TODO e3.7 add @Override annotation
+ @Override
public void showHyperlinks(IHyperlink[] hyperlinks, boolean takesFocusWhenVisible) {
activeRegion = null;
- // show task name in tooltip
+ // show task name in tooltip
if (hyperlinks.length == 1 && hyperlinks[0] instanceof TaskHyperlink) {
TaskHyperlink hyperlink = (TaskHyperlink) hyperlinks[0];

Back to the top