Changeset 1801 in josm
- Timestamp:
- 2009-07-17T20:31:25+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/relation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r1798 r1801 347 347 gc.fill = GridBagConstraints.BOTH; 348 348 gc.anchor = GridBagConstraints.CENTER; 349 gc.weightx = 0. 8;349 gc.weightx = 0.6; 350 350 gc.weighty = 1.0; 351 351 pnl.add(scrollPane, gc); … … 359 359 gc.gridx = 3; 360 360 gc.gridy = 1; 361 gc.weightx = 0. 2;361 gc.weightx = 0.4; 362 362 gc.weighty = 1.0; 363 363 pnl.add(buildSelectionTablePanel(), gc); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableModel.java
r1790 r1801 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 import java.util.ArrayList; 5 5 import java.util.Collection; … … 22 22 private ArrayList<OsmPrimitive> cache; 23 23 24 public SelectionTableModel(OsmDataLayer layer) { 24 /** 25 * constructor 26 * 27 * @param layer the data layer. Must not be null. 28 * @exception IllegalArgumentException thrown if layer is null 29 */ 30 public SelectionTableModel(OsmDataLayer layer) throws IllegalArgumentException { 31 if (layer == null) 32 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "layer")); 25 33 this.layer = layer; 26 34 cache = new ArrayList<OsmPrimitive>(); 27 35 DataSet.selListeners.add(this); 28 36 Layer.listeners.add(this); 37 populateSelectedPrimitives(layer); 29 38 } 30 39 … … 84 93 return cache; 85 94 } 95 96 /** 97 * populates the model with the primitives currently selected in 98 * <code>layer</code> 99 * 100 * @param layer the data layer 101 */ 102 protected void populateSelectedPrimitives(OsmDataLayer layer) { 103 selectionChanged(layer.data.getSelected()); 104 } 86 105 }
Note:
See TracChangeset
for help on using the changeset viewer.