Revision f72af3c3 web_client/src/gr/grnet/pithos/web/client/commands/EmptyTrashCommand.java

b/web_client/src/gr/grnet/pithos/web/client/commands/EmptyTrashCommand.java
55 55

  
56 56
	@Override
57 57
	public void execute() {
58
		containerPanel.hide();
59
//		DeleteCommand df = new DeleteCommand(app, app.getTreeView().getTrash().getUri()){
60
//
61
//			@Override
62
//			public void onComplete() {
63
//				app.getTreeView().updateTrashNode();
64
//				app.showFileList(true);
65
//			}
66
//
67
//			@Override
68
//			public void onError(Throwable t) {
69
//				GWT.log("", t);
70
//				if(t instanceof RestException){
71
//					int statusCode = ((RestException)t).getHttpStatusCode();
72
//					if(statusCode == 405)
73
//						app.displayError("You don't have the necessary permissions");
74
//					else if(statusCode == 404)
75
//						app.displayError("Resource does not exist");
76
//					else
77
//						app.displayError("Unable to empty trash:"+((RestException)t).getHttpStatusText());
78
//				}
79
//				else
80
//					app.displayError("System error emptying trash:"+t.getMessage());
81
//			}
82
//		};
83
//		DeferredCommand.addCommand(df);
58
		if (containerPanel != null)
59
			containerPanel.hide();
84 60
	}
85

  
86 61
}

Also available in: Unified diff