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: //
10:
11: package de.uka.ilkd.key.casetool.together.scripts.menuextension;
12:
13: import de.uka.ilkd.key.casetool.FunctionalityOnModel;
14: import de.uka.ilkd.key.casetool.ModelMethod;
15:
16: /**
17: * The context menu item in Together for computing the specification of a method.
18: * This user-interface element initiates the computation.
19: * @author André Platzer
20: * @version 1.0, 2003-02-24
21: * @stereotype UI
22: * @see de.uka.ilkd.key.cspec.ComputeSpecification
23: */
24: public class OpMenuPoint3 extends OpMenu {
25: public String getMenuEntry() {
26: return "ComputeSpecification";
27: }
28:
29: public String getSubMenuName() {
30: return null;
31: }
32:
33: protected String runCore(ModelMethod modelMethod) {
34: return FunctionalityOnModel.computeSpecification(modelMethod);
35: }
36: }
|