Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

icons

  • Loading branch information...
commit 31cd0361d7ddadd402ff3f66e2f8539b84dd1507 1 parent 7c6479d
Kirill.Safonov authored
2  META-INF/plugin.xml
View
@@ -20,7 +20,7 @@
<reference ref="EditSource"/>
</group>
- <action id="addReview" class="ui.actions.AddReviewAction" text="Add review">
+ <action id="addReview" class="ui.actions.AddReviewAction" text="Add review" icon="/images/note_add.png">
<add-to-group group-id="EditorGutterPopupMenu" anchor="last"/>
</action>
BIN  src/images/note.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  src/images/note_add.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  src/images/note_delete.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  src/images/note_edit.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 src/ui/actions/DeleteReviewsAction.java
View
@@ -2,21 +2,16 @@
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.components.ServiceManager;
-import com.intellij.openapi.editor.CaretModel;
-import com.intellij.openapi.editor.Document;
-import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
-import com.intellij.openapi.vfs.VirtualFile;
-import com.intellij.psi.PsiDocumentManager;
-import com.intellij.psi.PsiFile;
-import reviewresult.Review;
+import com.intellij.openapi.util.IconLoader;
import reviewresult.ReviewManager;
import ui.reviewpoint.ReviewPoint;
import ui.reviewtoolwindow.ReviewView;
+import javax.swing.*;
+
/**
* User: Alisa.Afonina
* Date: 7/25/11
@@ -24,10 +19,12 @@
*/
public class DeleteReviewsAction extends AnAction implements DumbAware {
+ private static final Icon ICON = IconLoader.getIcon("/images/note_delete.png");
+
private ReviewPoint reviewPoint;
- public DeleteReviewsAction(String title, ReviewPoint reviewPoint) {
- super(title);
+ public DeleteReviewsAction(String title, ReviewPoint reviewPoint) {
+ super(title, title, ICON);
this.reviewPoint = reviewPoint;
}
5 src/ui/actions/EditReviewAction.java
View
@@ -12,6 +12,7 @@
import com.intellij.openapi.ui.popup.Balloon;
import com.intellij.openapi.ui.popup.BalloonBuilder;
import com.intellij.openapi.ui.popup.JBPopupFactory;
+import com.intellij.openapi.util.IconLoader;
import com.intellij.ui.awt.RelativePoint;
import ui.forms.EditReviewForm;
import ui.reviewpoint.ReviewPoint;
@@ -25,9 +26,11 @@
* Time: 5:03 PM
*/
public class EditReviewAction extends AnAction implements DumbAware {
+ private static final Icon ICON = IconLoader.getIcon("/images/note_edit.png");
+
private ReviewPoint reviewPoint;
public EditReviewAction(String title, ReviewPoint reviewPoint) {
- super(title);
+ super(title, title, ICON);
this.reviewPoint = reviewPoint;
}
2  src/ui/reviewpoint/ReviewPoint.java
View
@@ -89,7 +89,7 @@ public Review getReview() {
private class ReviewGutterIconRenderer extends GutterIconRenderer {
- private final Icon icon = IconLoader.getIcon("/actions/cleanHeavy.png");
+ private final Icon icon = IconLoader.getIcon("/images/note.png");
private boolean activated = false;
@NotNull
@Override
Please sign in to comment.
Something went wrong with that request. Please try again.