[kune-commits] r1268 - in trunk/src/main/java/cc/kune: common/client/actions/ui/descrip core/client/sn core/client/sn/actions/registry
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Wed Mar 2 02:35:30 CET 2011
Author: vjrj_
Date: 2011-03-02 02:35:30 +0100 (Wed, 02 Mar 2011)
New Revision: 1268
Modified:
trunk/src/main/java/cc/kune/common/client/actions/ui/descrip/MenuTitleItemDescriptor.java
trunk/src/main/java/cc/kune/core/client/sn/GroupMembersPresenter.java
trunk/src/main/java/cc/kune/core/client/sn/actions/registry/SNCollabsMenuItemsRegistry.java
Log:
More SN refactor and some bug fixes
Modified: trunk/src/main/java/cc/kune/common/client/actions/ui/descrip/MenuTitleItemDescriptor.java
===================================================================
--- trunk/src/main/java/cc/kune/common/client/actions/ui/descrip/MenuTitleItemDescriptor.java 2011-03-02 01:14:27 UTC (rev 1267)
+++ trunk/src/main/java/cc/kune/common/client/actions/ui/descrip/MenuTitleItemDescriptor.java 2011-03-02 01:35:30 UTC (rev 1268)
@@ -34,6 +34,11 @@
putValue(Action.NAME, title);
}
+ public MenuTitleItemDescriptor(final String title) {
+ super(AbstractAction.NO_ACTION);
+ putValue(Action.NAME, title);
+ }
+
@Override
public Class<?> getType() {
return MenuTitleItemDescriptor.class;
Modified: trunk/src/main/java/cc/kune/core/client/sn/GroupMembersPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/sn/GroupMembersPresenter.java 2011-03-02 01:14:27 UTC (rev 1267)
+++ trunk/src/main/java/cc/kune/core/client/sn/GroupMembersPresenter.java 2011-03-02 01:35:30 UTC (rev 1268)
@@ -5,6 +5,7 @@
import cc.kune.common.client.actions.ui.IsActionExtensible;
import cc.kune.common.client.actions.ui.descrip.GuiActionDescCollection;
import cc.kune.common.client.actions.ui.descrip.MenuItemDescriptor;
+import cc.kune.common.client.actions.ui.descrip.MenuTitleItemDescriptor;
import cc.kune.core.client.services.FileDownloadUtils;
import cc.kune.core.client.sn.actions.registry.AbstractSNMembersActionsRegistry;
import cc.kune.core.client.sn.actions.registry.GroupMembersActionsRegistry;
@@ -113,6 +114,7 @@
private GuiActionDescCollection createMenuItems(final GroupDTO group,
final AbstractSNMembersActionsRegistry registry) {
final GuiActionDescCollection items = new GuiActionDescCollection();
+ items.add(new MenuTitleItemDescriptor(group.getLongName()));
for (final Provider<MenuItemDescriptor> provider : registry) {
final MenuItemDescriptor menuItem = provider.get();
menuItem.setTarget(group);
Modified: trunk/src/main/java/cc/kune/core/client/sn/actions/registry/SNCollabsMenuItemsRegistry.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/sn/actions/registry/SNCollabsMenuItemsRegistry.java 2011-03-02 01:14:27 UTC (rev 1267)
+++ trunk/src/main/java/cc/kune/core/client/sn/actions/registry/SNCollabsMenuItemsRegistry.java 2011-03-02 01:35:30 UTC (rev 1268)
@@ -50,6 +50,7 @@
public MenuItemDescriptor get() {
final MenuItemDescriptor item = new MenuItemDescriptor(gotoMemberAction);
item.add(isPersonCondition);
+ item.add(isNotMe);
return item;
}
});
More information about the kune-commits
mailing list