Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Parker2013-10-07 17:55:37 -0400
committerMiles Parker2014-02-07 14:15:12 -0500
commit61e460ef1390b9900298c0dc505d6523e7737e69 (patch)
tree7f8e902698e4f8cd9fdd6dbd105085c8dcbd573f /org.eclipse.mylyn.reviews.edit
parentea0aebfa41766833d10f6def977ca9d45f0b3cdb (diff)
downloadorg.eclipse.mylyn.reviews-61e460ef1390b9900298c0dc505d6523e7737e69.tar.gz
org.eclipse.mylyn.reviews-61e460ef1390b9900298c0dc505d6523e7737e69.tar.xz
org.eclipse.mylyn.reviews-61e460ef1390b9900298c0dc505d6523e7737e69.zip
391615: comments by other users should stand out
•Added support for "isMine" for model comments •Use person me icon for ReviewExplorer for self-authored comments •Use person me icon for Compare Editor for self-authored comments Change-Id: I0a7623ed93941b03b371990fff07e15ac3869d3a Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=391615
Diffstat (limited to 'org.eclipse.mylyn.reviews.edit')
-rw-r--r--org.eclipse.mylyn.reviews.edit/plugin.properties2
-rw-r--r--org.eclipse.mylyn.reviews.edit/src/org/eclipse/mylyn/reviews/edit/provider/CommentItemProvider.java17
2 files changed, 19 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.reviews.edit/plugin.properties b/org.eclipse.mylyn.reviews.edit/plugin.properties
index c8da9cbf..1ea5b0ff 100644
--- a/org.eclipse.mylyn.reviews.edit/plugin.properties
+++ b/org.eclipse.mylyn.reviews.edit/plugin.properties
@@ -139,3 +139,5 @@ _UI_ReviewStatus_Merged_literal = MERGED
_UI_ReviewStatus_Abandoned_literal = ABANDONED
_UI_ReviewStatus_Draft_literal = DRAFT
_UI_Repository_account_feature = Account
+_UI_Comment_mine_feature = Mine
+_UI_Comment_repository_feature = Repository
diff --git a/org.eclipse.mylyn.reviews.edit/src/org/eclipse/mylyn/reviews/edit/provider/CommentItemProvider.java b/org.eclipse.mylyn.reviews.edit/src/org/eclipse/mylyn/reviews/edit/provider/CommentItemProvider.java
index 96463ec5..dcfd2aa6 100644
--- a/org.eclipse.mylyn.reviews.edit/src/org/eclipse/mylyn/reviews/edit/provider/CommentItemProvider.java
+++ b/org.eclipse.mylyn.reviews.edit/src/org/eclipse/mylyn/reviews/edit/provider/CommentItemProvider.java
@@ -71,6 +71,7 @@ public class CommentItemProvider extends ItemProviderAdapter implements IEditing
addDraftPropertyDescriptor(object);
addReviewPropertyDescriptor(object);
addTitlePropertyDescriptor(object);
+ addMinePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
@@ -207,6 +208,21 @@ public class CommentItemProvider extends ItemProviderAdapter implements IEditing
}
/**
+ * This adds a property descriptor for the Mine feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addMinePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Comment_mine_feature"), //$NON-NLS-1$
+ getString("_UI_PropertyDescriptor_description", "_UI_Comment_mine_feature", "_UI_Comment_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ ReviewsPackage.Literals.COMMENT__MINE, false, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!--
@@ -278,6 +294,7 @@ public class CommentItemProvider extends ItemProviderAdapter implements IEditing
case ReviewsPackage.COMMENT__ID:
case ReviewsPackage.COMMENT__DRAFT:
case ReviewsPackage.COMMENT__TITLE:
+ case ReviewsPackage.COMMENT__MINE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case ReviewsPackage.COMMENT__REPLIES:

Back to the top