Revision 749068ba src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java

b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
35 35
package gr.grnet.pithos.web.client.commands;
36 36

  
37 37
import com.google.gwt.core.client.Scheduler;
38
import gr.grnet.pithos.web.client.GSS;
38
import gr.grnet.pithos.web.client.Pithos;
39 39
import gr.grnet.pithos.web.client.foldertree.File;
40 40
import gr.grnet.pithos.web.client.foldertree.Folder;
41 41
import gr.grnet.pithos.web.client.foldertree.Resource;
42
import gr.grnet.pithos.web.client.rest.MultiplePostCommand;
43
import gr.grnet.pithos.web.client.rest.PostCommand;
44 42
import gr.grnet.pithos.web.client.rest.PostRequest;
45
import gr.grnet.pithos.web.client.rest.PutRequest;
46 43
import gr.grnet.pithos.web.client.rest.RestException;
47
import gr.grnet.pithos.web.client.rest.resource.FileResource;
48
import gr.grnet.pithos.web.client.rest.resource.FolderResource;
49
import gr.grnet.pithos.web.client.rest.resource.RestResourceWrapper;
50 44

  
51
import java.util.ArrayList;
52 45
import java.util.Iterator;
53 46
import java.util.List;
54 47

  
55 48

  
56 49
import com.google.gwt.core.client.GWT;
57 50
import com.google.gwt.user.client.Command;
58
import com.google.gwt.user.client.DeferredCommand;
59 51
import com.google.gwt.user.client.ui.PopupPanel;
60 52

  
61 53
/**
......
66 58
 */
67 59
public class ToTrashCommand implements Command{
68 60
	private PopupPanel containerPanel;
69
    private GSS app;
61
    private Pithos app;
70 62
    private Object resource;
71 63

  
72
	public ToTrashCommand(GSS _app, PopupPanel _containerPanel, Object _resource){
64
	public ToTrashCommand(Pithos _app, PopupPanel _containerPanel, Object _resource){
73 65
		containerPanel = _containerPanel;
74 66
        app = _app;
75 67
        resource = _resource;
......
149 141
                public void onError(Throwable t) {
150 142
                    GWT.log("", t);
151 143
                    if (t instanceof RestException) {
152
                        GSS.get().displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText());
144
                        Pithos.get().displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText());
153 145
                    }
154 146
                    else
155
                        GSS.get().displayError("System error unable to copy file: "+t.getMessage());
147
                        Pithos.get().displayError("System error unable to copy file: "+t.getMessage());
156 148
                }
157 149
            };
158 150
            trashFile.setHeader("X-Auth-Token", app.getToken());

Also available in: Unified diff