mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-22 08:22:04 +03:00
Removed lots of calls to BaseNoGui.getPlatform(): static is evil
This commit is contained in:
@ -50,11 +50,11 @@ public abstract class AbstractGUITest {
|
||||
|
||||
FailOnThreadViolationRepaintManager.install();
|
||||
|
||||
Base.initPlatform();
|
||||
BaseNoGui.initPlatform();
|
||||
Preferences.init(null);
|
||||
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
||||
Theme.init();
|
||||
Base.getPlatform().setLookAndFeel();
|
||||
BaseNoGui.getPlatform().setLookAndFeel();
|
||||
Base.untitledFolder = Base.createTempFolder("untitled");
|
||||
DeleteFilesOnShutdown.add(Base.untitledFolder);
|
||||
|
||||
|
@ -37,8 +37,8 @@ public abstract class AbstractWithPreferencesTest {
|
||||
@Before
|
||||
public void init() throws Exception {
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(DeleteFilesOnShutdown.INSTANCE));
|
||||
Base.initPlatform();
|
||||
Base.getPlatform().init();
|
||||
BaseNoGui.initPlatform();
|
||||
BaseNoGui.getPlatform().init();
|
||||
Preferences.init(null);
|
||||
Theme.init();
|
||||
|
||||
|
Reference in New Issue
Block a user