X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGCutAndPasteHtmlTransfer.java;h=ce704fe0eddb21d1c54dd5172b0c973bddf8a59a;hp=152fb4d696f63e91cb9e110b8d29666766b0434f;hb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;hpb=865a855a4ca87eadb3e5ff284ed32ed307d9c34b diff --git a/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java b/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java index 152fb4d..ce704fe 100644 --- a/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java +++ b/src/jalview/jbgui/GCutAndPasteHtmlTransfer.java @@ -1,29 +1,44 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) + * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. * * Jalview 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 GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . * The Jalview Authors are detailed in the 'AUTHORS' file. */ package jalview.jbgui; import jalview.gui.JvSwingUtils; - -import java.awt.*; -import java.awt.event.*; - -import javax.swing.*; +import jalview.util.MessageManager; + +import java.awt.BorderLayout; +import java.awt.Font; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseEvent; + +import javax.swing.JButton; +import javax.swing.JCheckBoxMenuItem; +import javax.swing.JEditorPane; +import javax.swing.JInternalFrame; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JScrollPane; /** * DOCUMENT ME! @@ -88,7 +103,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame { scrollPane.setBorder(null); ok.setFont(JvSwingUtils.getLabelFont()); - ok.setText("New Window"); + ok.setText(MessageManager.getString("label.new_window")); ok.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -96,7 +111,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame ok_actionPerformed(e); } }); - cancel.setText("Close"); + cancel.setText(MessageManager.getString("action.close")); cancel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -105,7 +120,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame } }); textarea.setBorder(null); - close.setText("Close"); + close.setText(MessageManager.getString("action.close")); close.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -116,7 +131,7 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame close.setAccelerator(javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_W, Toolkit.getDefaultToolkit() .getMenuShortcutKeyMask(), false)); - selectAll.setText("Select All"); + selectAll.setText(MessageManager.getString("action.select_all")); selectAll.setAccelerator(javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_A, Toolkit.getDefaultToolkit() .getMenuShortcutKeyMask(), false)); @@ -127,8 +142,8 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame selectAll_actionPerformed(e); } }); - jMenu1.setText("File"); - save.setText("Save"); + jMenu1.setText(MessageManager.getString("action.file")); + save.setText(MessageManager.getString("action.save")); save.setAccelerator(javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_S, Toolkit.getDefaultToolkit() .getMenuShortcutKeyMask(), false)); @@ -153,8 +168,8 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame textarea_mousePressed(e); } }); - editMenu.setText("Edit"); - copyItem.setText("Copy"); + editMenu.setText(MessageManager.getString("action.edit")); + copyItem.setText(MessageManager.getString("action.copy")); copyItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -162,9 +177,10 @@ public class GCutAndPasteHtmlTransfer extends JInternalFrame copyItem_actionPerformed(e); } }); - displaySource.setText("Show HTML Source"); - displaySource - .setToolTipText("Select this if you want to copy raw html"); + displaySource.setText(MessageManager + .getString("action.show_html_source")); + displaySource.setToolTipText(MessageManager + .getString("label.select_copy_raw_html")); displaySource.addActionListener(new ActionListener() {