Changeset 2193 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-09-26T13:53:12+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r2145 r2193 527 527 // combine both tables and wrap them in a scrollPane 528 528 JPanel bothTables = new JPanel(); 529 boolean top = Main.pref.getBoolean("properties.presets.top", true); 529 530 bothTables.setLayout(new GridBagLayout()); 530 bothTables.add(presets, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2)); 531 if(top) 532 bothTables.add(presets, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2)); 531 533 bothTables.add(selectSth, GBC.eol().fill().insets(10, 10, 10, 10)); 532 534 bothTables.add(propertyTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL)); … … 534 536 bothTables.add(membershipTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL)); 535 537 bothTables.add(membershipTable, GBC.eol().fill(GBC.BOTH)); 538 if(!top) 539 bothTables.add(presets, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2)); 536 540 537 541 DblClickWatch dblClickWatch = new DblClickWatch(); … … 644 648 645 649 for(TaggingPreset t : TaggingPresetPreference.taggingPresets) { 646 if( t.types == null || !((relations > 0 && !t.types.contains("relation")) &&650 if((t.types == null || !((relations > 0 && !t.types.contains("relation")) && 647 651 (nodes > 0 && !t.types.contains("node")) && 648 652 (ways+closedways > 0 && !t.types.contains("way")) && 649 (closedways > 0 && !t.types.contains("closedway")))) 653 (closedways > 0 && !t.types.contains("closedway")))) && t.isShowable()) 650 654 { 651 655 int found = 0; -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r2170 r2193 678 678 } 679 679 680 public boolean isShowable() 681 { 682 for(Item i : data) 683 { 684 if(!(i instanceof Optional || i instanceof Space || i instanceof Key)) 685 return true; 686 } 687 return false; 688 } 689 680 690 public void actionPerformed(ActionEvent e) { 681 691 if (Main.main == null) return;
Note:
See TracChangeset
for help on using the changeset viewer.