Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-11-20 16:35:10 -0500
committerspingel2009-11-20 16:35:10 -0500
commita7fbf741bb004c1ef073493497997918971ba69e (patch)
tree2a133823ac39490c5ed33008965956520b6aef9b /org.eclipse.mylyn.tasks.core
parent4e31fee20e706aabb095ec0628d6c6bbeef3eb12 (diff)
downloadorg.eclipse.mylyn.tasks-a7fbf741bb004c1ef073493497997918971ba69e.tar.gz
org.eclipse.mylyn.tasks-a7fbf741bb004c1ef073493497997918971ba69e.tar.xz
org.eclipse.mylyn.tasks-a7fbf741bb004c1ef073493497997918971ba69e.zip
RESOLVED - bug 247595: extend TaskMapper with default schema
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247595
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/DefaultTaskSchema.java115
1 files changed, 61 insertions, 54 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/DefaultTaskSchema.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/DefaultTaskSchema.java
index 28b851c6b..2dc021352 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/DefaultTaskSchema.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/DefaultTaskSchema.java
@@ -120,112 +120,119 @@ public class DefaultTaskSchema {
return fieldByKey.get(taskKey);
}
- public static final Field ADD_SELF_CC = createField(TaskAttribute.ADD_SELF_CC, Messages.DefaultTaskSchema_Add_Self_to_CC_Label,
- TaskAttribute.TYPE_BOOLEAN);
+ public static final Field ADD_SELF_CC = createField(TaskAttribute.ADD_SELF_CC,
+ Messages.DefaultTaskSchema_Add_Self_to_CC_Label, TaskAttribute.TYPE_BOOLEAN);
- public static final Field ATTACHMENT_AUTHOR = createField(TaskAttribute.ATTACHMENT_AUTHOR, Messages.DefaultTaskSchema_Author_Label,
- TaskAttribute.TYPE_PERSON);
+ public static final Field ATTACHMENT_AUTHOR = createField(TaskAttribute.ATTACHMENT_AUTHOR,
+ Messages.DefaultTaskSchema_Author_Label, TaskAttribute.TYPE_PERSON);
public static final Field ATTACHMENT_CONTENT_TYPE = createField(TaskAttribute.ATTACHMENT_CONTENT_TYPE,
Messages.DefaultTaskSchema_Content_Type_Label, TaskAttribute.TYPE_SHORT_TEXT);
- public static final Field ATTACHMENT_DATE = createField(TaskAttribute.ATTACHMENT_DATE, Messages.DefaultTaskSchema_Created_Label,
- TaskAttribute.TYPE_DATETIME);
+ public static final Field ATTACHMENT_DATE = createField(TaskAttribute.ATTACHMENT_DATE,
+ Messages.DefaultTaskSchema_Created_Label, TaskAttribute.TYPE_DATETIME, Flag.READ_ONLY);
- public static final Field ATTACHMENT_DESCRIPTION = createField(TaskAttribute.ATTACHMENT_DESCRIPTION, Messages.DefaultTaskSchema_Description_Label,
- TaskAttribute.TYPE_SHORT_RICH_TEXT);
+ public static final Field ATTACHMENT_DESCRIPTION = createField(TaskAttribute.ATTACHMENT_DESCRIPTION,
+ Messages.DefaultTaskSchema_Description_Label, TaskAttribute.TYPE_SHORT_RICH_TEXT);
- public static final Field ATTACHMENT_FILENAME = createField(TaskAttribute.ATTACHMENT_FILENAME, Messages.DefaultTaskSchema_Filename_Label,
- TaskAttribute.TYPE_SHORT_TEXT);
+ public static final Field ATTACHMENT_FILENAME = createField(TaskAttribute.ATTACHMENT_FILENAME,
+ Messages.DefaultTaskSchema_Filename_Label, TaskAttribute.TYPE_SHORT_TEXT);
- public static final Field ATTACHMENT_ID = createField(TaskAttribute.ATTACHMENT_ID, Messages.DefaultTaskSchema_ID_Label,
- TaskAttribute.TYPE_SHORT_TEXT, Flag.READ_ONLY);
+ public static final Field ATTACHMENT_ID = createField(TaskAttribute.ATTACHMENT_ID,
+ Messages.DefaultTaskSchema_ID_Label, TaskAttribute.TYPE_SHORT_TEXT, Flag.READ_ONLY);
public static final Field ATTACHMENT_IS_DEPRECATED = createField(TaskAttribute.ATTACHMENT_IS_DEPRECATED,
Messages.DefaultTaskSchema_Deprecated_Label, TaskAttribute.TYPE_BOOLEAN);
- public static final Field ATTACHMENT_IS_PATCH = createField(TaskAttribute.ATTACHMENT_IS_PATCH, Messages.DefaultTaskSchema_Patch_Label,
- TaskAttribute.TYPE_BOOLEAN);
+ public static final Field ATTACHMENT_IS_PATCH = createField(TaskAttribute.ATTACHMENT_IS_PATCH,
+ Messages.DefaultTaskSchema_Patch_Label, TaskAttribute.TYPE_BOOLEAN);
- public static final Field ATTACHMENT_SIZE = createField(TaskAttribute.ATTACHMENT_SIZE, Messages.DefaultTaskSchema_Size_Label,
- TaskAttribute.TYPE_LONG, Flag.READ_ONLY);
+ public static final Field ATTACHMENT_SIZE = createField(TaskAttribute.ATTACHMENT_SIZE,
+ Messages.DefaultTaskSchema_Size_Label, TaskAttribute.TYPE_LONG, Flag.READ_ONLY);
- public static final Field ATTACHMENT_URL = createField(TaskAttribute.ATTACHMENT_URL, Messages.DefaultTaskSchema_URL_Label, TaskAttribute.TYPE_URL);
+ public static final Field ATTACHMENT_URL = createField(TaskAttribute.ATTACHMENT_URL,
+ Messages.DefaultTaskSchema_URL_Label, TaskAttribute.TYPE_URL);
- public static final Field COMMENT_ATTACHMENT_ID = createField(TaskAttribute.COMMENT_ATTACHMENT_ID, Messages.DefaultTaskSchema_Attachment_ID_Label,
- TaskAttribute.TYPE_SHORT_TEXT, Flag.READ_ONLY);
+ public static final Field COMMENT_ATTACHMENT_ID = createField(TaskAttribute.COMMENT_ATTACHMENT_ID,
+ Messages.DefaultTaskSchema_Attachment_ID_Label, TaskAttribute.TYPE_SHORT_TEXT, Flag.READ_ONLY);
- public static final Field COMMENT_AUTHOR = createField(TaskAttribute.COMMENT_AUTHOR, Messages.DefaultTaskSchema_Author_Label,
- TaskAttribute.TYPE_PERSON);
+ public static final Field COMMENT_AUTHOR = createField(TaskAttribute.COMMENT_AUTHOR,
+ Messages.DefaultTaskSchema_Author_Label, TaskAttribute.TYPE_PERSON, Flag.READ_ONLY);
- public static final Field COMMENT_DATE = createField(TaskAttribute.COMMENT_DATE, Messages.DefaultTaskSchema_Created_Label,
- TaskAttribute.TYPE_DATETIME);
+ public static final Field COMMENT_DATE = createField(TaskAttribute.COMMENT_DATE,
+ Messages.DefaultTaskSchema_Created_Label, TaskAttribute.TYPE_DATETIME, Flag.READ_ONLY);
- public static final Field COMMENT_HAS_ATTACHMENT = createField(TaskAttribute.COMMENT_HAS_ATTACHMENT, Messages.DefaultTaskSchema_Attachment_Label,
- TaskAttribute.TYPE_BOOLEAN);
+ public static final Field COMMENT_HAS_ATTACHMENT = createField(TaskAttribute.COMMENT_HAS_ATTACHMENT,
+ Messages.DefaultTaskSchema_Attachment_Label, TaskAttribute.TYPE_BOOLEAN, Flag.READ_ONLY);
- public static final Field COMMENT_NUMBER = createField(TaskAttribute.COMMENT_NUMBER, Messages.DefaultTaskSchema_Number_Label,
- TaskAttribute.TYPE_INTEGER, Flag.READ_ONLY);
+ public static final Field COMMENT_NUMBER = createField(TaskAttribute.COMMENT_NUMBER,
+ Messages.DefaultTaskSchema_Number_Label, TaskAttribute.TYPE_INTEGER, Flag.READ_ONLY);
- public static final Field COMMENT_TEXT = createField(TaskAttribute.COMMENT_TEXT, Messages.DefaultTaskSchema_Description_Label,
- TaskAttribute.TYPE_LONG_RICH_TEXT);
+ public static final Field COMMENT_TEXT = createField(TaskAttribute.COMMENT_TEXT,
+ Messages.DefaultTaskSchema_Description_Label, TaskAttribute.TYPE_LONG_RICH_TEXT, Flag.READ_ONLY);
- public static final Field COMMENT_URL = createField(TaskAttribute.COMMENT_URL, Messages.DefaultTaskSchema_URL_Label, TaskAttribute.TYPE_URL);
+ public static final Field COMMENT_URL = createField(TaskAttribute.COMMENT_URL,
+ Messages.DefaultTaskSchema_URL_Label, TaskAttribute.TYPE_URL, Flag.READ_ONLY);
- public static final Field COMPONENT = createField(TaskAttribute.COMPONENT, Messages.DefaultTaskSchema_Component_Label,
- TaskAttribute.TYPE_SINGLE_SELECT, Flag.ATTRIBUTE);
+ public static final Field COMPONENT = createField(TaskAttribute.COMPONENT,
+ Messages.DefaultTaskSchema_Component_Label, TaskAttribute.TYPE_SINGLE_SELECT, Flag.ATTRIBUTE);
- public static final Field DATE_COMPLETION = createField(TaskAttribute.DATE_COMPLETION, Messages.DefaultTaskSchema_Completion_Label,
- TaskAttribute.TYPE_DATE, Flag.READ_ONLY);
+ public static final Field DATE_COMPLETION = createField(TaskAttribute.DATE_COMPLETION,
+ Messages.DefaultTaskSchema_Completion_Label, TaskAttribute.TYPE_DATE, Flag.READ_ONLY);
- public static final Field DATE_CREATION = createField(TaskAttribute.DATE_CREATION, Messages.DefaultTaskSchema_Created_Label,
- TaskAttribute.TYPE_DATE, Flag.READ_ONLY);
+ public static final Field DATE_CREATION = createField(TaskAttribute.DATE_CREATION,
+ Messages.DefaultTaskSchema_Created_Label, TaskAttribute.TYPE_DATE, Flag.READ_ONLY);
- public static final Field DATE_DUE = createField(TaskAttribute.DATE_DUE, Messages.DefaultTaskSchema_Due_Label, TaskAttribute.TYPE_DATE);
+ public static final Field DATE_DUE = createField(TaskAttribute.DATE_DUE, Messages.DefaultTaskSchema_Due_Label,
+ TaskAttribute.TYPE_DATE);
- public static final Field DATE_MODIFICATION = createField(TaskAttribute.DATE_MODIFICATION, Messages.DefaultTaskSchema_Modified_Label,
- TaskAttribute.TYPE_DATE, Flag.READ_ONLY);
+ public static final Field DATE_MODIFICATION = createField(TaskAttribute.DATE_MODIFICATION,
+ Messages.DefaultTaskSchema_Modified_Label, TaskAttribute.TYPE_DATE, Flag.READ_ONLY);
- public static final Field DESCRIPTION = createField(TaskAttribute.DESCRIPTION, Messages.DefaultTaskSchema_Description_Label,
- TaskAttribute.TYPE_LONG_RICH_TEXT);
+ public static final Field DESCRIPTION = createField(TaskAttribute.DESCRIPTION,
+ Messages.DefaultTaskSchema_Description_Label, TaskAttribute.TYPE_LONG_RICH_TEXT);
public static final Field KEYWORDS = createField(TaskAttribute.KEYWORDS, Messages.DefaultTaskSchema_Keywords_Label,
TaskAttribute.TYPE_MULTI_SELECT, Flag.ATTRIBUTE);
+ public static final Field NEW_COMMENT = createField(TaskAttribute.COMMENT_NEW,
+ Messages.DefaultTaskSchema_Rank_Label, TaskAttribute.TYPE_LONG_RICH_TEXT);
+
public static final Field PRIORITY = createField(TaskAttribute.PRIORITY, Messages.DefaultTaskSchema_Priority_Label,
TaskAttribute.TYPE_SINGLE_SELECT, Flag.ATTRIBUTE);
public static final Field PRODUCT = createField(TaskAttribute.PRIORITY, Messages.DefaultTaskSchema_Product_Label,
TaskAttribute.TYPE_SINGLE_SELECT, Flag.ATTRIBUTE);
- public static final Field RANK = createField(TaskAttribute.RANK, Messages.DefaultTaskSchema_Rank_Label, TaskAttribute.TYPE_INTEGER, Flag.READ_ONLY);
+ public static final Field RANK = createField(TaskAttribute.RANK, Messages.DefaultTaskSchema_Rank_Label,
+ TaskAttribute.TYPE_INTEGER, Flag.READ_ONLY);
- public static final Field RESOLUTION = createField(TaskAttribute.RESOLUTION, Messages.DefaultTaskSchema_Resolution_Label,
- TaskAttribute.TYPE_SINGLE_SELECT, Flag.READ_ONLY);
+ public static final Field RESOLUTION = createField(TaskAttribute.RESOLUTION,
+ Messages.DefaultTaskSchema_Resolution_Label, TaskAttribute.TYPE_SINGLE_SELECT, Flag.READ_ONLY);
public static final Field SEVERITY = createField(TaskAttribute.SEVERITY, Messages.DefaultTaskSchema_Severity_Label,
TaskAttribute.TYPE_SINGLE_SELECT, Flag.ATTRIBUTE);
- public static final Field STATUS = createField(TaskAttribute.STATUS, Messages.DefaultTaskSchema_Status_Label, TaskAttribute.TYPE_SHORT_TEXT,
- Flag.READ_ONLY);
+ public static final Field STATUS = createField(TaskAttribute.STATUS, Messages.DefaultTaskSchema_Status_Label,
+ TaskAttribute.TYPE_SHORT_TEXT, Flag.READ_ONLY);
public static final Field SUMMARY = createField(TaskAttribute.SUMMARY, Messages.DefaultTaskSchema_Summary_Label,
TaskAttribute.TYPE_SHORT_RICH_TEXT);
- public static final Field TASK_KEY = createField(TaskAttribute.TASK_KEY, Messages.DefaultTaskSchema_Key_Label, TaskAttribute.TYPE_SHORT_TEXT,
- Flag.READ_ONLY);
+ public static final Field TASK_KEY = createField(TaskAttribute.TASK_KEY, Messages.DefaultTaskSchema_Key_Label,
+ TaskAttribute.TYPE_SHORT_TEXT, Flag.READ_ONLY);
public static final Field TASK_KIND = createField(TaskAttribute.TASK_KIND, Messages.DefaultTaskSchema_Kind_Label,
TaskAttribute.TYPE_SINGLE_SELECT, Flag.ATTRIBUTE);
- public static final Field USER_ASSIGNED = createField(TaskAttribute.USER_ASSIGNED, Messages.DefaultTaskSchema_Owner_Label,
- TaskAttribute.TYPE_PERSON, Flag.PEOPLE);
+ public static final Field USER_ASSIGNED = createField(TaskAttribute.USER_ASSIGNED,
+ Messages.DefaultTaskSchema_Owner_Label, TaskAttribute.TYPE_PERSON, Flag.PEOPLE);
- public static final Field USER_REPORTER = createField(TaskAttribute.USER_REPORTER, Messages.DefaultTaskSchema_Reporter_Label,
- TaskAttribute.TYPE_PERSON, Flag.PEOPLE);
+ public static final Field USER_REPORTER = createField(TaskAttribute.USER_REPORTER,
+ Messages.DefaultTaskSchema_Reporter_Label, TaskAttribute.TYPE_PERSON, Flag.PEOPLE);
- public static final Field TASK_URL = createField(TaskAttribute.TASK_URL, Messages.DefaultTaskSchema_URL_Label, TaskAttribute.TYPE_URL,
- Flag.READ_ONLY);
+ public static final Field TASK_URL = createField(TaskAttribute.TASK_URL, Messages.DefaultTaskSchema_URL_Label,
+ TaskAttribute.TYPE_URL, Flag.READ_ONLY);
private static Field createField(String key, String label, String type) {
return createField(key, label, type, null);

Back to the top