package org.zanata.webtrans.client.presenter;

import java.util.ArrayList;

import net.customware.gwt.presenter.client.EventBus;
import net.customware.gwt.presenter.client.widget.WidgetDisplay;
import net.customware.gwt.presenter.client.widget.WidgetPresenter;

import org.zanata.webtrans.shared.model.Person;
import org.zanata.webtrans.shared.model.WorkspaceContext;

import com.google.inject.Inject;

public class WorkspaceUsersPresenter extends WidgetPresenter<WorkspaceUsersPresenter.Display>
{

   public interface Display extends WidgetDisplay
   {
      void clearUserList();

      void addUser(String name);
   }

   @Inject
   public WorkspaceUsersPresenter(final Display display, final EventBus eventBus, WorkspaceContext workspaceContext)
   {
      super(display, eventBus);
   }

   @Override
   protected void onBind()
   {
   }

   @Override
   protected void onUnbind()
   {
      // TODO Auto-generated method stub
   }

   @Override
   public void onRevealDisplay()
   {
      // TODO Auto-generated method stub
   }

   public void setUserList(ArrayList<Person> users)
   {
      display.clearUserList();
      for (Person p : users)
      {
         display.addUser(p.getName());
      }
   }

}

@@ -306,66 +306,8 @@
 son;
-%0Aimport org.zanata.webtrans.shared.model.WorkspaceContext;
 %0A%0Aim
@@ -653,43 +653,8 @@
 tBus
-, WorkspaceContext workspaceContext
 )%0A  
@@ -796,49 +796,8 @@
   %7B%0A
-      // TODO Auto-generated method stub%0A
    %7D
@@ -848,54 +848,13 @@
 y()%0A
+
    %7B%0A
-      // TODO Auto-generated method stub%0A
    %7D

remove unused inject from workspace presenter