public final class MainSWT
extends java.lang.Object
Constructor and Description |
---|
MainSWT() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ask(java.lang.String title,
java.lang.String question)
Open dialog to ask yes/no question.
|
static java.lang.String |
askText(java.lang.String question)
Open dialog to ask yes/no question.
|
static void |
displayFile(java.lang.String title,
java.io.File file,
boolean state)
Display file.
|
static void |
enter(java.lang.String string)
Enter input denoted by string
|
static org.eclipse.swt.graphics.Color |
getBackgroundColor()
Get background color.
|
static org.eclipse.swt.graphics.Color |
getClosedColor()
Get color for closed proof tree nodes.
|
static org.eclipse.swt.graphics.Color |
getCurrentColor()
Get color for current proof node.
|
static org.eclipse.swt.graphics.Color |
getOpenColor()
Get color for open proof tree nodes.
|
static java.lang.Thread |
getThread()
Get interpreter thread
|
static boolean |
isRestarted()
Check whether program is to be restarted.
|
static void |
process(Command command)
Process command.
|
static void |
process(java.lang.String cstring)
Process command denoted by string.
|
static void |
resize()
Resize shell based on font setting
|
static void |
resizeFont()
Resize font (from small to big and vice versa)
|
static void |
restart(boolean signal)
Set signal whether program is to be restarted.
|
static void |
run()
Run program after command line processing.
|
static void |
runInternal(Top top,
java.lang.Thread t)
ProgramExplorer interface to ProofNavigator
|
static void |
setInputFocus()
Set focus to input field.
|
static void |
setProof(Proof proof,
boolean enabled)
Set current proof.
|
static void |
setProofState(ProofState state)
Signal current proof state.
|
static void |
setVisible(boolean visible)
Make ProofNavigator visible or invisible.
|
static void |
signalRunning(boolean running)
Signals that prover is running in the background.
|
static void |
updateMenu()
Updates menu depending on current system state.
|
public static void run()
public static void runInternal(Top top, java.lang.Thread t)
top
- the Top instance used by the ProgramExplorert
- the interpreter threadpublic static java.lang.Thread getThread()
public static void restart(boolean signal)
signal
- true iff program is to be restarted.public static boolean isRestarted()
public static void setProof(Proof proof, boolean enabled)
proof
- the current proof.enabled
- true if the proof is to be enabled.public static void setProofState(ProofState state)
state
- the current proof state.public static void displayFile(java.lang.String title, java.io.File file, boolean state)
title
- the title of the display.file
- the file to be displayed.state
- true iff file displays proof state.public static org.eclipse.swt.graphics.Color getOpenColor()
public static org.eclipse.swt.graphics.Color getClosedColor()
public static org.eclipse.swt.graphics.Color getCurrentColor()
public static org.eclipse.swt.graphics.Color getBackgroundColor()
public static void signalRunning(boolean running)
running
- true if running starts, false if running stops.public static void updateMenu()
public static void resize()
public static void resizeFont()
public static void process(java.lang.String cstring)
cstring
- the string denoting the commandpublic static void process(Command command)
command
- the command to be processed.public static void setInputFocus()
public static void enter(java.lang.String string)
string
- the input to be added.public static void setVisible(boolean visible)
visible
- the requested visibility status.public static boolean ask(java.lang.String title, java.lang.String question)
title
- the dialog titlequestion
- the question askedpublic static java.lang.String askText(java.lang.String question)
question
- the question asked