Changeset 14388 in josm
- Timestamp:
- 2018-10-30T23:05:04+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r14221 r14388 53 53 import org.openstreetmap.josm.actions.FullscreenToggleAction; 54 54 import org.openstreetmap.josm.actions.GpxExportAction; 55 import org.openstreetmap.josm.actions.HatchAreaOutsideDownloadAction; 55 56 import org.openstreetmap.josm.actions.HelpAction; 56 57 import org.openstreetmap.josm.actions.HistoryInfoAction; … … 221 222 /** View / Wireframe View */ 222 223 public final WireframeToggleAction wireFrameToggleAction = new WireframeToggleAction(); 224 /** View / Hatch area outside download */ 225 public final HatchAreaOutsideDownloadAction hatchAreaOutsideDownloadAction = new HatchAreaOutsideDownloadAction(); 223 226 /** View / Advanced info */ 224 227 public final InfoAction info = new InfoAction(); … … 651 654 * @since 10340 652 655 */ 656 // CHECKSTYLE.OFF: ExecutableStatementCountCheck 653 657 public void initialize() { 654 658 moreToolsMenu.setVisible(false); … … 715 719 wireframe.setAccelerator(wireFrameToggleAction.getShortcut().getKeyStroke()); 716 720 wireFrameToggleAction.addButtonModel(wireframe.getModel()); 721 final JCheckBoxMenuItem hatchAreaOutsideDownloadMenuItem = hatchAreaOutsideDownloadAction.getCheckbox(); 722 viewMenu.add(hatchAreaOutsideDownloadMenuItem); 723 ExpertToggleAction.addVisibilitySwitcher(hatchAreaOutsideDownloadMenuItem); 717 724 718 725 viewMenu.add(new MapPaintMenu()); … … 838 845 new PresetsMenuEnabler(presetsMenu); 839 846 } 847 // CHECKSTYLE.ON: ExecutableStatementCountCheck 840 848 841 849 /** -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r14349 r14388 44 44 45 45 import org.openstreetmap.josm.actions.ExpertToggleAction; 46 import org.openstreetmap.josm.actions.HatchAreaOutsideDownloadAction; 46 47 import org.openstreetmap.josm.actions.RenameLayerAction; 47 48 import org.openstreetmap.josm.actions.ToggleUploadDiscouragedLayerAction; … … 499 500 } 500 501 try { 501 g.fill(a); 502 if (HatchAreaOutsideDownloadAction.isHatchEnabled()) { 503 g.fill(a); 504 } 502 505 } catch (ArrayIndexOutOfBoundsException e) { 503 506 // #16686 - AIOOBE in java.awt.TexturePaintContext$Int.setRaster
Note:
See TracChangeset
for help on using the changeset viewer.