summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-11-24 07:50:37 (EST)
committerSteffen Pingel2011-11-24 07:50:37 (EST)
commita471ecb8a423d0327c82d8a132945bf61d4901ac (patch)
tree75d6b1ba26a07c044b8e92de410b2b50a6bc061b
parentf86f0941bcf02484938212277431ae2811902ca4 (diff)
downloadorg.eclipse.mylyn.tasks-a471ecb8a423d0327c82d8a132945bf61d4901ac.zip
org.eclipse.mylyn.tasks-a471ecb8a423d0327c82d8a132945bf61d4901ac.tar.gz
org.eclipse.mylyn.tasks-a471ecb8a423d0327c82d8a132945bf61d4901ac.tar.bz2
REOPENED - bug 356790: configure all projects for Unix file endings
https://bugs.eclipse.org/bugs/show_bug.cgi?id=356790 Change-Id: Ib444d398f20055df85a2c85c628f2c7c5df2e81c
-rw-r--r--org.eclipse.mylyn-feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.help.sdk/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.help.ui/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.help.ui/intro/css/overview.css30
-rw-r--r--org.eclipse.mylyn.help.ui/intro/css/tutorials.css30
-rw-r--r--org.eclipse.mylyn.help.ui/intro/css/tutorials.properties8
-rw-r--r--org.eclipse.mylyn.help.ui/intro/css/whatsnew.css14
-rw-r--r--org.eclipse.mylyn.help.ui/intro/css/whatsnew.properties4
-rw-r--r--org.eclipse.mylyn.oslc.core/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.oslc.ui/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.sdk-feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.bugs/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.core/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.ide-feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.search/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/AttachmentTableLabelProviderTest.java92
-rw-r--r--org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tasks.ui/schema/searchHandler.exsd180
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DoubleAttributeEditor.java102
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/IntegerAttributeEditor.java102
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityEditor.java452
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/AbstractSearchHandler.java160
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/DefaultSearchHandler.java84
-rw-r--r--org.eclipse.mylyn.test-feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tests.util/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/UrlBuilder.java152
-rw-r--r--org.eclipse.mylyn.trac-feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.trac.core/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.trac.tests/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.trac.ui/.settings/org.eclipse.core.runtime.prefs2
36 files changed, 751 insertions, 705 deletions
diff --git a/org.eclipse.mylyn-feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn-feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn-feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.help.sdk/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.help.sdk/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.help.sdk/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.help.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.help.ui/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.help.ui/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.help.ui/intro/css/overview.css b/org.eclipse.mylyn.help.ui/intro/css/overview.css
index e014813..b474c63 100644
--- a/org.eclipse.mylyn.help.ui/intro/css/overview.css
+++ b/org.eclipse.mylyn.help.ui/intro/css/overview.css
@@ -1,15 +1,15 @@
-a#mylyn-overview img {
- background-image: url(../../images/topiclabel/ov_mylyn48.gif);
-}
-
-a#mylyn-overview:hover img {
- background-image: url(../../images/topiclabel/ov_mylyn48_hov.gif);
-}
-
-a#mylyn-legend img {
- background-image: url(../../images/topiclabel/ov_legend48.gif);
-}
-
-a#mylyn-legend:hover img {
- background-image: url(../../images/topiclabel/ov_legend48_hov.gif);
-}
+a#mylyn-overview img {
+ background-image: url(../../images/topiclabel/ov_mylyn48.gif);
+}
+
+a#mylyn-overview:hover img {
+ background-image: url(../../images/topiclabel/ov_mylyn48_hov.gif);
+}
+
+a#mylyn-legend img {
+ background-image: url(../../images/topiclabel/ov_legend48.gif);
+}
+
+a#mylyn-legend:hover img {
+ background-image: url(../../images/topiclabel/ov_legend48_hov.gif);
+}
diff --git a/org.eclipse.mylyn.help.ui/intro/css/tutorials.css b/org.eclipse.mylyn.help.ui/intro/css/tutorials.css
index f2d3616..0c4f174 100644
--- a/org.eclipse.mylyn.help.ui/intro/css/tutorials.css
+++ b/org.eclipse.mylyn.help.ui/intro/css/tutorials.css
@@ -1,15 +1,15 @@
-a#mylyn-query img {
- background-image: url(../../images/topiclabel/tu_query48.gif);
-}
-
-a#mylyn-query:hover img {
- background-image: url(../../images/topiclabel/tu_query48_hov.gif);
-}
-
-a#mylyn-task img {
- background-image: url(../../images/topiclabel/tu_task48.gif);
-}
-
-a#mylyn-task:hover img {
- background-image: url(../../images/topiclabel/tu_task48_hov.gif);
-}
+a#mylyn-query img {
+ background-image: url(../../images/topiclabel/tu_query48.gif);
+}
+
+a#mylyn-query:hover img {
+ background-image: url(../../images/topiclabel/tu_query48_hov.gif);
+}
+
+a#mylyn-task img {
+ background-image: url(../../images/topiclabel/tu_task48.gif);
+}
+
+a#mylyn-task:hover img {
+ background-image: url(../../images/topiclabel/tu_task48_hov.gif);
+}
diff --git a/org.eclipse.mylyn.help.ui/intro/css/tutorials.properties b/org.eclipse.mylyn.help.ui/intro/css/tutorials.properties
index 9dd13af..97180c8 100644
--- a/org.eclipse.mylyn.help.ui/intro/css/tutorials.properties
+++ b/org.eclipse.mylyn.help.ui/intro/css/tutorials.properties
@@ -8,7 +8,7 @@
# Contributors:
# Tasktop Technologies - initial API and implementation
###############################################################################
-tutorials.mylyn-query.link-icon = images/topiclabel/tu_query48.gif
-tutorials.mylyn-query.hover-icon = images/topiclabel/tu_query48_hov.gif
-tutorials.mylyn-task.link-icon = images/topiclabel/tu_task48.gif
-tutorials.mylyn-task.hover-icon = images/topiclabel/tu_task48_hov.gif
+tutorials.mylyn-query.link-icon = images/topiclabel/tu_query48.gif
+tutorials.mylyn-query.hover-icon = images/topiclabel/tu_query48_hov.gif
+tutorials.mylyn-task.link-icon = images/topiclabel/tu_task48.gif
+tutorials.mylyn-task.hover-icon = images/topiclabel/tu_task48_hov.gif
diff --git a/org.eclipse.mylyn.help.ui/intro/css/whatsnew.css b/org.eclipse.mylyn.help.ui/intro/css/whatsnew.css
index 3bcb8da..2e5ccb0 100644
--- a/org.eclipse.mylyn.help.ui/intro/css/whatsnew.css
+++ b/org.eclipse.mylyn.help.ui/intro/css/whatsnew.css
@@ -1,7 +1,7 @@
-a#mylyn-noteworthy img {
- background-image: url(../../images/topiclabel/wn_mylyn48.gif);
-}
-
-a#mylyn-noteworthy:hover img {
- background-image: url(../../images/topiclabel/wn_mylyn48_hov.gif);
-}
+a#mylyn-noteworthy img {
+ background-image: url(../../images/topiclabel/wn_mylyn48.gif);
+}
+
+a#mylyn-noteworthy:hover img {
+ background-image: url(../../images/topiclabel/wn_mylyn48_hov.gif);
+}
diff --git a/org.eclipse.mylyn.help.ui/intro/css/whatsnew.properties b/org.eclipse.mylyn.help.ui/intro/css/whatsnew.properties
index 9ce22c6..22d77c3 100644
--- a/org.eclipse.mylyn.help.ui/intro/css/whatsnew.properties
+++ b/org.eclipse.mylyn.help.ui/intro/css/whatsnew.properties
@@ -8,5 +8,5 @@
# Contributors:
# Tasktop Technologies - initial API and implementation
###############################################################################
-whatsnew.mylyn-noteworthy.link-icon = images/topiclabel/wn_mylyn48.gif
-whatsnew.mylyn-noteworthy.hover-icon = images/topiclabel/wn_mylyn48_hov.gif
+whatsnew.mylyn-noteworthy.link-icon = images/topiclabel/wn_mylyn48.gif
+whatsnew.mylyn-noteworthy.hover-icon = images/topiclabel/wn_mylyn48_hov.gif
diff --git a/org.eclipse.mylyn.oslc.core/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.oslc.core/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.core/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.oslc.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.oslc.ui/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.ui/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.sdk-feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.sdk-feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.sdk-feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.bugs/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tasks.bugs/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.bugs/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.ide-feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tasks.ide-feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ide-feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.search/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tasks.search/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.search/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/AttachmentTableLabelProviderTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/AttachmentTableLabelProviderTest.java
index 5226c6e..772880d 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/AttachmentTableLabelProviderTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/AttachmentTableLabelProviderTest.java
@@ -1,46 +1,46 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.tasks.tests.ui.editor;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.TaskAttachment;
-import org.eclipse.mylyn.internal.tasks.ui.editors.AttachmentTableLabelProvider;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-
-/**
- * @author Thomas Ehrnhoefer
- * @author Steffen Pingel
- */
-public class AttachmentTableLabelProviderTest extends TestCase {
-
- public void testGetAttachmentId() {
- TaskAttachment attachment = TaskTestUtil.createMockTaskAttachment("1");
- AttachmentTableLabelProvider labelProvider = new AttachmentTableLabelProvider(null, null);
-
- attachment.setUrl(null);
- assertEquals("", labelProvider.getColumnText(attachment, 5));
-
- attachment.setUrl("");
- assertEquals("", labelProvider.getColumnText(attachment, 5));
-
- attachment.setUrl("http://testi.ng");
- assertEquals("", labelProvider.getColumnText(attachment, 5));
-
- attachment.setUrl("http://testi.ng/?some=parameter");
- assertEquals("", labelProvider.getColumnText(attachment, 5));
-
- attachment.setUrl("http://testi.ng/?id=myid");
- assertEquals("myid", labelProvider.getColumnText(attachment, 5));
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2011 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.tasks.tests.ui.editor;
+
+import junit.framework.TestCase;
+
+import org.eclipse.mylyn.internal.tasks.core.TaskAttachment;
+import org.eclipse.mylyn.internal.tasks.ui.editors.AttachmentTableLabelProvider;
+import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
+
+/**
+ * @author Thomas Ehrnhoefer
+ * @author Steffen Pingel
+ */
+public class AttachmentTableLabelProviderTest extends TestCase {
+
+ public void testGetAttachmentId() {
+ TaskAttachment attachment = TaskTestUtil.createMockTaskAttachment("1");
+ AttachmentTableLabelProvider labelProvider = new AttachmentTableLabelProvider(null, null);
+
+ attachment.setUrl(null);
+ assertEquals("", labelProvider.getColumnText(attachment, 5));
+
+ attachment.setUrl("");
+ assertEquals("", labelProvider.getColumnText(attachment, 5));
+
+ attachment.setUrl("http://testi.ng");
+ assertEquals("", labelProvider.getColumnText(attachment, 5));
+
+ attachment.setUrl("http://testi.ng/?some=parameter");
+ assertEquals("", labelProvider.getColumnText(attachment, 5));
+
+ attachment.setUrl("http://testi.ng/?id=myid");
+ assertEquals("myid", labelProvider.getColumnText(attachment, 5));
+ }
+
+}
diff --git a/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tasks.ui/schema/searchHandler.exsd b/org.eclipse.mylyn.tasks.ui/schema/searchHandler.exsd
index cf95eec..0752cf2 100644
--- a/org.eclipse.mylyn.tasks.ui/schema/searchHandler.exsd
+++ b/org.eclipse.mylyn.tasks.ui/schema/searchHandler.exsd
@@ -1,90 +1,90 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.mylyn.tasks.ui" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.eclipse.mylyn.tasks.ui" id="searchHandler" name="Search Handler"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appInfo>
- <meta.element internal="true" />
- </appInfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="searchHandler"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="searchHandler">
- <complexType>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute kind="java" basedOn="org.eclipse.mylyn.internal.tasks.ui.search.AbstractSearchHandler:"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- 3.7
- </documentation>
- </annotation>
-
-
-
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
- Copyright (c) 2011 Tasktop Technologies.
-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
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.mylyn.tasks.ui" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.mylyn.tasks.ui" id="searchHandler" name="Search Handler"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element internal="true" />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="searchHandler"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="searchHandler">
+ <complexType>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn="org.eclipse.mylyn.internal.tasks.ui.search.AbstractSearchHandler:"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ 3.7
+ </documentation>
+ </annotation>
+
+
+
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+ Copyright (c) 2011 Tasktop Technologies.
+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
+ </documentation>
+ </annotation>
+
+</schema>
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DoubleAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DoubleAttributeEditor.java
index 4f6e832..f332d6d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DoubleAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/DoubleAttributeEditor.java
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.tasks.ui.editors;
-
-import org.apache.commons.lang.StringUtils;
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
-import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
-import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorToolkit;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Thomas Ehrnhoefer
- */
-public class DoubleAttributeEditor extends TextAttributeEditor {
-
- public DoubleAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
- super(manager, taskAttribute);
- }
-
- @Override
- public void createControl(Composite parent, FormToolkit toolkit) {
- super.createControl(parent, toolkit);
- AttributeEditorToolkit.createValidator(this, getText(), getAttributeTypeValidator());
- }
-
- private IInputValidator getAttributeTypeValidator() {
- return new IInputValidator() {
- public String isValid(String newText) {
- if (StringUtils.isNotBlank(newText)) {
- try {
- Double.parseDouble(getText().getText());
- } catch (NumberFormatException e) {
- return Messages.DoubleAttributeEditor_this_field_requires_double_value;
- }
- }
- return null;
- }
- };
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2010 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.tasks.ui.editors;
+
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.jface.dialogs.IInputValidator;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
+import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorToolkit;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Thomas Ehrnhoefer
+ */
+public class DoubleAttributeEditor extends TextAttributeEditor {
+
+ public DoubleAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
+ super(manager, taskAttribute);
+ }
+
+ @Override
+ public void createControl(Composite parent, FormToolkit toolkit) {
+ super.createControl(parent, toolkit);
+ AttributeEditorToolkit.createValidator(this, getText(), getAttributeTypeValidator());
+ }
+
+ private IInputValidator getAttributeTypeValidator() {
+ return new IInputValidator() {
+ public String isValid(String newText) {
+ if (StringUtils.isNotBlank(newText)) {
+ try {
+ Double.parseDouble(getText().getText());
+ } catch (NumberFormatException e) {
+ return Messages.DoubleAttributeEditor_this_field_requires_double_value;
+ }
+ }
+ return null;
+ }
+ };
+ }
+}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/IntegerAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/IntegerAttributeEditor.java
index ea96c62..4d96da1 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/IntegerAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/IntegerAttributeEditor.java
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.tasks.ui.editors;
-
-import org.apache.commons.lang.StringUtils;
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
-import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
-import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorToolkit;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author Thomas Ehrnhoefer
- */
-public class IntegerAttributeEditor extends TextAttributeEditor {
-
- public IntegerAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
- super(manager, taskAttribute);
- }
-
- @Override
- public void createControl(Composite parent, FormToolkit toolkit) {
- super.createControl(parent, toolkit);
- AttributeEditorToolkit.createValidator(this, getText(), getAttributeTypeValidator());
- }
-
- private IInputValidator getAttributeTypeValidator() {
- return new IInputValidator() {
- public String isValid(String newText) {
- if (StringUtils.isNotBlank(newText)) {
- try {
- Integer.parseInt(getText().getText());
- } catch (NumberFormatException e) {
- return Messages.IntegerAttributeEditor_this_field_requires_integer_value;
- }
- }
- return null;
- }
- };
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2010 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.tasks.ui.editors;
+
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.jface.dialogs.IInputValidator;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
+import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorToolkit;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author Thomas Ehrnhoefer
+ */
+public class IntegerAttributeEditor extends TextAttributeEditor {
+
+ public IntegerAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
+ super(manager, taskAttribute);
+ }
+
+ @Override
+ public void createControl(Composite parent, FormToolkit toolkit) {
+ super.createControl(parent, toolkit);
+ AttributeEditorToolkit.createValidator(this, getText(), getAttributeTypeValidator());
+ }
+
+ private IInputValidator getAttributeTypeValidator() {
+ return new IInputValidator() {
+ public String isValid(String newText) {
+ if (StringUtils.isNotBlank(newText)) {
+ try {
+ Integer.parseInt(getText().getText());
+ } catch (NumberFormatException e) {
+ return Messages.IntegerAttributeEditor_this_field_requires_integer_value;
+ }
+ }
+ return null;
+ }
+ };
+ }
+}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityEditor.java
index b07ee51..e9d65ad 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PriorityEditor.java
@@ -1,226 +1,226 @@
-/*******************************************************************************
- * Copyright (c) 2009 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
- * Maarten Meijer - fix for bug 284559
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.tasks.ui.editors;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.mylyn.internal.provisional.commons.ui.CommonImages;
-import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
-import org.eclipse.mylyn.tasks.ui.TasksUiImages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.DisposeEvent;
-import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.swt.widgets.ToolBar;
-import org.eclipse.swt.widgets.ToolItem;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-
-/**
- * @author David Shepherd
- * @author Steffen Pingel
- */
-public class PriorityEditor {
-
- private Control control;
-
- private boolean ignoreNotification;
-
- private Label label;
-
- private Map<String, String> labelByValue;
-
- private Menu menu;
-
- private boolean readOnly;
-
- private ToolItem selectionButton;
-
- private ToolBar toolBar;
-
- private String value;
-
- public PriorityEditor() {
- }
-
- public void createControl(final Composite parent, FormToolkit toolkit) {
- if (isReadOnly()) {
- label = toolkit.createLabel(parent, ""); //$NON-NLS-1$
- setControl(label);
- } else {
- toolBar = new ToolBar(parent, SWT.FLAT);
- selectionButton = new ToolItem(toolBar, SWT.DROP_DOWN);
- selectionButton.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- if (menu == null) {
- createMenu(toolBar);
- }
- Point location = parent.toDisplay(toolBar.getLocation());
- location.y = location.y + selectionButton.getBounds().height;
- if (value != null) {
- MenuItem[] items = menu.getItems();
- for (MenuItem item : items) {
- item.setSelection(value.equals(item.getData()));
- }
- }
- menu.setLocation(location);
- menu.setVisible(true);
- }
- });
- selectionButton.addDisposeListener(new DisposeListener() {
- public void widgetDisposed(DisposeEvent e) {
- if (menu != null) {
- menu.dispose();
- }
- }
- });
- toolkit.adapt(toolBar);
- setControl(toolBar);
- }
- }
-
- private void createMenu(final ToolBar bar) {
- menu = new Menu(bar);
- for (String key : labelByValue.keySet()) {
- final MenuItem item = new MenuItem(menu, SWT.CHECK);
- item.setText(labelByValue.get(key));
- item.setData(key);
- item.setImage(getSmallImage(key));
- item.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- if (!ignoreNotification) {
- value = (String) item.getData();
- valueChanged(value);
- }
- }
- });
- }
- }
-
- public Control getControl() {
- return control;
- }
-
- public Map<String, String> getLabelByValue() {
- return Collections.unmodifiableMap(labelByValue);
- }
-
- private ImageDescriptor getLargeImageDescriptor(PriorityLevel priorityLevel) {
- if (priorityLevel != null) {
- switch (priorityLevel) {
- case P1:
- return CommonImages.PRIORITY_1_LARGE;
- case P2:
- return CommonImages.PRIORITY_2_LARGE;
- case P3:
- return CommonImages.PRIORITY_3_LARGE;
- case P4:
- return CommonImages.PRIORITY_4_LARGE;
- case P5:
- return CommonImages.PRIORITY_5_LARGE;
- }
- }
- return CommonImages.PRIORITY_3_LARGE;
- }
-
- private Image getSmallImage(String value) {
- ImageDescriptor descriptor = getSmallImageDescriptor(value);
- if (descriptor != null) {
- return CommonImages.getImage(descriptor);
- }
- return null;
- }
-
- private ImageDescriptor getSmallImageDescriptor(String value) {
- PriorityLevel priorityLevel = PriorityLevel.fromString(value);
- if (priorityLevel != null) {
- return TasksUiImages.getImageDescriptorForPriority(priorityLevel);
- }
- return null;
- }
-
- public String getToolTipText() {
- if (label != null) {
- return label.getToolTipText();
- }
- if (selectionButton != null) {
- return selectionButton.getToolTipText();
- }
- return null;
- }
-
- public boolean isReadOnly() {
- return readOnly;
- }
-
- public void select(String value, PriorityLevel level) {
- try {
- ignoreNotification = true;
- this.value = value;
- if (label != null) {
- label.setImage(CommonImages.getImage(getLargeImageDescriptor(level)));
- }
- if (selectionButton != null && toolBar != null) {
- selectionButton.setImage(CommonImages.getImage(getLargeImageDescriptor(level)));
- }
- } finally {
- ignoreNotification = false;
- }
- }
-
- private void setControl(Control control) {
- this.control = control;
- }
-
- public void setLabelByValue(Map<String, String> labelByValue) {
- this.labelByValue = new LinkedHashMap<String, String>(labelByValue);
- // the menu will be re-created with updated options when it is requested again
- if (menu != null) {
- menu.dispose();
- }
- menu = null;
- }
-
- public void setReadOnly(boolean readOnly) {
- this.readOnly = readOnly;
- }
-
- public void setToolTipText(String text) {
- if (label != null) {
- label.setToolTipText(text);
- }
- if (selectionButton != null) {
- selectionButton.setToolTipText(text);
- }
- }
-
- protected void valueChanged(String key) {
- }
-
- public String getValue() {
- return value;
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2009 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
+ * Maarten Meijer - fix for bug 284559
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.tasks.ui.editors;
+
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.mylyn.internal.provisional.commons.ui.CommonImages;
+import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
+import org.eclipse.mylyn.tasks.ui.TasksUiImages;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swt.widgets.ToolBar;
+import org.eclipse.swt.widgets.ToolItem;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+
+/**
+ * @author David Shepherd
+ * @author Steffen Pingel
+ */
+public class PriorityEditor {
+
+ private Control control;
+
+ private boolean ignoreNotification;
+
+ private Label label;
+
+ private Map<String, String> labelByValue;
+
+ private Menu menu;
+
+ private boolean readOnly;
+
+ private ToolItem selectionButton;
+
+ private ToolBar toolBar;
+
+ private String value;
+
+ public PriorityEditor() {
+ }
+
+ public void createControl(final Composite parent, FormToolkit toolkit) {
+ if (isReadOnly()) {
+ label = toolkit.createLabel(parent, ""); //$NON-NLS-1$
+ setControl(label);
+ } else {
+ toolBar = new ToolBar(parent, SWT.FLAT);
+ selectionButton = new ToolItem(toolBar, SWT.DROP_DOWN);
+ selectionButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ if (menu == null) {
+ createMenu(toolBar);
+ }
+ Point location = parent.toDisplay(toolBar.getLocation());
+ location.y = location.y + selectionButton.getBounds().height;
+ if (value != null) {
+ MenuItem[] items = menu.getItems();
+ for (MenuItem item : items) {
+ item.setSelection(value.equals(item.getData()));
+ }
+ }
+ menu.setLocation(location);
+ menu.setVisible(true);
+ }
+ });
+ selectionButton.addDisposeListener(new DisposeListener() {
+ public void widgetDisposed(DisposeEvent e) {
+ if (menu != null) {
+ menu.dispose();
+ }
+ }
+ });
+ toolkit.adapt(toolBar);
+ setControl(toolBar);
+ }
+ }
+
+ private void createMenu(final ToolBar bar) {
+ menu = new Menu(bar);
+ for (String key : labelByValue.keySet()) {
+ final MenuItem item = new MenuItem(menu, SWT.CHECK);
+ item.setText(labelByValue.get(key));
+ item.setData(key);
+ item.setImage(getSmallImage(key));
+ item.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ if (!ignoreNotification) {
+ value = (String) item.getData();
+ valueChanged(value);
+ }
+ }
+ });
+ }
+ }
+
+ public Control getControl() {
+ return control;
+ }
+
+ public Map<String, String> getLabelByValue() {
+ return Collections.unmodifiableMap(labelByValue);
+ }
+
+ private ImageDescriptor getLargeImageDescriptor(PriorityLevel priorityLevel) {
+ if (priorityLevel != null) {
+ switch (priorityLevel) {
+ case P1:
+ return CommonImages.PRIORITY_1_LARGE;
+ case P2:
+ return CommonImages.PRIORITY_2_LARGE;
+ case P3:
+ return CommonImages.PRIORITY_3_LARGE;
+ case P4:
+ return CommonImages.PRIORITY_4_LARGE;
+ case P5:
+ return CommonImages.PRIORITY_5_LARGE;
+ }
+ }
+ return CommonImages.PRIORITY_3_LARGE;
+ }
+
+ private Image getSmallImage(String value) {
+ ImageDescriptor descriptor = getSmallImageDescriptor(value);
+ if (descriptor != null) {
+ return CommonImages.getImage(descriptor);
+ }
+ return null;
+ }
+
+ private ImageDescriptor getSmallImageDescriptor(String value) {
+ PriorityLevel priorityLevel = PriorityLevel.fromString(value);
+ if (priorityLevel != null) {
+ return TasksUiImages.getImageDescriptorForPriority(priorityLevel);
+ }
+ return null;
+ }
+
+ public String getToolTipText() {
+ if (label != null) {
+ return label.getToolTipText();
+ }
+ if (selectionButton != null) {
+ return selectionButton.getToolTipText();
+ }
+ return null;
+ }
+
+ public boolean isReadOnly() {
+ return readOnly;
+ }
+
+ public void select(String value, PriorityLevel level) {
+ try {
+ ignoreNotification = true;
+ this.value = value;
+ if (label != null) {
+ label.setImage(CommonImages.getImage(getLargeImageDescriptor(level)));
+ }
+ if (selectionButton != null && toolBar != null) {
+ selectionButton.setImage(CommonImages.getImage(getLargeImageDescriptor(level)));
+ }
+ } finally {
+ ignoreNotification = false;
+ }
+ }
+
+ private void setControl(Control control) {
+ this.control = control;
+ }
+
+ public void setLabelByValue(Map<String, String> labelByValue) {
+ this.labelByValue = new LinkedHashMap<String, String>(labelByValue);
+ // the menu will be re-created with updated options when it is requested again
+ if (menu != null) {
+ menu.dispose();
+ }
+ menu = null;
+ }
+
+ public void setReadOnly(boolean readOnly) {
+ this.readOnly = readOnly;
+ }
+
+ public void setToolTipText(String text) {
+ if (label != null) {
+ label.setToolTipText(text);
+ }
+ if (selectionButton != null) {
+ selectionButton.setToolTipText(text);
+ }
+ }
+
+ protected void valueChanged(String key) {
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/AbstractSearchHandler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/AbstractSearchHandler.java
index 328613d..5f3abe7 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/AbstractSearchHandler.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/AbstractSearchHandler.java
@@ -1,80 +1,80 @@
-/*******************************************************************************
- * Copyright (c) 2011 Tasktop Technologies.
- * 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.tasks.ui.search;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.dialogs.PatternFilter;
-
-/**
- * An abstract search handler, that enables implementors to augment the default task list filtering capabilities.
- *
- * @author David Green
- */
-public abstract class AbstractSearchHandler {
-
- public interface IFilterChangeListener {
- public void filterChanged();
- }
-
- private final List<IFilterChangeListener> listeners = new ArrayList<IFilterChangeListener>();
-
- public void addFilterChangeListener(IFilterChangeListener listener) {
- listeners.add(listener);
- }
-
- public void removeFilterChangeListener(IFilterChangeListener listener) {
- listeners.remove(listener);
- }
-
- protected void fireFilterChanged() {
- if (listeners.isEmpty()) {
- return;
- }
- for (IFilterChangeListener listener : listeners.toArray(new IFilterChangeListener[listeners.size()])) {
- listener.filterChanged();
- }
- }
-
- /**
- * Called when UI is being created for the tasks list, gives the search handler an opportunity to contribute
- * additional search controls.
- *
- * @param container
- * the container in which the search controls should be created
- * @return the composite, or null if there are no additional controls
- */
- public abstract Composite createSearchComposite(Composite container);
-
- /**
- * Creates a filter for use with the task list.
- *
- * @return the filter, must not return null.
- */
- public abstract PatternFilter createFilter();
-
- /**
- * Disposes of any resources that should be explicitly released when no longer needed. After calling this method,
- * the search handler is no longer usable and its behaviour is undefined.
- */
- public abstract void dispose();
-
- /**
- * Adapts the text search control. The default implementation does nothing.
- */
- public void adaptTextSearchControl(Text textControl) {
-
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2011 Tasktop Technologies.
+ * 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.tasks.ui.search;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.dialogs.PatternFilter;
+
+/**
+ * An abstract search handler, that enables implementors to augment the default task list filtering capabilities.
+ *
+ * @author David Green
+ */
+public abstract class AbstractSearchHandler {
+
+ public interface IFilterChangeListener {
+ public void filterChanged();
+ }
+
+ private final List<IFilterChangeListener> listeners = new ArrayList<IFilterChangeListener>();
+
+ public void addFilterChangeListener(IFilterChangeListener listener) {
+ listeners.add(listener);
+ }
+
+ public void removeFilterChangeListener(IFilterChangeListener listener) {
+ listeners.remove(listener);
+ }
+
+ protected void fireFilterChanged() {
+ if (listeners.isEmpty()) {
+ return;
+ }
+ for (IFilterChangeListener listener : listeners.toArray(new IFilterChangeListener[listeners.size()])) {
+ listener.filterChanged();
+ }
+ }
+
+ /**
+ * Called when UI is being created for the tasks list, gives the search handler an opportunity to contribute
+ * additional search controls.
+ *
+ * @param container
+ * the container in which the search controls should be created
+ * @return the composite, or null if there are no additional controls
+ */
+ public abstract Composite createSearchComposite(Composite container);
+
+ /**
+ * Creates a filter for use with the task list.
+ *
+ * @return the filter, must not return null.
+ */
+ public abstract PatternFilter createFilter();
+
+ /**
+ * Disposes of any resources that should be explicitly released when no longer needed. After calling this method,
+ * the search handler is no longer usable and its behaviour is undefined.
+ */
+ public abstract void dispose();
+
+ /**
+ * Adapts the text search control. The default implementation does nothing.
+ */
+ public void adaptTextSearchControl(Text textControl) {
+
+ }
+}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/DefaultSearchHandler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/DefaultSearchHandler.java
index 2b0b6bc..38e67b3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/DefaultSearchHandler.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/DefaultSearchHandler.java
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * Copyright (c) 2011 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.tasks.ui.search;
-
-import org.eclipse.mylyn.internal.provisional.commons.ui.SubstringPatternFilter;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.dialogs.PatternFilter;
-
-/**
- * The default implementation of a search handler
- *
- * @author David Green
- * @see SubstringPatternFilter
- */
-public class DefaultSearchHandler extends AbstractSearchHandler {
-
- @Override
- public PatternFilter createFilter() {
- return new SubstringPatternFilter();
- }
-
- @Override
- public Composite createSearchComposite(Composite container) {
- // no additional controls
- return null;
- }
-
- @Override
- public void dispose() {
- // nothing to do
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2011 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.tasks.ui.search;
+
+import org.eclipse.mylyn.internal.provisional.commons.ui.SubstringPatternFilter;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.dialogs.PatternFilter;
+
+/**
+ * The default implementation of a search handler
+ *
+ * @author David Green
+ * @see SubstringPatternFilter
+ */
+public class DefaultSearchHandler extends AbstractSearchHandler {
+
+ @Override
+ public PatternFilter createFilter() {
+ return new SubstringPatternFilter();
+ }
+
+ @Override
+ public Composite createSearchComposite(Composite container) {
+ // no additional controls
+ return null;
+ }
+
+ @Override
+ public void dispose() {
+ // nothing to do
+ }
+
+}
diff --git a/org.eclipse.mylyn.test-feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.test-feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.test-feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tests.util/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.tests.util/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.tests.util/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/UrlBuilder.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/UrlBuilder.java
index f0698ab..66299e8 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/UrlBuilder.java
+++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/UrlBuilder.java
@@ -1,76 +1,76 @@
-/*******************************************************************************
- * Copyright (c) 2009, 2010 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.tests.util;
-
-import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * A builder class for constructing {@link TaskRepository task repository} URLs.
- *
- * @author David Green
- * @since 3.5
- */
-public class UrlBuilder {
- private final StringBuilder buf = new StringBuilder(512);
-
- private UrlBuilder() {
- }
-
- public static UrlBuilder build(TaskRepository repository) {
- UrlBuilder builder = new UrlBuilder();
- String url = repository.getRepositoryUrl();
- if (url.endsWith("/")) {
- url = url.substring(0, url.length() - 1);
- }
- return builder.append(url);
- }
-
- public UrlBuilder append(String urlSegment) {
- buf.append(urlSegment);
- return this;
- }
-
- public UrlBuilder parameter(String name, Object value) {
- return parameter(name, value == null ? null : value.toString());
- }
-
- public UrlBuilder parameter(String name, String value) {
- int indexOfQ = buf.indexOf("?");
- if (indexOfQ == -1) {
- buf.append("?");
- } else {
- buf.append("&");
- }
- buf.append(name);
- buf.append('=');
- if (value != null) {
- buf.append(encode(value));
- }
- return this;
- }
-
- private String encode(String value) {
- try {
- return URLEncoder.encode(value, "UTF-8");
- } catch (UnsupportedEncodingException e) {
- throw new IllegalStateException(e);
- }
- }
-
- @Override
- public String toString() {
- return buf.toString();
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2009, 2010 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.tests.util;
+
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+
+/**
+ * A builder class for constructing {@link TaskRepository task repository} URLs.
+ *
+ * @author David Green
+ * @since 3.5
+ */
+public class UrlBuilder {
+ private final StringBuilder buf = new StringBuilder(512);
+
+ private UrlBuilder() {
+ }
+
+ public static UrlBuilder build(TaskRepository repository) {
+ UrlBuilder builder = new UrlBuilder();
+ String url = repository.getRepositoryUrl();
+ if (url.endsWith("/")) {
+ url = url.substring(0, url.length() - 1);
+ }
+ return builder.append(url);
+ }
+
+ public UrlBuilder append(String urlSegment) {
+ buf.append(urlSegment);
+ return this;
+ }
+
+ public UrlBuilder parameter(String name, Object value) {
+ return parameter(name, value == null ? null : value.toString());
+ }
+
+ public UrlBuilder parameter(String name, String value) {
+ int indexOfQ = buf.indexOf("?");
+ if (indexOfQ == -1) {
+ buf.append("?");
+ } else {
+ buf.append("&");
+ }
+ buf.append(name);
+ buf.append('=');
+ if (value != null) {
+ buf.append(encode(value));
+ }
+ return this;
+ }
+
+ private String encode(String value) {
+ try {
+ return URLEncoder.encode(value, "UTF-8");
+ } catch (UnsupportedEncodingException e) {
+ throw new IllegalStateException(e);
+ }
+ }
+
+ @Override
+ public String toString() {
+ return buf.toString();
+ }
+
+}
diff --git a/org.eclipse.mylyn.trac-feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.trac-feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.trac-feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.trac.core/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.trac.core/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.trac.core/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.trac.tests/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.trac.tests/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.trac.tests/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.trac.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.trac.ui/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.trac.ui/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n