Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToStringMap.toXml()


    String filePath = ( ( WsdlProject )project ).getPath();

    String recent = SoapUI.getSettings().getString( RECENT_PROJECTS_SETTING, null );
    StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml( recent );
    history.put( filePath, project.getName() );
    SoapUI.getSettings().setString( RECENT_PROJECTS_SETTING, history.toXml() );

    DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
        ImportWsdlProjectAction.SOAPUI_ACTION_ID, null, null, false, filePath );
    mapping.setName( project.getName() );
    mapping.setDescription( "Switches to the [" + project.getName() + "] project" );
View Full Code Here


    String recent = SoapUI.getSettings().getString( RECENT_WORKSPACES_SETTING, null );
    if( recent != null )
    {
      StringToStringMap history = StringToStringMap.fromXml( recent );
      history.remove( filePath );
      SoapUI.getSettings().setString( RECENT_WORKSPACES_SETTING, history.toXml() );
    }

    for( int c = 0; c < recentWorkspacesMenu.getItemCount(); c++ )
    {
      JMenuItem item = recentWorkspacesMenu.getItem( c );
View Full Code Here

    System.out.println( recentWorkspacesMenu.getItem( recentWorkspacesMenu.getItemCount() - 1 ).getText() );

    String recent = SoapUI.getSettings().getString( RECENT_WORKSPACES_SETTING, null );
    StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml( recent );
    history.put( filePath, workspace.getName() );
    SoapUI.getSettings().setString( RECENT_WORKSPACES_SETTING, history.toXml() );

    if( isEmptyMarker( recentWorkspacesMenu.getItem( 0 ) ) )
      recentWorkspacesMenu.remove( 0 );

    recentEditorsMenu.removeAll();
View Full Code Here

      if( !UISupport.confirm( "Remove all Projects from this menu?", "Question" ) )
        return;

      StringToStringMap emptyMap = new StringToStringMap();

      SoapUI.getSettings().setString( RECENT_PROJECTS_SETTING, emptyMap.toXml() );
      updateRecentProjectsMenu();

    }
  }
View Full Code Here

      if( !UISupport.confirm( "Remove all Workspaces from this menu?", "Question" ) )
        return;

      StringToStringMap emptyMap = new StringToStringMap();

      SoapUI.getSettings().setString( RECENT_WORKSPACES_SETTING, emptyMap.toXml() );
      updateRecentWorkspacesMenu();

    }
  }
View Full Code Here

    String recent = SoapUI.getSettings().getString( RECENT_PROJECTS_SETTING, null );
    if( recent != null )
    {
      StringToStringMap history = StringToStringMap.fromXml( recent );
      history.remove( filePath );
      SoapUI.getSettings().setString( RECENT_PROJECTS_SETTING, history.toXml() );
    }

    for( int c = 0; c < recentProjectsMenu.getItemCount() - 2; c++ )
    {
      JMenuItem item = recentProjectsMenu.getItem( c );
View Full Code Here

        String recent = SoapUI.getSettings().getString(RECENT_PROJECTS_SETTING, null);
        if (recent != null) {
            StringToStringMap history = StringToStringMap.fromXml(recent);
            history.remove(filePath);
            SoapUI.getSettings().setString(RECENT_PROJECTS_SETTING, history.toXml());
        }

        for (int c = 0; c < recentProjectsMenu.getItemCount() - 2; c++) {
            JMenuItem item = recentProjectsMenu.getItem(c);
            if (item == null) {
View Full Code Here

        String filePath = ((WsdlProject) project).getPath();

        String recent = SoapUI.getSettings().getString(RECENT_PROJECTS_SETTING, null);
        StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml(recent);
        history.put(filePath, project.getName());
        SoapUI.getSettings().setString(RECENT_PROJECTS_SETTING, history.toXml());

        DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
                ImportWsdlProjectAction.SOAPUI_ACTION_ID, null, null, false, filePath);
        mapping.setName(project.getName());
        mapping.setDescription("Switches to the [" + project.getName() + "] project");
View Full Code Here

        String recent = SoapUI.getSettings().getString(RECENT_WORKSPACES_SETTING, null);
        if (recent != null) {
            StringToStringMap history = StringToStringMap.fromXml(recent);
            history.remove(filePath);
            SoapUI.getSettings().setString(RECENT_WORKSPACES_SETTING, history.toXml());
        }

        for (int c = 0; c < recentWorkspacesMenu.getItemCount(); c++) {
            JMenuItem item = recentWorkspacesMenu.getItem(c);
            if (item == null) {
View Full Code Here

        System.out.println(recentWorkspacesMenu.getItem(recentWorkspacesMenu.getItemCount() - 1).getText());

        String recent = SoapUI.getSettings().getString(RECENT_WORKSPACES_SETTING, null);
        StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml(recent);
        history.put(filePath, workspace.getName());
        SoapUI.getSettings().setString(RECENT_WORKSPACES_SETTING, history.toXml());

        if (isEmptyMarker(recentWorkspacesMenu.getItem(0))) {
            recentWorkspacesMenu.remove(0);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.