diff --git a/src/org/openstreetmap/josm/Main.java b/src/org/openstreetmap/josm/Main.java
index 70e04b7..1a528fa 100644
|
a
|
b
|
public abstract class Main {
|
| 595 | 595 | */ |
| 596 | 596 | public Main() { |
| 597 | 597 | main = this; |
| 598 | | mainPanel.addAndFireMapFrameListener(new MapFrameListener() { |
| | 598 | mainPanel.addMapFrameListener(new MapFrameListener() { |
| 599 | 599 | @Override |
| 600 | 600 | public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { |
| 601 | 601 | redoUndoListener.commandChanged(0, 0); |
diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java
index 58ebfc2..ea78b8e 100644
|
a
|
b
|
public class MainApplication extends Main {
|
| 316 | 316 | |
| 317 | 317 | initApplicationPreferences(); |
| 318 | 318 | |
| 319 | | // Can only be called after preferences are initialized. |
| 320 | | // We can move this to MainPanel constructor as soon as noone depends on Main#panel any more. |
| 321 | | GuiHelper.runInEDTAndWait(new Runnable() { |
| 322 | | @Override |
| 323 | | public void run() { |
| 324 | | mainPanel.updateContent(); |
| 325 | | } |
| 326 | | }); |
| 327 | | |
| 328 | 319 | Policy.setPolicy(new Policy() { |
| 329 | 320 | // Permissions for plug-ins loaded when josm is started via webstart |
| 330 | 321 | private PermissionCollection pc; |
| … |
… |
public class MainApplication extends Main {
|
| 404 | 395 | |
| 405 | 396 | I18n.setupLanguageFonts(); |
| 406 | 397 | |
| | 398 | // Can only be called after preferences are initialized. |
| | 399 | // We can move this to MainPanel constructor as soon as noone depends on Main#panel any more. |
| | 400 | GuiHelper.runInEDTAndWait(new Runnable() { |
| | 401 | @Override |
| | 402 | public void run() { |
| | 403 | mainPanel.updateContent(); |
| | 404 | } |
| | 405 | }); |
| | 406 | |
| 407 | 407 | WindowGeometry geometry = WindowGeometry.mainWindow("gui.geometry", |
| 408 | 408 | args.containsKey(Option.GEOMETRY) ? args.get(Option.GEOMETRY).iterator().next() : null, |
| 409 | 409 | !args.containsKey(Option.NO_MAXIMIZE) && Main.pref.getBoolean("gui.maximized", false)); |