Revision ebead1b5 src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
b/src/gr/grnet/pithos/web/client/FilePropertiesDialog.java | ||
---|---|---|
52 | 52 |
import com.google.gwt.user.client.Command; |
53 | 53 |
import com.google.gwt.user.client.ui.Anchor; |
54 | 54 |
import com.google.gwt.user.client.ui.Button; |
55 |
import com.google.gwt.user.client.ui.DecoratedTabPanel; |
|
56 | 55 |
import com.google.gwt.user.client.ui.FlexTable; |
57 |
import com.google.gwt.user.client.ui.FocusPanel; |
|
58 | 56 |
import com.google.gwt.user.client.ui.HasHorizontalAlignment; |
59 | 57 |
import com.google.gwt.user.client.ui.HorizontalPanel; |
60 | 58 |
import com.google.gwt.user.client.ui.Image; |
... | ... | |
88 | 86 |
close.addClickHandler(new ClickHandler() { |
89 | 87 |
|
90 | 88 |
@Override |
91 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
89 |
public void onClick(ClickEvent event) { |
|
92 | 90 |
hide(); |
93 | 91 |
} |
94 | 92 |
}); |
... | ... | |
113 | 111 |
// when the button is clicked. |
114 | 112 |
final Button ok = new Button("OK", new ClickHandler() { |
115 | 113 |
@Override |
116 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
114 |
public void onClick(ClickEvent event) { |
|
117 | 115 |
accept(); |
118 | 116 |
closeDialog(); |
119 | 117 |
} |
... | ... | |
187 | 185 |
plus.addClickHandler(new ClickHandler() { |
188 | 186 |
|
189 | 187 |
@Override |
190 |
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
|
|
188 |
public void onClick(ClickEvent event) { |
|
191 | 189 |
addFormLine(metaTable, metaTable.getRowCount(), "", ""); |
192 | 190 |
} |
193 | 191 |
}); |
... | ... | |
247 | 245 |
final String path = file.getParent().getUri() + "/" + newFilename; |
248 | 246 |
PutRequest updateFile = new PutRequest(app.getApiPath(), app.getUsername(), path) { |
249 | 247 |
@Override |
250 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
248 |
public void onSuccess(Resource result) { |
|
251 | 249 |
updateMetaData(app.getApiPath(), file.getOwner(), path + "?update=", newMeta); |
252 | 250 |
} |
253 | 251 |
|
... | ... | |
259 | 257 |
} |
260 | 258 |
|
261 | 259 |
@Override |
262 |
protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
|
|
260 |
protected void onUnauthorized(Response response) { |
|
263 | 261 |
app.sessionExpired(); |
264 | 262 |
} |
265 | 263 |
}; |
... | ... | |
304 | 302 |
if (newMeta != null) { |
305 | 303 |
PostRequest updateFile = new PostRequest(api, owner, path) { |
306 | 304 |
@Override |
307 |
public void onSuccess(@SuppressWarnings("unused") Resource result) {
|
|
305 |
public void onSuccess(Resource result) { |
|
308 | 306 |
app.updateFolder(file.getParent(), true, new Command() { |
309 | 307 |
|
310 | 308 |
@Override |
... | ... | |
322 | 320 |
} |
323 | 321 |
|
324 | 322 |
@Override |
325 |
protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
|
|
323 |
protected void onUnauthorized(Response response) { |
|
326 | 324 |
app.sessionExpired(); |
327 | 325 |
} |
328 | 326 |
}; |
Also available in: Unified diff