Index: JMenuItem.java
===================================================================
--- JMenuItem.java	(revision 41313)
+++ JMenuItem.java	(revision 41314)
@@ -10,13 +10,13 @@
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
+ * MA 02110-1301, USA.
  *
  * For any additional information, do not hesitate to contact us
  * at info AT gvsig.com, or visit our website www.gvsig.com.
@@ -25,85 +25,78 @@
 
 import javax.swing.Action;
 import javax.swing.Icon;
+import org.gvsig.andami.ui.mdiFrame.TranslatableButtonHelper.TranslatableButton;
 
-public class JMenuItem extends javax.swing.JMenuItem implements EnableTextSupport{
-	/**
-	 * 
-	 */
-	public JMenuItem() {
-		super();
-		// TODO Auto-generated constructor stub
-	}
-	/**
-	 * @param text
-	 */
-	public JMenuItem(String text) {
-		super(text);
-		// TODO Auto-generated constructor stub
-	}
-	/**
-	 * @param text
-	 * @param mnemonic
-	 */
-	public JMenuItem(String text, int mnemonic) {
-		super(text, mnemonic);
-		// TODO Auto-generated constructor stub
-	}
-	/**
-	 * @param text
-	 * @param icon
-	 */
-	public JMenuItem(String text, Icon icon) {
-		super(text, icon);
-		// TODO Auto-generated constructor stub
-	}
-	/**
-	 * @param a
-	 */
-	public JMenuItem(Action a) {
-		super(a);
-		// TODO Auto-generated constructor stub
-	}
-	/**
-	 * @param icon
-	 */
-	public JMenuItem(Icon icon) {
-		super(icon);
-		// TODO Auto-generated constructor stub
-	}
-	private String enableText;
-	private String toolTip = super.getToolTipText();
-	
-	
-	/**
-	 * @return Returns the enableText.
-	 */
-	public String getEnableText() {
-		return enableText;
-	}
-	/**
-	 * @param enableText The enableText to set.
-	 */
-	public void setEnableText(String enableText) {
-		this.enableText = enableText;
-	}
-	
-	
-	/**
-	 * @see java.awt.Component#setVisible(boolean)
-	 */
-	public void setEnabled(boolean aFlag) {
-		super.setEnabled(aFlag);
-		if (aFlag){
-			setToolTipText(toolTip);
-		}else{
-			setToolTipText(enableText);
-		}
-	}
-	/**
-	 * @see javax.swing.JComponent#setToolTipText(java.lang.String)
-	 */
-	public void setToolTip(String text) {
-		toolTip = text;
-	}
+public class JMenuItem extends javax.swing.JMenuItem implements EnableTextSupport, TranslatableButton {
+
+    private TranslatableButtonHelper i18nHelper = new TranslatableButtonHelper();
+    private String enableText;
+    private String toolTip = super.getToolTipText();
+
+    public JMenuItem() {
+        super();
+    }
+
+    public JMenuItem(String text) {
+        super(text);
+    }
+
+    public JMenuItem(String text, int mnemonic) {
+        super(text, mnemonic);
+    }
+
+    public JMenuItem(String text, Icon icon) {
+        super(text, icon);
+    }
+
+    public JMenuItem(Action a) {
+        super(a);
+    }
+
+    public JMenuItem(Icon icon) {
+        super(icon);
+    }
+
+    /**
+     * @return Returns the enableText.
+     */
+    public String getEnableText() {
+        return enableText;
+    }
+
+    /**
+     * @param enableText The enableText to set.
+     */
+    public void setEnableText(String enableText) {
+        this.enableText = enableText;
+    }
+
+    public void setEnabled(boolean aFlag) {
+        super.setEnabled(aFlag);
+        if ( aFlag ) {
+            setToolTipText(toolTip);
+        } else {
+            setToolTipText(enableText);
+        }
+    }
+
+    public void setToolTip(String text) {
+        toolTip = text;
+    }
+
+    public void setToolTipKey(String key) {
+        this.i18nHelper.setTooltip(key);
+    }
+
+    public void setTextKey(String key) {
+        this.i18nHelper.setText(key);
+    }
+
+    public void translate() {
+        if ( this.i18nHelper.needTranslation() ) {
+            this.i18nHelper.translate();
+            this.setText(this.i18nHelper.getText());
+            this.setToolTip(this.i18nHelper.getTooltip());
+        }
+    }
 }
