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

b/src/gr/grnet/pithos/web/client/commands/EmptyTrashCommand.java
34 34
 */
35 35
package gr.grnet.pithos.web.client.commands;
36 36

  
37
import gr.grnet.pithos.web.client.GSS;
37
import gr.grnet.pithos.web.client.Pithos;
38 38
import gr.grnet.pithos.web.client.rest.DeleteCommand;
39 39
import gr.grnet.pithos.web.client.rest.RestException;
40 40

  
......
57 57
	@Override
58 58
	public void execute() {
59 59
		containerPanel.hide();
60
		DeleteCommand df = new DeleteCommand(GSS.get().getTreeView().getTrash().getUri()){
60
		DeleteCommand df = new DeleteCommand(Pithos.get().getTreeView().getTrash().getUri()){
61 61

  
62 62
			@Override
63 63
			public void onComplete() {
64
				GSS.get().getTreeView().updateTrashNode();
65
				GSS.get().showFileList(true);
64
				Pithos.get().getTreeView().updateTrashNode();
65
				Pithos.get().showFileList(true);
66 66
			}
67 67

  
68 68
			@Override
......
71 71
				if(t instanceof RestException){
72 72
					int statusCode = ((RestException)t).getHttpStatusCode();
73 73
					if(statusCode == 405)
74
						GSS.get().displayError("You don't have the necessary permissions");
74
						Pithos.get().displayError("You don't have the necessary permissions");
75 75
					else if(statusCode == 404)
76
						GSS.get().displayError("Resource does not exist");
76
						Pithos.get().displayError("Resource does not exist");
77 77
					else
78
						GSS.get().displayError("Unable to empty trash:"+((RestException)t).getHttpStatusText());
78
						Pithos.get().displayError("Unable to empty trash:"+((RestException)t).getHttpStatusText());
79 79
				}
80 80
				else
81
					GSS.get().displayError("System error emptying trash:"+t.getMessage());
81
					Pithos.get().displayError("System error emptying trash:"+t.getMessage());
82 82
			}
83 83
		};
84 84
		DeferredCommand.addCommand(df);

Also available in: Unified diff