[kune-commits] r1373 - in trunk: script src/main/java/cc/kune/gspace/client/options src/main/java/cc/kune/gspace/client/viewers

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Wed May 11 00:02:36 CEST 2011


Author: vjrj_
Date: 2011-05-11 00:02:36 +0200 (Wed, 11 May 2011)
New Revision: 1373

Modified:
   trunk/script/cloneTool.sh
   trunk/src/main/java/cc/kune/gspace/client/options/GroupOptionsPresenter.java
   trunk/src/main/java/cc/kune/gspace/client/viewers/AbstractFolderViewerPanel.java
   trunk/src/main/java/cc/kune/gspace/client/viewers/ContentViewerPanel.java
Log:
set window title


Modified: trunk/script/cloneTool.sh
===================================================================
--- trunk/script/cloneTool.sh	2011-05-10 21:49:41 UTC (rev 1372)
+++ trunk/script/cloneTool.sh	2011-05-10 22:02:36 UTC (rev 1373)
@@ -72,8 +72,8 @@
 find . -name '*.java' | xargs rename 's/$OLDS/$NEWS/g'
 find . -name '*.java' | xargs rename 's/$OLD1/$NEW1/g'
 find . -name '*.java' | xargs rename 's/$OLD/$NEW/g'
-find . -name '*.xml' | xargs rename 's/$OLD1S/$NEW1S/g'
-find . -name '*.xml' | xargs rename 's/$OLDS/$NEWS/g'
+find . -name '*.xml'  | xargs rename 's/$OLD1S/$NEW1S/g'
+find . -name '*.xml'  | xargs rename 's/$OLDS/$NEWS/g'
 find . -name '*.java' | xargs perl -p -i -e 's/$OLDCS/$NEWCS/g'
 find . -name '*.java' | xargs perl -p -i -e 's/$OLDC/$NEWC/g'
 find . -name '*.java' | xargs perl -p -i -e 's/$OLD1S/$NEW1S/g'

Modified: trunk/src/main/java/cc/kune/gspace/client/options/GroupOptionsPresenter.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/options/GroupOptionsPresenter.java	2011-05-10 21:49:41 UTC (rev 1372)
+++ trunk/src/main/java/cc/kune/gspace/client/options/GroupOptionsPresenter.java	2011-05-10 22:02:36 UTC (rev 1373)
@@ -67,7 +67,7 @@
         show();
       }
     };
-    groupPrefsAction.putValue(Action.NAME, i18n.t("Group options"));
+    // groupPrefsAction.putValue(Action.NAME, i18n.t("Group options"));
     groupPrefsAction.putValue(Action.SMALL_ICON, img.prefs());
     prefsItem = new ButtonDescriptor(groupPrefsAction);
     prefsItem.withStyles("k-ent-header-btn");

Modified: trunk/src/main/java/cc/kune/gspace/client/viewers/AbstractFolderViewerPanel.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/viewers/AbstractFolderViewerPanel.java	2011-05-10 21:49:41 UTC (rev 1372)
+++ trunk/src/main/java/cc/kune/gspace/client/viewers/AbstractFolderViewerPanel.java	2011-05-10 22:02:36 UTC (rev 1373)
@@ -28,6 +28,7 @@
 import cc.kune.gspace.client.GSpaceArmor;
 import cc.kune.gspace.client.viewers.FolderViewerPresenter.FolderViewerView;
 
+import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.InlineLabel;
 import com.google.gwt.user.client.ui.InsertPanel.ForIsWidget;
 import com.google.gwt.user.client.ui.Widget;
@@ -89,6 +90,7 @@
   public void setContainer(final StateContainerDTO state) {
     contentTitle.setTitle(state.getTitle(), state.getTypeId(), state.getContainerRights().isEditable()
         && capabilitiesRegistry.isRenamable(state.getTypeId()));
+    Window.setTitle(state.getGroup().getLongName() + ": " + state.getTitle());
   }
 
   @Override

Modified: trunk/src/main/java/cc/kune/gspace/client/viewers/ContentViewerPanel.java
===================================================================
--- trunk/src/main/java/cc/kune/gspace/client/viewers/ContentViewerPanel.java	2011-05-10 21:49:41 UTC (rev 1372)
+++ trunk/src/main/java/cc/kune/gspace/client/viewers/ContentViewerPanel.java	2011-05-10 22:02:36 UTC (rev 1373)
@@ -52,6 +52,7 @@
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.DeckPanel;
 import com.google.gwt.user.client.ui.InlineHTML;
 import com.google.gwt.user.client.ui.InsertPanel.ForIsWidget;
@@ -219,6 +220,7 @@
   private void setTitle(final StateContentDTO state, final boolean editable) {
     contentTitle.setTitle(state.getTitle(), state.getTypeId(), state.getMimeType(), editable
         && capabilitiesRegistry.isRenamable(state.getTypeId()));
+    Window.setTitle(state.getGroup().getLongName() + ": " + state.getTitle());
   }
 
   @Override




More information about the kune-commits mailing list