Changeset 30532 in osm for applications/editors/josm/plugins/cadastre-fr
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r29801 r30532 414 414 communeList[i + 1] = listOfCommunes.elementAt(i).substring(listOfCommunes.elementAt(i).indexOf(">")+1); 415 415 } 416 JComboBox inputCommuneList = new JComboBox(communeList);416 JComboBox<String> inputCommuneList = new JComboBox<>(communeList); 417 417 p.add(inputCommuneList, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 0)); 418 418 JOptionPane pane = new JOptionPane(p, JOptionPane.INFORMATION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null) { … … 432 432 private int selectFeuilleDialog() { 433 433 JPanel p = new JPanel(new GridBagLayout()); 434 Vector<String> ImageNames = new Vector<String>();434 Vector<String> imageNames = new Vector<String>(); 435 435 for (PlanImage src : listOfFeuilles) { 436 ImageNames.add(src.name);437 } 438 JComboBox inputFeuilleList = new JComboBox(ImageNames);436 imageNames.add(src.name); 437 } 438 JComboBox<String> inputFeuilleList = new JComboBox<>(imageNames); 439 439 p.add(inputFeuilleList, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 0)); 440 440 JOptionPane pane = new JOptionPane(p, JOptionPane.INFORMATION_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r30481 r30532 37 37 private JCheckBox drawBoundaries = new JCheckBox(tr("Draw boundaries of downloaded data.")); 38 38 39 private JComboBox imageInterpolationMethod = new JComboBox();39 private JComboBox<String> imageInterpolationMethod = new JComboBox<>(); 40 40 41 41 private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing.")); … … 95 95 static final String DEFAULT_GRAB_MULTIPLIER = Scale.SQUARE_100M.value; 96 96 97 /** 98 * Constructs a new {@code CadastrePreferenceSetting}. 99 */ 97 100 public CadastrePreferenceSetting() { 98 101 super("cadastrewms.gif", I18n.tr("French cadastre WMS"), … … 104 107 ); 105 108 } 106 107 109 108 110 public void addGui(final PreferenceTabbedPane gui) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
r23190 r30532 32 32 public class CheckSourceUploadHook implements UploadHook 33 33 { 34 /** Serializable ID */35 private static final long serialVersionUID = -1;36 34 37 35 /** … … 82 80 JTextField tf = new JTextField(CadastrePlugin.source); 83 81 p.add(tf, GBC.eol()); 84 JList l = new JList(sel.toArray());82 JList<OsmPrimitive> l = new JList<>(sel.toArray(new OsmPrimitive[0])); 85 83 l.setCellRenderer(renderer); 86 84 l.setVisibleRowCount(l.getModel().getSize() < 6 ? l.getModel().getSize() : 10); … … 91 89 Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", tf.getText())); 92 90 } 93 94 91 } 95 92 } 96 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r28887 r30532 69 69 + "Use the syntax and punctuation known by www.cadastre.gouv.fr .</html>")); 70 70 JLabel labelDepartement = new JLabel(tr("Departement")); 71 final JComboBox inputDepartement = new JComboBox();71 final JComboBox<String> inputDepartement = new JComboBox<>(); 72 72 for (int i=1; i<departements.length; i+=2) { 73 73 inputDepartement.addItem(departements[i]);
Note:
See TracChangeset
for help on using the changeset viewer.