Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-08-28 13:43:17 -0400
committerSam Davis2015-08-28 13:43:17 -0400
commit353556c3f13f0861a589404254f35acf05fe101b (patch)
tree6ec7545ff8f5d954f2527d7ada18dab4348c8d57
parent15aa7ed82c1b802c669a01f312cfb176bec9e78d (diff)
downloadorg.eclipse.mylyn.tasks-353556c3f13f0861a589404254f35acf05fe101b.tar.gz
org.eclipse.mylyn.tasks-353556c3f13f0861a589404254f35acf05fe101b.tar.xz
org.eclipse.mylyn.tasks-353556c3f13f0861a589404254f35acf05fe101b.zip
475539: ignore NLS warnings in provisional package
Change-Id: Iefc7c888aa5978bd7f99a704d022650055c6bd81 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475539
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/AbstractQueryPageSchema.java24
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/QueryPageSearch.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/RepositoryQuerySchemaPage.java7
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/SimpleURLQueryPageSchema.java1
4 files changed, 19 insertions, 14 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 c548dd647..36be81ded 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
@@ -26,6 +26,7 @@ import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMetaData;
import org.eclipse.mylyn.tasks.core.data.TaskData;
+@SuppressWarnings("nls")
public class AbstractQueryPageSchema {
public static class Field {
@@ -139,7 +140,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 +235,20 @@ public class AbstractQueryPageSchema {
public enum Flag {
ATTRIBUTE, OPERATION, PEOPLE, READ_ONLY, /**
- * A flag used to indicate that the field is related to a
- * description.
- *
- * @see TaskAttribute#KIND_DESCRIPTION
- */
+ * A flag used to indicate that the field is related to a description.
+ *
+ * @see TaskAttribute#KIND_DESCRIPTION
+ */
DESCRIPTION, /**
- * A flag used to indicate that the field is required.
- *
- * @see TaskAttribute#META_REQUIRED
- */
+ * 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 +353,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/QueryPageSearch.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/QueryPageSearch.java
index 4b3d7e9eb..cb24d240b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/QueryPageSearch.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/QueryPageSearch.java
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
+@SuppressWarnings("nls")
public class QueryPageSearch {
/** Stores search criteria in the order entered by the user. */
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 103ba627e..32425cc9b 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
@@ -46,6 +46,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
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";
@@ -244,8 +245,10 @@ public class RepositoryQuerySchemaPage extends AbstractRepositoryQueryPage2 {
setMessage("");
boolean oneFieldHasValue = false;
for (Field field : schema.getFields()) {
- oneFieldHasValue |= (targetTaskData.getRoot().getAttribute(field.getKey()).hasValue()
- && !targetTaskData.getRoot().getAttribute(field.getKey()).getValue().equals(""));
+ oneFieldHasValue |= (targetTaskData.getRoot().getAttribute(field.getKey()).hasValue() && !targetTaskData.getRoot()
+ .getAttribute(field.getKey())
+ .getValue()
+ .equals(""));
if (field.isQueryRequired()) {
String text = targetTaskData.getRoot().getAttribute(field.getKey()).getValue();
if (text == null || text.length() == 0) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/SimpleURLQueryPageSchema.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/SimpleURLQueryPageSchema.java
index e41eeaec9..25f466f2e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/SimpleURLQueryPageSchema.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/provisional/tasks/ui/wizards/SimpleURLQueryPageSchema.java
@@ -13,6 +13,7 @@ package org.eclipse.mylyn.internal.provisional.tasks.ui.wizards;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+@SuppressWarnings("nls")
public class SimpleURLQueryPageSchema extends AbstractQueryPageSchema {
private static final SimpleURLQueryPageSchema instance = new SimpleURLQueryPageSchema();

Back to the top