Changeset 29996 in osm
- Timestamp:
- 2013-10-06T03:09:03+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/smed2
- Files:
-
- 6 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/build.xml
r29854 r29996 77 77 <copy todir="${plugin.build.dir}/images"> 78 78 <fileset dir="images"/> 79 </copy> 80 <copy todir="${plugin.build.dir}/msg"> 81 <fileset dir="${plugin.src.dir}/messages/msg"/> 79 82 </copy> 80 83 <copy todir="${plugin.build.dir}/data"> -
applications/editors/josm/plugins/smed2/src/panels/PanelMain.java
r29995 r29996 12 12 import javax.swing.*; 13 13 14 import messages.Messages; 15 14 16 import org.openstreetmap.josm.Main; 15 import org.openstreetmap.josm.data.osm.OsmPrimitive;16 17 17 18 import s57.S57att.Att; 18 19 import s57.S57obj.Obj; 19 import s57.S57val;20 import seamap.SeaMap;21 20 import seamap.SeaMap.*; 22 21 import smed2.S57en; … … 96 95 public void parseMark(Feature feature) { 97 96 decode.setText("Selected feature:\n"); 98 decode.append("\t Type: " + S57en.ObjEN.get(feature.type) + "\n");97 decode.append("\t" + tr("Type") + ": " + Messages.getString(feature.type.name()) + "\n"); 99 98 if (feature.atts.get(Att.OBJNAM) != null) { 100 decode.append("\t Name: " + feature.atts.get(Att.OBJNAM).val + "\n");99 decode.append("\t" + tr("Name") + ": " + feature.atts.get(Att.OBJNAM).val + "\n"); 101 100 } 102 101 decode.append("\tObjects:\n"); 103 102 for (Obj obj : feature.objs.keySet()) { 104 decode.append("\t\t" + S57en.ObjEN.get(obj) + "\n");103 decode.append("\t\t" + Messages.getString(obj.name()) + "\n"); 105 104 if (feature.objs.get(obj).size() != 0) { 106 105 for (AttMap atts : feature.objs.get(obj).values()) { … … 109 108 switch (item.conv) { 110 109 case E: 111 decode.append("\t\t\t" + S57en.AttEN.get(att) + ": " + S57en.enums.get(att).get(item.val) + "\n");110 decode.append("\t\t\t" + Messages.getString(att.name()) + ": " + S57en.enums.get(att).get(item.val) + "\n"); 112 111 break; 113 112 case L: 114 decode.append("\t\t\t" + S57en.AttEN.get(att) + ": ");113 decode.append("\t\t\t" + Messages.getString(att.name()) + ": "); 115 114 Iterator it = ((ArrayList)item.val).iterator(); 116 115 while (it.hasNext()) { … … 124 123 break; 125 124 default: 126 decode.append("\t\t\t" + S57en.AttEN.get(att) + ": " + item.val + "\n");125 decode.append("\t\t\t" + Messages.getString(att.name()) + ": " + item.val + "\n"); 127 126 } 128 127 } … … 130 129 } 131 130 } 131 } 132 133 public void clearMark() { 134 decode.setText(tr("No feature selected")); 132 135 } 133 136 -
applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
r29995 r29996 18 18 19 19 import static org.openstreetmap.josm.tools.I18n.tr; 20 import messages.Messages; 21 20 22 import org.openstreetmap.josm.actions.JosmAction; 21 23 import org.openstreetmap.josm.gui.MapView; … … 125 127 editFrame.add(panelS57); 126 128 127 showFrame = new ShowFrame( "Seamark Inspector");129 showFrame = new ShowFrame(tr("Seamark Inspector")); 128 130 showFrame.setSize(new Dimension(300, 300)); 129 131 Rectangle rect = Main.map.mapView.getBounds(); … … 187 189 } else { 188 190 showFrame.setVisible(false); 191 PanelMain.messageBar.setText(tr("Select only one feature")); 189 192 } 190 193 } 191 194 if (nextFeature == null) { 192 195 feature = null; 196 panelMain.clearMark(); 197 PanelMain.messageBar.setText(tr("Select a map feature")); 193 198 } 194 199 }
Note:
See TracChangeset
for help on using the changeset viewer.