/*\r
- * Copyright 2011-2012 GRNET S.A. All rights reserved.\r
+ * Copyright 2011-2013 GRNET S.A. All rights reserved.\r
*\r
* Redistribution and use in source and binary forms, with or\r
* without modification, are permitted provided that the following\r
*/\r
package gr.grnet.pithos.web.client;\r
\r
+import gr.grnet.pithos.web.client.commands.AddUserCommand;\r
import gr.grnet.pithos.web.client.foldertree.Folder;\r
+import gr.grnet.pithos.web.client.grouptree.Group;\r
\r
import com.google.gwt.dom.client.NativeEvent;\r
import com.google.gwt.event.dom.client.ClickEvent;\r
}\r
});\r
\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
String name = groupName.getText().trim();\r
if (name.length() == 0)\r
return;\r
- app.addGroup(name);\r
+ Group group = app.addGroup(name);\r
+ \r
+ new AddUserCommand(app, null, group).execute();\r
}\r
}\r