Changeset 19050 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
- Timestamp:
- 2024-04-22T20:59:26+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r18801 r19050 8 8 import java.awt.Container; 9 9 import java.awt.Font; 10 import java.awt.GridBagConstraints; 10 11 import java.awt.GridBagLayout; 11 12 import java.awt.Point; … … 101 102 import org.openstreetmap.josm.gui.dialogs.relation.RelationPopupMenus; 102 103 import org.openstreetmap.josm.gui.help.HelpUtil; 104 import org.openstreetmap.josm.gui.layer.Layer; 103 105 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent; 104 106 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener; 105 import org.openstreetmap.josm.gui.layer.Layer;106 107 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 107 108 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; … … 293 294 boolean presetsVisible = Config.getPref().getBoolean("properties.presets.visible", true); 294 295 if (presetsVisible && top) { 295 bothTables.add(presets, GBC.std().fill(G BC.HORIZONTAL).insets(5, 2, 5, 2).anchor(GBC.NORTHWEST));296 bothTables.add(presets, GBC.std().fill(GridBagConstraints.HORIZONTAL).insets(5, 2, 5, 2).anchor(GridBagConstraints.NORTHWEST)); 296 297 double epsilon = Double.MIN_VALUE; // need to set a weight or else anchor value is ignored 297 bothTables.add(pluginHook, GBC.eol().insets(0, 1, 1, 1).anchor(G BC.NORTHEAST).weight(epsilon, epsilon));298 bothTables.add(pluginHook, GBC.eol().insets(0, 1, 1, 1).anchor(GridBagConstraints.NORTHEAST).weight(epsilon, epsilon)); 298 299 } 299 300 bothTables.add(selectSth, GBC.eol().fill().insets(10, 10, 10, 10)); 300 bothTables.add(tagTableFilter, GBC.eol().fill(G BC.HORIZONTAL));301 bothTables.add(tagTable.getTableHeader(), GBC.eol().fill(G BC.HORIZONTAL));302 bothTables.add(tagTable, GBC.eol().fill(G BC.BOTH));303 bothTables.add(membershipTable.getTableHeader(), GBC.eol().fill(G BC.HORIZONTAL));304 bothTables.add(membershipTable, GBC.eol().fill(G BC.BOTH));301 bothTables.add(tagTableFilter, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 302 bothTables.add(tagTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 303 bothTables.add(tagTable, GBC.eol().fill(GridBagConstraints.BOTH)); 304 bothTables.add(membershipTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 305 bothTables.add(membershipTable, GBC.eol().fill(GridBagConstraints.BOTH)); 305 306 if (presetsVisible && !top) { 306 bothTables.add(presets, GBC.eol().fill(G BC.HORIZONTAL).insets(5, 2, 5, 2));307 bothTables.add(presets, GBC.eol().fill(GridBagConstraints.HORIZONTAL).insets(5, 2, 5, 2)); 307 308 } 308 309 … … 1504 1505 * Clears the row selection when it is filtered away by the row sorter. 1505 1506 */ 1506 private class RemoveHiddenSelection implements ListSelectionListener, RowSorterListener {1507 private final class RemoveHiddenSelection implements ListSelectionListener, RowSorterListener { 1507 1508 1508 1509 void removeHiddenSelection() { … … 1527 1528 } 1528 1529 1529 private class HoverPreviewPropListener implements ValueChangeListener<Boolean> {1530 private final class HoverPreviewPropListener implements ValueChangeListener<Boolean> { 1530 1531 @Override 1531 1532 public void valueChanged(ValueChangeEvent<? extends Boolean> e) { … … 1542 1543 * Otherwise user would need to change selection to see the preference change take effect. 1543 1544 */ 1544 private class HoverPreviewPreferSelectionPropListener implements ValueChangeListener<Boolean> {1545 private final class HoverPreviewPreferSelectionPropListener implements ValueChangeListener<Boolean> { 1545 1546 @Override 1546 1547 public void valueChanged(ValueChangeEvent<? extends Boolean> e) {
Note:
See TracChangeset
for help on using the changeset viewer.