Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.WorkspaceProjectConfig


      boolean closeOnStartup = getSettings().getBoolean( UISettings.CLOSE_PROJECTS );
      List<WorkspaceProjectConfig> projects = workspaceConfig.getSoapuiWorkspace().getProjectList();
      for( int i = 0; i < projects.size(); i++ )
      {
        WorkspaceProjectConfig wsc = projects.get( i );
        String str = PathUtils.denormalizePath( wsc.getStringValue() );

        str = PathUtils.adjustRelativePath( str, getProjectRoot(), this );

        try
        {
          // WsdlProject project = new WsdlProject( str, this, false,
          // !closeOnStartup &&
          // wsc.getStatus() != Status.CLOSED && wsc.getType() !=
          // Type.REMOTE, wsc.getName(), null);
          WsdlProject project = ( WsdlProject )ProjectFactoryRegistry.getProjectFactory( "wsdl" ).createNew( str,
              this, false, !closeOnStartup && wsc.getStatus() != Status.CLOSED && wsc.getType() != Type.REMOTE,
              wsc.getName(), null );

          projectList.add( project );
        }
        catch( Exception e )
        {
View Full Code Here


        String path = project.getPath();
        if( path != null )
        {
          path = PathUtils.createRelativePath( path, getProjectRoot(), this );

          WorkspaceProjectConfig wpc = WorkspaceProjectConfig.Factory.newInstance();
          wpc.setStringValue( PathUtils.normalizePath( path ) );
          if( project.isRemote() )
            wpc.setType( Type.REMOTE );

          if( !project.isOpen() )
          {
            if( project.getEncrypted() == 0 )
            {
              wpc.setStatus( Status.CLOSED );
            }
            else
            {
              wpc.setStatus( Status.CLOSED_AND_ENCRYPTED );
            }
          }

          wpc.setName( project.getName() );
          projects.add( wpc );
        }
      }

      workspaceConfig.getSoapuiWorkspace().setProjectArray(
View Full Code Here

    private void saveWorkspaceProjectConfig(List<WorkspaceProjectConfig> projects, WsdlProject project) {
        String path = project.getPath();
        if (path != null) {
            path = PathUtils.createRelativePath(path, getProjectRoot(), this);

            WorkspaceProjectConfig wpc = WorkspaceProjectConfig.Factory.newInstance();
            wpc.setStringValue(PathUtils.normalizePath(path));
            if (project.isRemote()) {
                wpc.setType(Type.REMOTE);
            }

            if (!project.isOpen()) {
                if (project.getEncryptionStatus() == NOT_ENCRYPTED) {
                    wpc.setStatus(Status.CLOSED);
                } else {
                    wpc.setStatus(Status.CLOSED_AND_ENCRYPTED);
                }
            }

            wpc.setName(project.getName());
            projects.add(wpc);
        }
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.WorkspaceProjectConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.