01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.model.workspace;
14:
15: import java.io.File;
16:
17: import com.eviware.soapui.model.ModelItem;
18: import com.eviware.soapui.model.project.Project;
19: import com.eviware.soapui.support.SoapUIException;
20:
21: /**
22: * SoapUI workspace behaviour
23: *
24: * @author Ole.Matzura
25: */
26:
27: public interface Workspace extends ModelItem {
28: public Project getProjectAt(int index);
29:
30: public Project getProjectByName(String projectName);
31:
32: public int getProjectCount();
33:
34: public void onClose();
35:
36: public void save(boolean workspaceOnly);
37:
38: public void addWorkspaceListener(WorkspaceListener listener);
39:
40: public void removeWorkspaceListener(WorkspaceListener listener);
41:
42: public Project createProject(String name, File file)
43: throws SoapUIException;
44:
45: public void removeProject(Project project);
46:
47: public Project importProject(String filename)
48: throws SoapUIException;
49:
50: public int getIndexOfProject(Project project);
51:
52: public String getPath();
53:
54: public void changeWorkspace(File newPath) throws SoapUIException;
55: }
|