generalTable.setText(2, 0, "Creator");\r
generalTable.setText(3, 0, "Last modified");\r
folderName.setText(create ? "" : folder.getName());\r
+ folderName.getElement().setId("folderPropertiesDialog.textBox.name");\r
generalTable.setWidget(0, 1, folderName);\r
folderName.addChangeHandler(new ChangeHandler() {\r
\r
}\r
\r
}\r
- }); \r
+ });\r
+ ok.getElement().setId("folderPropertiesDialog.button.ok");\r
buttons.add(ok);\r
buttons.setCellHorizontalAlignment(ok, HasHorizontalAlignment.ALIGN_CENTER);\r
// Create the 'Cancel' button, along with a listener that hides the\r
closeDialog();\r
}\r
});\r
+ cancel.getElement().setId("folderPropertiesDialog.button.cancel");\r
buttons.add(cancel);\r
buttons.setCellHorizontalAlignment(cancel, HasHorizontalAlignment.ALIGN_CENTER);\r
buttons.setSpacing(8);\r
@Override\r
public void onComplete() {\r
//TODO:CELLTREE\r
- GSS.get().getTreeView().updateNodeChildren(folder);\r
+ GSS.get().getTreeView().updateNodeChildren((RestResourceWrapper) GSS.get().getTreeView().getSelection());\r
//GSS.get().getFolders().updateFolder((DnDTreeItem) GSS.get().getFolders().getCurrent());\r
}\r
\r
String initialPath = fres.getUri();\r
String newPath = getPostBody().trim();\r
fres.setUri(newPath);\r
+ ((RestResourceWrapper) GSS.get().getTreeView().getSelection()).getResource().setUri(newPath);\r
+ ((RestResourceWrapper) GSS.get().getTreeView().getSelection()).setUri(newPath);\r
GSS.get().getTreeView().updateNodeChildren(fres.getParentURI());\r
/*\r
if(folderItem.getParentItem() != null && ((DnDTreeItem)folderItem.getParentItem()).getFolderResource() != null){\r