mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
Merge pull request #2433 from Manindra29/master
Added accessor methods for Editor Status properties
This commit is contained in:
@@ -2551,6 +2551,21 @@ 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.
|
||||
|
||||
@@ -36,11 +36,11 @@ public class EditorStatus extends JPanel {
|
||||
Color[] bgcolor;
|
||||
Color[] fgcolor;
|
||||
|
||||
static final int NOTICE = 0;
|
||||
static final int ERR = 1;
|
||||
public static final int NOTICE = 0;
|
||||
public static final int ERR = 1;
|
||||
//static final int PROMPT = 2;
|
||||
//static final int EDIT = 3;
|
||||
static final int EDIT = 2;
|
||||
public static final int EDIT = 2;
|
||||
|
||||
static final int YES = 1;
|
||||
static final int NO = 2;
|
||||
|
||||
Reference in New Issue
Block a user