Changeset 14154 in josm for trunk/src/org
- Timestamp:
- 2018-08-13T09:08:04+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/ChangesetHeaderDownloadTask.java
r14153 r14154 73 73 /** 74 74 * Creates the download task for a collection of changeset ids. Uses a {@link org.openstreetmap.josm.gui.PleaseWaitDialog} 75 * whose parent is {@link Main #parent}.75 * whose parent is {@link MainApplication#getMainFrame}. 76 76 * 77 77 * Null ids or or ids <= 0 in the id collection are ignored. -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r14153 r14154 66 66 67 67 import org.jdesktop.swinghelper.debug.CheckThreadViolationRepaintManager; 68 import org.openstreetmap.josm.Main;69 68 import org.openstreetmap.josm.actions.DeleteAction; 70 69 import org.openstreetmap.josm.actions.JosmAction; … … 150 149 import org.openstreetmap.josm.spi.lifecycle.Lifecycle; 151 150 import org.openstreetmap.josm.spi.preferences.Config; 152 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;153 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;154 151 import org.openstreetmap.josm.tools.FontsManager; 155 152 import org.openstreetmap.josm.tools.GBC; … … 175 172 */ 176 173 @SuppressWarnings("deprecation") 177 public class MainApplication extends Main {174 public class MainApplication extends org.openstreetmap.josm.Main { 178 175 179 176 /** … … 857 854 } 858 855 updateSystemProperties(); 859 Preferences.main().addPreferenceChangeListener(new PreferenceChangedListener() { 860 @Override 861 public void preferenceChanged(PreferenceChangeEvent e) { 862 updateSystemProperties(); 863 } 864 }); 856 Preferences.main().addPreferenceChangeListener(e -> updateSystemProperties()); 865 857 866 858 checkIPv6(); … … 887 879 } 888 880 mainPanel = mainFrame.getPanel(); 889 Main.parent = mainFrame;881 org.openstreetmap.josm.Main.parent = mainFrame; 890 882 891 883 if (args.hasOption(Option.LOAD_PREFERENCES)) { -
trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
r14153 r14154 17 17 18 18 import javax.swing.Icon; 19 import javax.swing.JFrame;20 19 import javax.swing.JMenu; 21 20 import javax.swing.JMenuItem; … … 57 56 if (menu != null) { 58 57 // Compute max height of current screen 59 int maxHeight = WindowGeometry.getMaxDimensionOnScreen(menu).height - ((JFrame) MainApplication.getMainFrame()).getInsets().top;58 int maxHeight = WindowGeometry.getMaxDimensionOnScreen(menu).height - MainApplication.getMainFrame().getInsets().top; 60 59 61 60 // Remove top fixed part height … … 312 311 } 313 312 314 int allowedHeight = WindowGeometry.getMaxDimensionOnScreen(menu).height - ((JFrame) MainApplication.getMainFrame()).getInsets().top;313 int allowedHeight = WindowGeometry.getMaxDimensionOnScreen(menu).height - MainApplication.getMainFrame().getInsets().top; 315 314 316 315 boolean mustSCroll = allItemsHeight > allowedHeight; -
trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java
r14115 r14154 165 165 166 166 protected void appendPrimitive(OsmPrimitive p, JsonArrayBuilder array) { 167 if (p.isIncomplete()) { 168 return; 169 } else if (SKIP_EMPTY_NODES.get() && p instanceof Node && p.getKeys().isEmpty()) { 167 if (p.isIncomplete() || 168 (SKIP_EMPTY_NODES.get() && p instanceof Node && p.getKeys().isEmpty())) { 170 169 return; 171 170 }
Note:
See TracChangeset
for help on using the changeset viewer.