import com.google.gwt.user.client.ui.CheckBox;\r
import com.google.gwt.user.client.ui.FocusPanel;\r
import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
-import com.google.gwt.user.client.ui.PopupPanel;\r
import com.google.gwt.user.client.ui.VerticalPanel;\r
\r
/**\r
*/\r
public class FileVersionsDialog extends AbstractPropertiesDialog {\r
\r
- protected PermissionsList permList;\r
-\r
- protected CheckBox readForAll;\r
-\r
/**\r
* An image bundle for this widgets images.\r
*/\r
super(_app);\r
file = _file;\r
\r
- Anchor close = new Anchor();\r
+ Anchor close = new Anchor("close");\r
close.addStyleName("close");\r
close.addClickHandler(new ClickHandler() {\r
\r
inner = new VerticalPanel();\r
inner.addStyleName("inner");\r
\r
- fetchVersions();\r
-\r
outer.add(inner);\r
\r
// Create the 'OK' button, along with a listener that hides the dialog\r
setWidget(outer);\r
}\r
\r
- private void doCenter() {\r
+ void doCenter() {\r
super.center();\r
}\r
\r
\r
/**\r
* Accepts any change and updates the file\r
+ * @return \r
*\r
*/\r
@Override\r
- protected void accept() {\r
+ protected boolean accept() {\r
app.updateFolder(file.getParent(), true, new Command() {\r
\r
@Override\r
public void execute() {\r
- if (file.isShared())\r
+ if (file.isSharedOrPublished())\r
app.updateMySharedRoot();\r
}\r
- });\r
+ }, true);\r
+ \r
+ return true;\r
}\r
}\r