/*
 * EnvironmentPresenter.java
 *
 * Copyright (C) 2009-12 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.workbench.views.environment;

import org.rstudio.core.client.command.CommandBinder;
import org.rstudio.studio.client.workbench.WorkbenchView;
import org.rstudio.studio.client.workbench.commands.Commands;
import org.rstudio.studio.client.workbench.views.BasePresenter;
import org.rstudio.studio.client.workbench.views.environment.model.EnvironmentServerOperations;


import com.google.inject.Inject;

public class EnvironmentPresenter extends BasePresenter
{
   public interface Binder extends CommandBinder<Commands, EnvironmentPresenter> {}
   
   public interface Display extends WorkbenchView
   {
   }
   
   @Inject
   public EnvironmentPresenter(Display view,
                               EnvironmentServerOperations server)
   {
      super(view);
      
      view_ = view;
      server_ = server;
      
   }
   
   private final Display view_;
   private final EnvironmentServerOperations server_;
}

@@ -698,24 +698,79 @@
 mandBinder;%0A
+import org.rstudio.studio.client.common.GlobalDisplay;%0A
 import org.r
@@ -1408,10 +1408,70 @@
 rver
+,%0A                               GlobalDisplay globalDisplay
 )%0A
-
    %7B
@@ -1541,16 +1541,54 @@
 server;%0A
+      globalDisplay_ = globalDisplay;%0A
       %0A 
@@ -1627,16 +1627,16 @@
  view_;%0A
-
    priva
@@ -1681,10 +1681,57 @@
 erver_;%0A
+   private final GlobalDisplay globalDisplay_;%0A
 %7D%0A

add global display accessor