Changeset 30532 in osm for applications/editors/josm/plugins/tracer2
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/tracer2
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer2/.classpath
r30047 r30532 2 2 <classpath> 3 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="src" path="test/src"/> 5 <!-- <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> 6 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 7 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> 8 <classpathentry kind="lib" path="/JOSM/dist/josm-custom.jar" sourcepath="/JOSM/src"/> 9 <classpathentry kind="lib" path="/JOSM/test/build" sourcepath="/JOSM/test/functional"/> 10 <classpathentry kind="lib" path="test/config"/> 11 <classpathentry kind="output" path="build"/> --> 4 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 5 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> 6 <classpathentry kind="output" path="bin"/> 12 7 </classpath> -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamDialog.java
r30049 r30532 56 56 private JTextField m_oDescription = new JTextField(); 57 57 private JTextArea m_oUrl = new JTextArea(5,5); 58 private JComboBox m_oTileSize;59 private JComboBox m_oResolution;58 private JComboBox<String> m_oTileSize; 59 private JComboBox<String> m_oResolution; 60 60 //private JTextField m_oSkipBottom = new JTextField(); 61 private JComboBox m_oMode;61 private JComboBox<String> m_oMode; 62 62 private JTextField m_oThreshold = new JTextField(); 63 private JComboBox m_oPointsPerCircle;63 private JComboBox<String> m_oPointsPerCircle; 64 64 private JTextField m_oTag = new JTextField(); 65 65 private JTextField m_oPreferredValues = new JTextField(); … … 112 112 } 113 113 114 private void loadComboBox( JComboBox c, String strValue, String[] astrValues ) {114 private void loadComboBox( JComboBox<?> c, String strValue, String[] astrValues ) { 115 115 int pos = 0; 116 116 for ( String str: astrValues ) { … … 123 123 } 124 124 125 private String saveComboBox( JComboBox c, String[] astrValues ) {125 private String saveComboBox( JComboBox<?> c, String[] astrValues ) { 126 126 return astrValues[c.getSelectedIndex()]; 127 127 } … … 140 140 setButtonIcons(new String[] { "ok.png", "cancel.png" }); 141 141 142 m_oTileSize = new JComboBox (m_astrTileSize);143 m_oResolution = new JComboBox (m_astrResolution);144 m_oMode = new JComboBox (m_astrMode);145 m_oPointsPerCircle = new JComboBox (m_astrPointsPerCircle);142 m_oTileSize = new JComboBox<>(m_astrTileSize); 143 m_oResolution = new JComboBox<>(m_astrResolution); 144 m_oMode = new JComboBox<>(m_astrMode); 145 m_oPointsPerCircle = new JComboBox<>(m_astrPointsPerCircle); 146 146 147 147 load(); -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamSelectDialog.java
r30049 r30532 34 34 public class ServerParamSelectDialog extends JPanel { 35 35 36 /** 37 * 38 */ 39 private static final long serialVersionUID = 5655941545321036641L; 40 41 private JComboBox m_oComboBox; 36 private JComboBox<String> m_oComboBox; 42 37 List<ServerParam> m_listServerParam; 43 38 private boolean m_bShow = true; … … 74 69 i++; 75 70 } 76 m_oComboBox = new JComboBox (astr);71 m_oComboBox = new JComboBox<>(astr); 77 72 m_oComboBox.setSelectedIndex(pos); 78 73
Note:
See TracChangeset
for help on using the changeset viewer.