/*
 * PublishStaticDestPage.java
 *
 * Copyright (C) 2009-15 by RStudio, Inc.
 *
 * Unless you have received this program directly from RStudio pursuant
 * to the terms of a commercial license agreement with RStudio, then
 * this program is licensed to you under the terms of version 3 of the
 * GNU Affero General Public License. This program is distributed WITHOUT
 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
 *
 */package org.rstudio.studio.client.rsconnect.ui;

import java.util.ArrayList;

import org.rstudio.core.client.widget.WizardNavigationPage;
import org.rstudio.core.client.widget.WizardPage;
import org.rstudio.studio.client.rsconnect.model.RSConnectPublishInput;
import org.rstudio.studio.client.rsconnect.model.RSConnectPublishResult;

public class PublishStaticDestPage 
   extends WizardNavigationPage<RSConnectPublishInput, RSConnectPublishResult>
{
   public PublishStaticDestPage(String title, String subTitle, 
                                RSConnectPublishInput input, boolean asMultiple)
   {
      super(title, subTitle, "Publish To", null, null, createPages(input,
            asMultiple));
   }
   
   private static ArrayList<WizardPage<RSConnectPublishInput, 
                                       RSConnectPublishResult>> 
           createPages(RSConnectPublishInput input, boolean asMultiple)
   {
      ArrayList<WizardPage<RSConnectPublishInput, 
                           RSConnectPublishResult>> pages =
                           new ArrayList<WizardPage<RSConnectPublishInput, 
                                                    RSConnectPublishResult>>();
      pages.add(new PublishRPubsPage("RPubs", "RPubs is a free service from " + 
         "RStudio for sharing documents on the web."));
      pages.add(new PublishFilesPage("A server in your organization", 
         "RStudio Connect enables members of your organization to share and " + 
         "collaborate privately and securely.", 
         RSConnectAccountResources.INSTANCE.localAccountIcon(),
         input, asMultiple, true));
      return pages;
   }
}

@@ -1945,85 +1945,70 @@
 ge(%22
-A server in your organization%22, %0A         %22RStudio Connect enables members of
+RStudio Connect%22, %0A            %22A local service running inside
  you
@@ -2025,25 +2025,25 @@
 tion
- to share
+. Publish
  and %22 +
  %0A  
@@ -2034,26 +2034,28 @@
 lish and %22 +
- 
 %0A
+   
          %22co
@@ -2089,17 +2089,16 @@
 urely.%22,
- 
 %0A       

update text in RStudio Connect publish destination