+\r
+ // Only show the read for all permission if the user is the owner.\r
+ if (folder.getOwner().equals(GSS.get().getCurrentUserResource().getUsername())) {\r
+ permForAll.add(new Label("Public"));\r
+ permForAll.add(readForAll);\r
+ permForAll.setSpacing(8);\r
+ permForAll.addStyleName("gss-TabPanelBottom");\r
+ permForAll.add(readForAllNote);\r
+ permPanel.add(permForAll);\r
+ }\r
+ TextBox path = new TextBox();\r
+ path.getElement().setId("folderPropertiesDialog.textBox.link");\r
+ path.setWidth("100%");\r
+ path.addClickHandler(new ClickHandler() {\r
+ @Override\r
+ public void onClick(ClickEvent event) {\r
+ GSS.enableIESelection();\r
+ ((TextBox) event.getSource()).selectAll();\r
+ GSS.preventIESelection();\r
+ }\r
+\r
+ });\r
+ path.setText(folder.getUri());\r
+ path.setTitle("Use this link for sharing the folder via e-mail, IM, etc. (crtl-C/cmd-C to copy to system clipboard)");\r
+ path.setWidth("100%");\r
+ path.setReadOnly(true);\r
+ pathPanel.setWidth("100%");\r
+ pathPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\r
+ pathPanel.add(new Label("Link"));\r
+ pathPanel.setSpacing(8);\r
+ pathPanel.addStyleName("gss-TabPanelBottom");\r
+ pathPanel.add(path);\r
+ permPanel.add(pathPanel);\r
+\r