Browse files

icons

  • Loading branch information...
1 parent 7c6479d commit 31cd0361d7ddadd402ff3f66e2f8539b84dd1507 Kirill.Safonov committed Aug 2, 2011
View
2 META-INF/plugin.xml
@@ -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>
View
BIN src/images/note.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/images/note_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/images/note_delete.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/images/note_edit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
17 src/ui/actions/DeleteReviewsAction.java
@@ -2,32 +2,29 @@
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
* Time: 1:41 PM
*/
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;
}
View
5 src/ui/actions/EditReviewAction.java
@@ -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;
}
View
2 src/ui/reviewpoint/ReviewPoint.java
@@ -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

0 comments on commit 31cd036

Please sign in to comment.