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: package de.uka.ilkd.key.gui.nodeviews;
09:
10: import javax.swing.JMenuItem;
11:
12: import de.uka.ilkd.key.rule.BuiltInRule;
13:
14: /**
15: * equal to TacletMenuItem but for BuiltInRules
16: */
17: class DefaultBuiltInRuleMenuItem extends JMenuItem implements
18: BuiltInRuleMenuItem {
19:
20: private BuiltInRule connectedTo;
21:
22: public DefaultBuiltInRuleMenuItem(BuiltInRule connectedTo) {
23: super (connectedTo.name().toString());
24: this .connectedTo = connectedTo;
25: }
26:
27: public BuiltInRule connectedTo() {
28: return connectedTo;
29: }
30:
31: }
|