Revision ebead1b5 src/gr/grnet/pithos/web/client/DeleteFileDialog.java
b/src/gr/grnet/pithos/web/client/DeleteFileDialog.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client; |
36 | 36 |
|
37 |
import com.google.gwt.core.client.Scheduler; |
|
38 | 37 |
import gr.grnet.pithos.web.client.MessagePanel.Images; |
39 | 38 |
import gr.grnet.pithos.web.client.foldertree.File; |
40 | 39 |
import gr.grnet.pithos.web.client.foldertree.Resource; |
... | ... | |
45 | 44 |
import java.util.List; |
46 | 45 |
|
47 | 46 |
import com.google.gwt.core.client.GWT; |
47 |
import com.google.gwt.core.client.Scheduler; |
|
48 | 48 |
import com.google.gwt.dom.client.NativeEvent; |
49 | 49 |
import com.google.gwt.event.dom.client.ClickEvent; |
50 | 50 |
import com.google.gwt.event.dom.client.ClickHandler; |
... | ... | |
58 | 58 |
import com.google.gwt.user.client.ui.DialogBox; |
59 | 59 |
import com.google.gwt.user.client.ui.HTML; |
60 | 60 |
import com.google.gwt.user.client.ui.HasHorizontalAlignment; |
61 |
import com.google.gwt.user.client.ui.HorizontalPanel; |
|
62 | 61 |
import com.google.gwt.user.client.ui.VerticalPanel; |
63 | 62 |
|
64 | 63 |
/** |
... | ... | |
111 | 110 |
// when the button is clicked and deletes the file. |
112 | 111 |
Button ok = new Button("Delete", new ClickHandler() { |
113 | 112 |
@Override |
114 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
113 |
public void onClick(ClickEvent event) { |
|
115 | 114 |
deleteFiles(); |
116 | 115 |
hide(); |
117 | 116 |
} |
... | ... | |
138 | 137 |
String path = f.getUri(); |
139 | 138 |
DeleteRequest deleteFile = new DeleteRequest(app.getApiPath(), f.getOwner(), path) { |
140 | 139 |
@Override |
141 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
140 |
public void onSuccess(Resource result) { |
|
142 | 141 |
deleteFile(iter); |
143 | 142 |
} |
144 | 143 |
|
Also available in: Unified diff