Merge branch 'master' of github.com:jdf/processing

This commit is contained in:
Jonathan Feinberg
2014-04-10 14:26:04 -04:00
8 changed files with 35 additions and 6 deletions

View File

@@ -2550,6 +2550,22 @@ public abstract class Editor extends JFrame implements RunnerListener {
}
}
/**
* Returns the current notice message in the editor status bar.
*/
public String getStatusMessage(){
return status.message;
}
/**
* Returns the current mode of the editor status bar: NOTICE, ERR or EDIT.
*/
public int getStatusMode(){
return status.mode;
}
/**
* Clear the status area.

View File

@@ -36,11 +36,9 @@ public class EditorStatus extends JPanel {
Color[] bgcolor;
Color[] fgcolor;
static final int NOTICE = 0;
static final int ERR = 1;
//static final int PROMPT = 2;
//static final int EDIT = 3;
static final int EDIT = 2;
static public final int NOTICE = 0;
static public final int ERR = 1;
static public final int EDIT = 2;
static final int YES = 1;
static final int NO = 2;