Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 339171 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java (+6 lines)
Lines 235-240 Link Here
235
				attribute.getMetaData().setType(bugAttribute.getType());
235
				attribute.getMetaData().setType(bugAttribute.getType());
236
				attribute.getMetaData().setReadOnly(bugAttribute.isReadOnly());
236
				attribute.getMetaData().setReadOnly(bugAttribute.isReadOnly());
237
				attribute.getMetaData().setKind(bugAttribute.getKind());
237
				attribute.getMetaData().setKind(bugAttribute.getKind());
238
				if (bugAttribute == BugzillaAttribute.DEPENDSON) {
239
					attribute.getMetaData().putValue(TaskAttribute.META_IS_LIST, "true"); //$NON-NLS-1$
240
				}
238
			}
241
			}
239
		}
242
		}
240
	}
243
	}
Lines 757-762 Link Here
757
				.setKind(key.getKind())
760
				.setKind(key.getKind())
758
				.setLabel(key.toString())
761
				.setLabel(key.toString())
759
				.setType(key.getType());
762
				.setType(key.getType());
763
		if (key == BugzillaAttribute.DEPENDSON) {
764
			attribute.getMetaData().putValue(TaskAttribute.META_IS_LIST, "true"); //$NON-NLS-1$
765
		}
760
		return attribute;
766
		return attribute;
761
	}
767
	}
762
768
(-)src/org/eclipse/mylyn/internal/tasks/core/data/TaskAttributeDiff.java (+9 lines)
Lines 12-17 Link Here
12
package org.eclipse.mylyn.internal.tasks.core.data;
12
package org.eclipse.mylyn.internal.tasks.core.data;
13
13
14
import java.util.ArrayList;
14
import java.util.ArrayList;
15
import java.util.Arrays;
15
import java.util.Collections;
16
import java.util.Collections;
16
import java.util.List;
17
import java.util.List;
17
18
Lines 87-92 Link Here
87
	}
88
	}
88
89
89
	public List<String> getNewValues() {
90
	public List<String> getNewValues() {
91
		if (newValues.size() == 1 && newAttribute != null
92
				&& Boolean.parseBoolean(newAttribute.getMetaData().getValue(TaskAttribute.META_IS_LIST))) {
93
			return Arrays.asList(newValues.get(0).split(", ")); //$NON-NLS-1$
94
		}
90
		return newValues;
95
		return newValues;
91
	}
96
	}
92
97
Lines 95-100 Link Here
95
	}
100
	}
96
101
97
	public List<String> getOldValues() {
102
	public List<String> getOldValues() {
103
		if (oldValues.size() == 1 && oldAttribute != null
104
				&& Boolean.parseBoolean(oldAttribute.getMetaData().getValue(TaskAttribute.META_IS_LIST))) {
105
			return Arrays.asList(oldValues.get(0).split(", ")); //$NON-NLS-1$
106
		}
98
		return oldValues;
107
		return oldValues;
99
	}
108
	}
100
109
(-)src/org/eclipse/mylyn/tasks/core/data/TaskAttribute.java (+7 lines)
Lines 126-131 Link Here
126
	public static final String META_READ_ONLY = "task.meta.readOnly"; //$NON-NLS-1$
126
	public static final String META_READ_ONLY = "task.meta.readOnly"; //$NON-NLS-1$
127
127
128
	/**
128
	/**
129
	 * Boolean indicating whether attribute value should be interpreted as a list delimited by ", ".
130
	 * 
131
	 * @since 3.6
132
	 */
133
	public static final String META_IS_LIST = "task.meta.isList"; //$NON-NLS-1$
134
135
	/**
129
	 * Key for the meta datum that determines if an attribute is disabled. This is used to indicate that an attribute
136
	 * Key for the meta datum that determines if an attribute is disabled. This is used to indicate that an attribute
130
	 * should not be modified, e.g. due to work-flow state but it may still be generally writeable.
137
	 * should not be modified, e.g. due to work-flow state but it may still be generally writeable.
131
	 * 
138
	 * 

Return to bug 339171