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.patterns.HelperClasses.MyPatternBase;
12:
13: import com.togethersoft.openapi.sci.SciClass;
14: import com.togethersoft.openapi.sci.pattern.SciPatternProperty;
15:
16: public class MyClassPatternBase extends MyPatternBase {
17:
18: public SciClass getSelectedClass() {
19: Object selectedObject = getProperties().getPropertyValue(
20: SciPatternProperty.ELEMENT);
21: if (selectedObject != null
22: && selectedObject instanceof SciClass) {
23: return (SciClass) selectedObject;
24: } else {
25: return null;
26: }
27: }
28:
29: }
|