Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/provisional/bugzilla/rest/ui/BugzillaRestSearchQueryPageSchema.java')
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/provisional/bugzilla/rest/ui/BugzillaRestSearchQueryPageSchema.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/provisional/bugzilla/rest/ui/BugzillaRestSearchQueryPageSchema.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/provisional/bugzilla/rest/ui/BugzillaRestSearchQueryPageSchema.java
new file mode 100644
index 000000000..f3f38cea8
--- /dev/null
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/provisional/bugzilla/rest/ui/BugzillaRestSearchQueryPageSchema.java
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Tasktop Technologies and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.provisional.bugzilla.rest.ui;
+
+import org.eclipse.mylyn.internal.bugzilla.rest.core.BugzillaRestTaskSchema;
+import org.eclipse.mylyn.internal.provisional.tasks.ui.wizards.AbstractQueryPageSchema;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+
+public class BugzillaRestSearchQueryPageSchema extends AbstractQueryPageSchema {
+
+ private final BugzillaRestTaskSchema parent = BugzillaRestTaskSchema.getDefault();
+
+ private static final BugzillaRestSearchQueryPageSchema instance = new BugzillaRestSearchQueryPageSchema();
+
+ public BugzillaRestSearchQueryPageSchema() {
+ }
+
+ public static BugzillaRestSearchQueryPageSchema getInstance() {
+ return instance;
+ }
+
+ public final Field summary = copyFrom(parent.SUMMARY).create();
+
+ public final Field product = copyFrom(parent.PRODUCT).type(TaskAttribute.TYPE_MULTI_SELECT)
+ .layoutPriority(11)
+ .create();
+
+ public final Field component = copyFrom(parent.COMPONENT).type(TaskAttribute.TYPE_MULTI_SELECT)
+ .layoutPriority(11)
+ .create();
+
+ public final Field version = copyFrom(parent.VERSION).type(TaskAttribute.TYPE_MULTI_SELECT)
+ .layoutPriority(11)
+ .create();
+
+ public final Field target_milestone = copyFrom(parent.TARGET_MILESTONE).type(TaskAttribute.TYPE_MULTI_SELECT)
+ .layoutPriority(11)
+ .create();
+}

Back to the top