svn commit: r17182 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLModelElementOrderedListModel.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-07-12 16:22:56-0700
New Revision: 17182

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLModelElementOrderedListModel.java

Log:
Add icons to actions

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLModelElementOrderedListModel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLModelElementOrderedListModel.java?view=diff&pathrev=17182&r1=17181&r2=17182
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLModelElementOrderedListModel.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/UMLModelElementOrderedListModel.java	2009-07-12 16:22:56-0700
@@ -29,6 +29,7 @@
 import javax.swing.JMenuItem;
 import javax.swing.JPopupMenu;
 
+import org.argouml.application.helpers.ResourceLoaderWrapper;
 import org.argouml.i18n.Translator;
 import org.argouml.uml.ui.AbstractActionAddModelElement2;
 import org.argouml.uml.ui.AbstractActionNewModelElement;
@@ -153,9 +154,11 @@
     /**
      * The constructor.
      */
-    public MoveUpAction(UMLModelElementOrderedListModel theModel, 
-            int theIndex) {
-        super(Translator.localize("menu.popup.moveup"));
+    public MoveUpAction(
+            final UMLModelElementOrderedListModel theModel, 
+            final int theIndex) {
+        super(Translator.localize("menu.popup.moveup"),
+                ResourceLoaderWrapper.lookupIconResource("MoveUp"));
         model = theModel;
         index = theIndex;
     }
@@ -191,9 +194,11 @@
     /**
      * The constructor.
      */
-    public MoveDownAction(UMLModelElementOrderedListModel theModel,
-            int theIndex) {
-        super(Translator.localize("menu.popup.movedown"));
+    public MoveDownAction(
+            final UMLModelElementOrderedListModel theModel,
+            final int theIndex) {
+        super(Translator.localize("menu.popup.movedown"),
+                ResourceLoaderWrapper.lookupIconResource("MoveDown"));
         model = theModel;
         index = theIndex;
     }
@@ -235,9 +240,11 @@
      * @param theIndex
      *            starting position of element to move
      */
-    public MoveToTopAction(UMLModelElementOrderedListModel theModel,
-            int theIndex) {
-        super(Translator.localize("menu.popup.movetotop"));
+    public MoveToTopAction(
+            final UMLModelElementOrderedListModel theModel,
+            final int theIndex) {
+        super(Translator.localize("menu.popup.movetotop"),
+                ResourceLoaderWrapper.lookupIconResource("MoveTop"));
         model = theModel;
         index = theIndex;
     }
@@ -279,9 +286,11 @@
      * @param theIndex
      *            starting position of element to move
      */
-    public MoveToBottomAction(UMLModelElementOrderedListModel theModel,
-            int theIndex) {
-        super(Translator.localize("menu.popup.movetobottom"));
+    public MoveToBottomAction(
+            final UMLModelElementOrderedListModel theModel,
+            final int theIndex) {
+        super(Translator.localize("menu.popup.movetobottom"),
+                ResourceLoaderWrapper.lookupIconResource("MoveBottom"));
         model = theModel;
         index = theIndex;
     }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2370805

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.