Community
Participate
Working Groups
attribute.getMetaData().setType(bugAttribute.getType());
attribute.getMetaData().setReadOnly(bugAttribute.isReadOnly());
attribute.getMetaData().setKind(bugAttribute.getKind());
if (bugAttribute == BugzillaAttribute.DEPENDSON) {
attribute.getMetaData().putValue(TaskAttribute.META_IS_LIST, "true"); //$NON-NLS-1$
}
.setKind(key.getKind())
.setLabel(key.toString())
.setType(key.getType());
if (key == BugzillaAttribute.DEPENDSON) {
return attribute;
package org.eclipse.mylyn.internal.tasks.core.data;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public List<String> getNewValues() {
if (newValues.size() == 1 && newAttribute != null
&& Boolean.parseBoolean(newAttribute.getMetaData().getValue(TaskAttribute.META_IS_LIST))) {
return Arrays.asList(newValues.get(0).split(", ")); //$NON-NLS-1$
return newValues;
public List<String> getOldValues() {
if (oldValues.size() == 1 && oldAttribute != null
&& Boolean.parseBoolean(oldAttribute.getMetaData().getValue(TaskAttribute.META_IS_LIST))) {
return Arrays.asList(oldValues.get(0).split(", ")); //$NON-NLS-1$
return oldValues;
public static final String META_READ_ONLY = "task.meta.readOnly"; //$NON-NLS-1$
/**
* Boolean indicating whether attribute value should be interpreted as a list delimited by ", ".
*
* @since 3.6
*/
public static final String META_IS_LIST = "task.meta.isList"; //$NON-NLS-1$
* Key for the meta datum that determines if an attribute is disabled. This is used to indicate that an attribute
* should not be modified, e.g. due to work-flow state but it may still be generally writeable.