Changeset 23474 in osm for applications/editors/josm
- Timestamp:
- 2010-10-05T00:42:20+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/build.xml
r23473 r23474 120 120 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 121 121 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 122 <!-- 122 123 <attribute name="Plugin-Version" value="23456"/> 123 <!--124 --> 124 125 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 125 -->126 126 127 </manifest> 127 128 </jar> -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/OSeaM.java
r23445 r23474 1 1 package oseam; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import javax.swing.ImageIcon; … … 19 21 osm = new OSeaMAction(); 20 22 osm.init(); 21 manager.setString( "it works realy fine");23 manager.setString(tr("it works realy fine")); 22 24 return osm.getPM01SeaMap(); 23 25 } 24 26 25 27 @Override 26 public String getInfo() {return "mapping seamarks"; }28 public String getInfo() {return tr("mapping seamarks"); } 27 29 28 30 @Override 29 public String getName() {return "Seamarks"; }31 public String getName() {return tr("Seamarks"); } 30 32 31 33 @Override 32 34 public void setPluginManager(SmedPluginManager manager) { 33 this.manager = manager;35 OSeaM.manager = manager; 34 36 } 35 37 -
applications/editors/josm/plugins/smed/src/smed/Smed.java
r23459 r23474 8 8 import java.net.URL; 9 9 import java.net.URLClassLoader; 10 import java.util.Arrays;11 10 import java.util.Enumeration; 12 import java.util. List;11 import java.util.ResourceBundle; 13 12 import java.util.jar.JarEntry; 14 13 import java.util.jar.JarFile; … … 23 22 24 23 import smed.io.SmedFile; 25 import smed.plug.SmedPluginApp;26 import smed.plug.ifc.SmedPluggable;27 24 import smed.plug.util.JARFileFilter; 28 import smed.plug.util.SmedPluginLoader;29 25 import smed.tabs.SmedTabAction; 30 26 -
applications/editors/josm/plugins/smed/src/smed/menu/SmedMenuBar.java
r23382 r23474 1 1 package smed.menu; 2 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 3 5 import java.awt.event.KeyEvent; 4 import java.util.ArrayList; 5 import java.util.List; 6 import java.util.ResourceBundle; 6 7 7 import javax.swing.DefaultListModel;8 8 import javax.swing.JMenu; 9 9 import javax.swing.JMenuBar; … … 11 11 12 12 import smed.menu.file.TabManager; 13 import smed.plug.ifc.SmedPluggable;14 import smed.tabs.SmedTabbedPane;15 13 16 14 public class SmedMenuBar extends JMenuBar { … … 24 22 JMenu menu, submenu; 25 23 JMenuItem menuItem; 26 private List<SmedPluggable> plugins = null;27 24 28 25 public SmedMenuBar() { 26 ResourceBundle keyEvents = ResourceBundle.getBundle("smed.keys.Events"); 27 29 28 menuBar = new JMenuBar(); 30 29 31 menu = new JMenu("File"); 32 menu.setMnemonic(KeyEvent.VK_F); 30 menu = new JMenu(tr("File")); 31 // menu.setMnemonic(KeyEvent.VK_F); 32 menu.setMnemonic((Integer) keyEvents.getObject("SmedMenuBar.001")); 33 33 34 menu.getAccessibleContext().setAccessibleDescription( 34 35 "The only menu in this program that has menu items"); -
applications/editors/josm/plugins/smed/src/smed/menu/file/TabManager.java
r23419 r23474 1 1 package smed.menu.file; 2 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 3 4 4 5 import javax.swing.DefaultListModel; … … 186 187 tabButtonCancel.setBounds(new Rectangle(254, 44, 130, 30)); 187 188 tabButtonCancel.setFont(new Font("Dialog", Font.BOLD, 12)); 188 tabButtonCancel.setText( "Cancel");189 tabButtonCancel.setText(tr("Cancel")); 189 190 tabButtonCancel.addActionListener(this); 190 191 tabButtonCancel.setActionCommand("cancel"); … … 203 204 tabButtonUndo.setBounds(new Rectangle(254, 84, 130, 30)); 204 205 tabButtonUndo.setFont(new Font("Dialog", Font.BOLD, 12)); 205 tabButtonUndo.setText( "Undo");206 tabButtonUndo.setText(tr("Undo")); 206 207 tabButtonUndo.addActionListener(this); 207 208 tabButtonUndo.setActionCommand("undo"); … … 220 221 tabButtonLoad.setBounds(new Rectangle(186, 328, 104, 30)); 221 222 tabButtonLoad.setFont(new Font("Dialog", Font.PLAIN, 12)); 222 tabButtonLoad.setText( "Load");223 tabButtonLoad.setText(tr("Load")); 223 224 tabButtonLoad.addActionListener(this); 224 225 tabButtonLoad.setActionCommand("load"); … … 237 238 tabButtonSave.setBounds(new Rectangle(293, 328, 104, 30)); 238 239 tabButtonSave.setFont(new Font("Dialog", Font.PLAIN, 12)); 239 tabButtonSave.setText( "Save");240 tabButtonSave.setText(tr("Save")); 240 241 tabButtonSave.addActionListener(this); 241 242 tabButtonSave.setActionCommand("save"); … … 254 255 tabButtonDelete.setBounds(new Rectangle(186, 362, 104, 30)); 255 256 tabButtonDelete.setFont(new Font("Dialog", Font.PLAIN, 12)); 256 tabButtonDelete.setText( "Delete");257 tabButtonDelete.setText(tr("Delete")); 257 258 tabButtonDelete.addActionListener(this); 258 259 tabButtonDelete.setActionCommand("delete"); … … 271 272 tabButtonVisible.setBounds(new Rectangle(293, 362, 104, 30)); 272 273 tabButtonVisible.setFont(new Font("Dialog", Font.PLAIN, 12)); 273 tabButtonVisible.setText( "invisible");274 tabButtonVisible.setText(tr("invisible")); 274 275 tabButtonVisible.addActionListener(this); 275 276 tabButtonVisible.setActionCommand("invisible"); … … 288 289 tabButtonAll.setBounds(new Rectangle(92, 300, 72, 20)); 289 290 tabButtonAll.setFont(new Font("Dialog", Font.PLAIN, 12)); 290 tabButtonAll.setText( "all");291 tabButtonAll.setText(tr("all")); 291 292 tabButtonAll.addActionListener(this); 292 293 tabButtonAll.setActionCommand("all"); … … 305 306 tabButtonNone.setBounds(new Rectangle(166, 300, 72, 20)); 306 307 tabButtonNone.setFont(new Font("Dialog", Font.PLAIN, 12)); 307 tabButtonNone.setText( "none");308 tabButtonNone.setText(tr("none")); 308 309 tabButtonNone.addActionListener(this); 309 310 tabButtonNone.setActionCommand("none"); -
applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java
r23459 r23474 13 13 import javax.swing.JTextField; 14 14 import javax.swing.SwingUtilities; 15 import javax.swing.UIManager;16 15 import javax.swing.WindowConstants; 17 16 … … 34 33 private JMenuItem osmItem =null; 35 34 public static JTextField smedStatusBar = null; 35 private static String editor =tr("SeaMap Editor"); 36 36 37 37 public SmedTabAction() { 38 super( tr("Seamap Editor"), "Smed",tr("Seanap Editor"), Shortcut.registerShortcut(38 super( editor, "Smed",editor, Shortcut.registerShortcut( 39 39 "tools:Semmaps", 40 tr("Tool: {0}", tr("Seamap Editor")), KeyEvent.VK_K, //$NON-NLS-1$ //$NON-NLS-2$40 tr("Tool: {0}", editor), KeyEvent.VK_K, //$NON-NLS-1$ //$NON-NLS-2$ 41 41 Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 42 42 } … … 60 60 protected void createAndShowTabs() { 61 61 //Create and set up the window. 62 frame = new JFrame( "TabbedPaneDemo");62 frame = new JFrame(editor); 63 63 smedStatusBar = new JTextField(); 64 64 frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
Note:
See TracChangeset
for help on using the changeset viewer.