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: package de.uka.ilkd.key.casetool.together;
11:
12: import de.uka.ilkd.key.java.Services;
13: import de.uka.ilkd.key.proof.init.DefaultEnvInput;
14: import de.uka.ilkd.key.proof.init.ModStrategy;
15: import de.uka.ilkd.key.proof.init.ProofInputException;
16:
17: /**
18: * EnvInput for Together.
19: */
20: public class TogetherEnvInput extends DefaultEnvInput {
21:
22: private final TogetherModelClass modelClass;
23:
24: //-------------------------------------------------------------------------
25: //constructors
26: //-------------------------------------------------------------------------
27:
28: public TogetherEnvInput(TogetherModelClass modelClass) {
29: super ("Together input", modelClass.getRootDirectory());
30: this .modelClass = modelClass;
31: }
32:
33: //-------------------------------------------------------------------------
34: //public interface
35: //-------------------------------------------------------------------------
36:
37: public void read(ModStrategy mod) throws ProofInputException {
38: if (initConfig == null) {
39: throw new IllegalStateException("InitConfig not set.");
40: }
41:
42: //create UML info
43: Services services = initConfig.getServices();
44: services.setUMLInfo(modelClass.createUMLInfo(services));
45: }
46: }
|