[kune-commits] r1605 - in trunk: . src/main/java/cc/kune/common/client/ui src/main/java/cc/kune/core/client/actions/xml src/main/java/cc/kune/core/shared/dto
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Sat Nov 12 20:04:17 CET 2011
Author: vjrj_
Date: 2011-11-12 20:04:16 +0100 (Sat, 12 Nov 2011)
New Revision: 1605
Modified:
trunk/TODO
trunk/pom.xml
trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java
trunk/src/main/java/cc/kune/core/client/actions/xml/AddGadgetAction.java
trunk/src/main/java/cc/kune/core/client/actions/xml/NewGadgetAction.java
trunk/src/main/java/cc/kune/core/client/actions/xml/XMLActionsParser.java
trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
Log:
Minor changes
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/TODO 2011-11-12 19:04:16 UTC (rev 1605)
@@ -12,6 +12,18 @@
nick == assigned to
* SHORT-TERM (URGENT)
+** group.inexistentTool nasty error
+** styles/styl2.png" and /lic/ instead or /lic/ in group options
+styl2.png
+"NetworkError: 404 Not Found - http://beta.eurosur.org/images/styles/styl3.png"
+styl3.png
+"NetworkError: 404 Not Found - http://beta.eurosur.org/images/styles/styl4.png"
+styl4.png
+"NetworkError: 404 Not Found - http://beta.eurosur.org/images/styles/styl5.png"
+styl5.png
+"NetworkError: 404 Not Found - http://beta.eurosur.org/images/styles/styl6.png"
+styl6.png
+"NetworkError: 404 Not Found - http://beta.eurosur.org/images/lic/
** i18n usecase
| logged | locale in URL | i18n supported | useDB |
| false | false | false | true |
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/pom.xml 2011-11-12 19:04:16 UTC (rev 1605)
@@ -1022,6 +1022,7 @@
<configuration>
<logLevel>INFO</logLevel>
<style>OBF</style>
+ <!-- <style>PRETTY</style> -->
<noServer>true</noServer>
<gwtVersion>${gwt.version}</gwtVersion>
<runTarget>/ws/ws.html?log_level=DEBUG</runTarget>
Modified: trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java
===================================================================
--- trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/src/main/java/cc/kune/common/client/ui/IconLabel.java 2011-11-12 19:04:16 UTC (rev 1605)
@@ -132,14 +132,6 @@
return flow.remove(w);
}
- // @Deprecated
- // private void setDirection(final Direction dir) {
- // setIconRTL(iconLeft, dir);
- // setIconRTL(iconRight, dir);
- // label.addStyleName(dir.equals(Direction.LTR) ? "k-fr" : "k-fl");
- // }
- //
- @Deprecated
private void setIconRTL(final Widget widget, final Direction direction) {
widget.addStyleName(direction.equals(Direction.LTR) ? "k-fl" : "k-fr");
}
@@ -209,13 +201,11 @@
@Override
public void setText(final String text) {
- // setDirection(Direction.LTR);
label.setText(text, Direction.LTR);
}
@Override
public void setText(final String text, final Direction dir) {
- // setDirection(dir);
label.setText(text, dir);
}
Modified: trunk/src/main/java/cc/kune/core/client/actions/xml/AddGadgetAction.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/actions/xml/AddGadgetAction.java 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/src/main/java/cc/kune/core/client/actions/xml/AddGadgetAction.java 2011-11-12 19:04:16 UTC (rev 1605)
@@ -35,28 +35,30 @@
public class AddGadgetAction extends RolAction {
private final Provider<ContentServiceAsync> contentService;
+ private final String gadgetExtName;
private final String gadgetName;
private final I18nTranslationService i18n;
private final Session session;
public AddGadgetAction(final Provider<ContentServiceAsync> contentService, final Session session,
final I18nTranslationService i18n, final AccessRolDTO rol, final boolean authNeeded,
- final String gadgetName, final String iconUrl) {
+ final String gadgetExtName, final String gadgetName, final String iconUrl) {
super(rol, authNeeded);
this.contentService = contentService;
this.i18n = i18n;
+ this.session = session;
+ this.gadgetExtName = gadgetExtName;
this.gadgetName = gadgetName;
- this.session = session;
putValue(Action.SMALL_ICON, iconUrl);
}
@Override
public void actionPerformed(final ActionEvent event) {
contentService.get().addGadgetToContent(session.getUserHash(), session.getCurrentStateToken(),
- gadgetName, new AsyncCallbackSimple<Void>() {
+ gadgetExtName, new AsyncCallbackSimple<Void>() {
@Override
public void onSuccess(final Void result) {
- NotifyUser.info(i18n.t("'[%s]' created succesfully", gadgetName),
+ NotifyUser.info(i18n.t("'[%s]' created succesfully", i18n.t(gadgetName)),
i18n.t(CoreMessages.GADGETS_EXPERIMENTAL));
}
});
Modified: trunk/src/main/java/cc/kune/core/client/actions/xml/NewGadgetAction.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/actions/xml/NewGadgetAction.java 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/src/main/java/cc/kune/core/client/actions/xml/NewGadgetAction.java 2011-11-12 19:04:16 UTC (rev 1605)
@@ -71,7 +71,7 @@
gadgetName, typeId, i18n.t(title), i18n.t(body), new AsyncCallbackSimple<StateContentDTO>() {
@Override
public void onSuccess(final StateContentDTO result) {
- NotifyUser.info(i18n.t("'[%s]' created succesfully", title),
+ NotifyUser.info(i18n.t("'[%s]' created succesfully", i18n.t(title)),
i18n.t(CoreMessages.GADGETS_EXPERIMENTAL));
stateManager.setRetrievedStateAndGo(result);
contentViewer.blinkTitle();
Modified: trunk/src/main/java/cc/kune/core/client/actions/xml/XMLActionsParser.java
===================================================================
--- trunk/src/main/java/cc/kune/core/client/actions/xml/XMLActionsParser.java 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/src/main/java/cc/kune/core/client/actions/xml/XMLActionsParser.java 2011-11-12 19:04:16 UTC (rev 1605)
@@ -173,7 +173,7 @@
// container)
action = new AddGadgetAction(contentService, session, i18n,
descrip.getRol().getRolRequired(), descrip.getRol().isAuthNeed(),
- extension.getExtName(), extension.getIconUrl());
+ extension.getExtName(), descrip.getDescName(), extension.getIconUrl());
} else {
action = new NewGadgetAction(contentService, contentViewer, stateManager, session, i18n,
descrip.getRol().getRolRequired(), descrip.getRol().isAuthNeed(),
Modified: trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java
===================================================================
--- trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2011-11-12 15:47:35 UTC (rev 1604)
+++ trunk/src/main/java/cc/kune/core/shared/dto/StateContainerDTO.java 2011-11-12 19:04:16 UTC (rev 1605)
@@ -43,7 +43,6 @@
return accessLists;
}
- @Override
public ContainerDTO getContainer() {
return container;
}
More information about the kune-commits
mailing list