Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Green2013-10-10 15:31:49 -0400
committerGerrit Code Review @ Eclipse.org2013-10-10 16:23:40 -0400
commitf6fef9e7c49d951ac5d15ff30b664ef6d031d9ea (patch)
tree62ef9ba7de9f4b7c19bcc791552c9bd730106f0c
parent46ae3b2fc7da492fcb29aac4da1668aa6cdee2dd (diff)
downloadorg.eclipse.mylyn.tasks-f6fef9e7c49d951ac5d15ff30b664ef6d031d9ea.tar.gz
org.eclipse.mylyn.tasks-f6fef9e7c49d951ac5d15ff30b664ef6d031d9ea.tar.xz
org.eclipse.mylyn.tasks-f6fef9e7c49d951ac5d15ff30b664ef6d031d9ea.zip
419179: provide a task attribute metadata key for Internet media type
Change-Id: I6898eccba3eb58722e438c366b02fbb1b5229e96 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419179
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java
index d0fc42623..0016eb5e5 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.Assert;
* @author Rob Elves
* @author Steffen Pingel
* @author Miles Parker
+ * @author David Green
* @since 3.0
*/
public final class TaskAttribute {
@@ -118,6 +119,20 @@ public final class TaskAttribute {
public static final String META_ATTRIBUTE_TYPE = "task.meta.type"; //$NON-NLS-1$
+ /**
+ * A key for {@link TaskAttributeMetaData} that is used for specifying the media type of a
+ * {@link #TYPE_LONG_RICH_TEXT} or {@link #TYPE_SHORT_RICH_TEXT}. The media type if specified must be a valid <a
+ * href="http://en.wikipedia.org/wiki/Internet_media_type">Internet Media Type</a> (also known as Content-Type,
+ * mime-type) according to <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a> and <a
+ * href="http://www.ietf.org/rfc/rfc2046.txt">RFC 2046</a>.
+ *
+ * @see #TYPE_LONG_RICH_TEXT
+ * @see #TYPE_SHORT_RICH_TEXT
+ * @see #META_ATTRIBUTE_TYPE
+ * @since 3.10
+ */
+ public static final String META_ATTRIBUTE_MEDIA_TYPE = "task.meta.mediaType"; //$NON-NLS-1$
+
public static final String META_DEFAULT_OPTION = "task.meta.defaultOption"; //$NON-NLS-1$
// public static final String META_DETAIL_LEVEL = "task.meta.detailLevel";
@@ -242,6 +257,7 @@ public final class TaskAttribute {
/**
* @since 3.0
+ * @see #META_ATTRIBUTE_MEDIA_TYPE
*/
public static final String TYPE_LONG_RICH_TEXT = "longRichText"; //$NON-NLS-1$
@@ -264,6 +280,7 @@ public final class TaskAttribute {
/**
* @since 3.0
+ * @see #META_ATTRIBUTE_MEDIA_TYPE
*/
public static final String TYPE_SHORT_RICH_TEXT = "shortRichText"; //$NON-NLS-1$

Back to the top