View Javadoc

    1   /*
    2    *  soapUI, copyright (C) 2004-2007 eviware.com
    3    *
    4    *  soapUI is free software; you can redistribute it and/or modify it under the
    5    *  terms of version 2.1 of the GNU Lesser General Public License as published by
    6    *  the Free Software Foundation.
    7    *
    8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
    9    *  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  {
    29     public Project getProjectAt( int index );
    30
    31     public Project getProjectByName( String projectName );
    32
    33     public int getProjectCount();
    34
    35     public void onClose();
    36
    37     public void save( boolean workspaceOnly );
    38
    39     public void addWorkspaceListener( WorkspaceListener listener );
    40
    41     public void removeWorkspaceListener( WorkspaceListener listener );
    42
    43     public Project createProject(String name, File file) throws SoapUIException;
    44
    45     public void removeProject(Project project);
    46
    47     public Project importProject( String filename ) throws SoapUIException;
    48
    49  	public int getIndexOfProject(Project project);
    50
    51  	public String getPath();
    52
    53  	public void changeWorkspace( File newPath ) throws SoapUIException;
    54  }