mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Renamed user notifier classes.
This commit is contained in:
parent
1c37189599
commit
bff6f2818b
@ -36,7 +36,7 @@ import processing.app.debug.TargetBoard;
|
|||||||
import processing.app.debug.TargetPackage;
|
import processing.app.debug.TargetPackage;
|
||||||
import processing.app.debug.TargetPlatform;
|
import processing.app.debug.TargetPlatform;
|
||||||
import processing.app.helpers.FileUtils;
|
import processing.app.helpers.FileUtils;
|
||||||
import processing.app.helpers.GUINotifier;
|
import processing.app.helpers.GUIUserNotifier;
|
||||||
import processing.app.helpers.OSUtils;
|
import processing.app.helpers.OSUtils;
|
||||||
import processing.app.helpers.PreferencesMap;
|
import processing.app.helpers.PreferencesMap;
|
||||||
import processing.app.helpers.filefilters.OnlyDirs;
|
import processing.app.helpers.filefilters.OnlyDirs;
|
||||||
@ -106,7 +106,7 @@ public class Base {
|
|||||||
static public void main(String args[]) throws Exception {
|
static public void main(String args[]) throws Exception {
|
||||||
BaseNoGui.initLogger();
|
BaseNoGui.initLogger();
|
||||||
|
|
||||||
BaseNoGui.notifier = new GUINotifier();
|
BaseNoGui.notifier = new GUIUserNotifier();
|
||||||
|
|
||||||
initPlatform();
|
initPlatform();
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ import processing.app.debug.TargetBoard;
|
|||||||
import processing.app.debug.TargetPackage;
|
import processing.app.debug.TargetPackage;
|
||||||
import processing.app.debug.TargetPlatform;
|
import processing.app.debug.TargetPlatform;
|
||||||
import processing.app.debug.TargetPlatformException;
|
import processing.app.debug.TargetPlatformException;
|
||||||
import processing.app.helpers.BasicNotifier;
|
import processing.app.helpers.BasicUserNotifier;
|
||||||
import processing.app.helpers.OSUtils;
|
import processing.app.helpers.OSUtils;
|
||||||
import processing.app.helpers.PreferencesMap;
|
import processing.app.helpers.PreferencesMap;
|
||||||
import processing.app.helpers.UserNotifier;
|
import processing.app.helpers.UserNotifier;
|
||||||
@ -49,7 +49,7 @@ public class BaseNoGui {
|
|||||||
// maps library name to their library folder
|
// maps library name to their library folder
|
||||||
static private LibraryList libraries;
|
static private LibraryList libraries;
|
||||||
|
|
||||||
static UserNotifier notifier = new BasicNotifier();
|
static UserNotifier notifier = new BasicUserNotifier();
|
||||||
|
|
||||||
static public Map<String, TargetPackage> packages;
|
static public Map<String, TargetPackage> packages;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package processing.app.helpers;
|
|||||||
|
|
||||||
import static processing.app.I18n._;
|
import static processing.app.I18n._;
|
||||||
|
|
||||||
public class BasicNotifier implements UserNotifier {
|
public class BasicUserNotifier implements UserNotifier {
|
||||||
|
|
||||||
public void showError(String title, String message, Throwable e) {
|
public void showError(String title, String message, Throwable e) {
|
||||||
showError(title, message, e, 1);
|
showError(title, message, e, 1);
|
@ -6,7 +6,7 @@ import java.awt.Frame;
|
|||||||
|
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
|
||||||
public class GUINotifier implements UserNotifier {
|
public class GUIUserNotifier implements UserNotifier {
|
||||||
|
|
||||||
public void showError(String title, String message, Throwable e) {
|
public void showError(String title, String message, Throwable e) {
|
||||||
showError(title, message, e, 1);
|
showError(title, message, e, 1);
|
Loading…
x
Reference in New Issue
Block a user