01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: // This file is part of KeY - Integrated Deductive Software Design
10: // Copyright (C) 2001-2004 Universitaet Karlsruhe, Germany
11: // Universitaet Koblenz-Landau, Germany
12: // Chalmers University of Technology, Sweden
13: //
14: // The KeY system is protected by the GNU General Public License.
15: // See LICENSE.TXT for details.
16: package de.uka.ilkd.key.gui.assistant;
17:
18: /**
19: * This is one of the simplest actions, display just a text on the
20: * user interface of the proof assistant.
21: */
22: public class DisplayTextAction implements AIAction {
23:
24: private final String text;
25:
26: /**
27: * display the given text
28: */
29: public DisplayTextAction(String text) {
30: this .text = text;
31: }
32:
33: /**
34: * execute the action
35: */
36: public void execute(ProofAssistantController ctrl) {
37: ctrl.displayText(text);
38: }
39:
40: }
|