Button removeVersionsButton = new Button(images.delete().getHTML(), new ClickListener() {\r
\r
public void onClick(Widget sender) {\r
- ConfirmationDialog confirm = new ConfirmationDialog(images,"Really remove all previous versions?","Remove"){\r
+ ConfirmationDialog confirm = new ConfirmationDialog("Really " +\r
+ "remove all previous versions?", "Remove") {\r
\r
+ @Override\r
public void cancel() {\r
}\r
\r
-\r
+ @Override\r
public void confirm() {\r
FilePropertiesDialog.this.closeDialog();\r
removeAllOldVersions();\r
private void updateTags() {\r
GetCommand<TagsResource> tc = new GetCommand<TagsResource>(TagsResource.class, GSS.get().getCurrentUserResource().getTagsPath()) {\r
\r
+ @Override\r
public void onComplete() {\r
allTagsContent.clear();\r
TagsResource tagr = getResult();\r
}\r
PostCommand cf = new PostCommand(file.getUri() + "?update=", jsonString, 200) {\r
\r
+ @Override\r
public void onComplete() {\r
GSS.get().getFileList().updateFileCache(true, false /* do not clear selected file*/);\r
}\r
\r
+ @Override\r
public void onError(Throwable t) {\r
GWT.log("", t);\r
if (t instanceof RestException) {\r
GWT.log(json.toString(), null);\r
PostCommand cf = new PostCommand(file.getUri() + "?update=", json.toString(), 200) {\r
\r
+ @Override\r
public void onComplete() {\r
toggleVersioned(true);\r
}\r
\r
+ @Override\r
public void onError(Throwable t) {\r
GWT.log("", t);\r
if (t instanceof RestException) {\r
GWT.log(json.toString(), null);\r
PostCommand cf = new PostCommand(file.getUri() + "?update=", json.toString(), 200) {\r
\r
+ @Override\r
public void onComplete() {\r
GSS.get().getFileList().updateFileCache(true, false /* do not clear selected file*/);\r
}\r
\r
+ @Override\r
public void onError(Throwable t) {\r
GWT.log("", t);\r
if (t instanceof RestException) {\r