Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-06-19 14:49:03 -0400
committerfbecker2011-06-19 14:49:03 -0400
commitb5a849986d9231d69698d0225ac406fd1be14b1e (patch)
treef2e90566f2f926491dd1c4161d1ea23ddf9c9acd
parentff0f703decea17ab1f594a3fb77916ec02546192 (diff)
downloadorg.eclipse.mylyn.tasks-b5a849986d9231d69698d0225ac406fd1be14b1e.tar.gz
org.eclipse.mylyn.tasks-b5a849986d9231d69698d0225ac406fd1be14b1e.tar.xz
org.eclipse.mylyn.tasks-b5a849986d9231d69698d0225ac406fd1be14b1e.zip
ASSIGNED - bug 349620: improve UI for showing private comments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=349620 small fix to fix problem when user not in insidergroup
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorCommentPart.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorCommentPart.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorCommentPart.java
index c13ea6f52..bf15d5abb 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorCommentPart.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorCommentPart.java
@@ -82,7 +82,8 @@ public class BugzillaTaskEditorCommentPart extends TaskEditorCommentPart {
@Override
protected void addActionsToToolbar(ToolBarManager toolBarManager, TaskComment taskComment,
CommentViewer commentViewer) {
- if (taskComment.getIsPrivate() != null) {
+ String insidergroup = getModel().getTaskRepository().getProperty(IBugzillaConstants.BUGZILLA_INSIDER_GROUP);
+ if (Boolean.parseBoolean(insidergroup)) {
LockAction lockAction = new LockAction(taskComment);
toolBarManager.add(lockAction);
}

Back to the top