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: /* Generated by Together */
12:
13: package de.uka.ilkd.key.casetool.together;
14:
15: import com.togethersoft.openapi.ide.IdeAccess;
16: import com.togethersoft.openapi.ide.project.IdeProjectManagerAccess;
17:
18: import de.uka.ilkd.key.casetool.ReprModel;
19:
20: public class TogetherReprModel implements ReprModel {
21: /**
22: * @return the path to the xmifile associated to the current project.
23: * If no current project available it returns "".
24: */
25: public String getActXmifile() {
26: String result;
27: if (IdeProjectManagerAccess.getProjectManager()
28: .getActiveProject() == null) {
29: // no open project
30: result = "";
31: } else {
32: StringBuffer fileName = new StringBuffer(IdeAccess
33: .getProjectManager().getActiveProject()
34: .getFileName());
35: fileName.replace(fileName.length() - 3, fileName.length(),
36: "xml");
37: result = fileName.toString();
38: }
39: return result;
40: }
41: }
|