Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2006-11-15 21:30:53 -0500
committerspingel2006-11-15 21:30:53 -0500
commit883b83c651c107ec75507ab430260935773be196 (patch)
treeaeec5dc13cdc2c4847a0130014a024845a496102 /org.eclipse.mylyn.trac.core/src
parent5c2cbe975a11cbc27c67fd0eda6385697bb19899 (diff)
downloadorg.eclipse.mylyn.tasks-883b83c651c107ec75507ab430260935773be196.tar.gz
org.eclipse.mylyn.tasks-883b83c651c107ec75507ab430260935773be196.tar.xz
org.eclipse.mylyn.tasks-883b83c651c107ec75507ab430260935773be196.zip
RESOLVED - bug 164536: trac editor should have a People section
https://bugs.eclipse.org/bugs/show_bug.cgi?id=164536
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttributeFactory.java6
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttributeFactory.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttributeFactory.java
index 56534565c..2b8143123 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttributeFactory.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracAttributeFactory.java
@@ -110,7 +110,7 @@ public class TracAttributeFactory extends AbstractAttributeFactory {
@Override
public boolean getIsHidden(String key) {
Attribute attribute = attributeByTracKey.get(key);
- return (attribute != null) ? attribute.isHidden() : false;
+ return (attribute != null) ? attribute.isHidden() : isInternalAttribute(key);
}
@Override
@@ -133,4 +133,8 @@ public class TracAttributeFactory extends AbstractAttributeFactory {
return (tracKey != null) ? tracKey : key;
}
+ static boolean isInternalAttribute(String id) {
+ return RepositoryTaskAttribute.REMOVE_CC.equals(id) || RepositoryTaskAttribute.NEW_CC.equals(id) || RepositoryTaskAttribute.ADD_SELF_CC.equals(id);
+ }
+
}
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
index 85bba8408..98c7726ce 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
@@ -289,7 +289,7 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
List<RepositoryTaskAttribute> attributes = data.getAttributes();
for (RepositoryTaskAttribute attribute : attributes) {
- if (isInternalAttribute(attribute.getID())) {
+ if (TracAttributeFactory.isInternalAttribute(attribute.getID())) {
// ignore
} else if (!attribute.isReadOnly()) {
ticket.putValue(attribute.getID(), attribute.getValue());
@@ -345,9 +345,5 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
return ticket;
}
-
- private static boolean isInternalAttribute(String id) {
- return RepositoryTaskAttribute.REMOVE_CC.equals(id) || RepositoryTaskAttribute.NEW_CC.equals(id);
- }
} \ No newline at end of file

Back to the top