diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index ea3d26e..65eedd1 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -4,7 +4,6 @@
-
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
index 5ea66c3..f3e83e5 100644
--- a/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -2,7 +2,7 @@
-
+
diff --git a/pom.xml b/pom.xml
index 1c21421..73527dd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,6 +154,11 @@
usermanagement-core
[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
+
+ org.gcube.portlets.widgets
+ widget-tour
+ [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)
+
diff --git a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java
index 95708db..5164b11 100644
--- a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java
+++ b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java
@@ -10,7 +10,10 @@ import org.gcube.portlet.user.userstatisticsportlet.client.ui.CommentsAndLikesWi
import org.gcube.portlet.user.userstatisticsportlet.client.ui.StatisticWidget;
import org.gcube.portlet.user.userstatisticsportlet.shared.PostsStatsBean;
import org.gcube.portlet.user.userstatisticsportlet.shared.UserInformation;
+import org.gcube.portlets.widgets.widgettour.client.extendedclasses.GCubeTour;
+import com.ait.toolkit.hopscotch.client.Placement;
+import com.ait.toolkit.hopscotch.client.TourStep;
import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.constants.ButtonType;
import com.google.gwt.core.client.GWT;
@@ -412,6 +415,52 @@ public class StatisticsPanel extends Composite {
}
});
+
+ if(!isRoot){
+
+ // Build a tour example (please look at WidgetTour.html)
+ GCubeTour tour = new GCubeTour("tour-example", "user-statistics-portlet", 1, null, "VRE Tour");
+ tour.setShowPrevButton(true);
+
+ // add steps
+ TourStep firstStep = new TourStep(Placement.BOTTOM, "heading");
+ firstStep.setContent("Welcome to this VRE. Click next to see what if offers to you");
+ firstStep.setTitle("Welcome");
+ firstStep.centerXOffset();
+ firstStep.centerArrowOffset();
+ tour.addStep(firstStep);
+
+ // another
+ TourStep secondStep = new TourStep(Placement.RIGHT, "statistics-container");
+ secondStep.setContent("Here your main statistics are reported");
+ secondStep.setTitle("User Statistics");
+ tour.addStep(secondStep);
+
+ // another
+ TourStep thirdStep = new TourStep(Placement.BOTTOM, "shareUpdateDiv");
+ thirdStep.setContent("Here you can share your updates puttin text, attaching files (drag and drop can be used)"
+ + " and much more!");
+ thirdStep.setTitle("Share Updates");
+ tour.addStep(thirdStep);
+
+ TourStep fourthStep = new TourStep(Placement.TOP, "newsfeedDIV");
+ fourthStep.setContent("Here you can see the most recent updates made by VRE's users");
+ fourthStep.setTitle("News");
+ tour.addStep(fourthStep);
+
+ TourStep fifthStep = new TourStep(Placement.RIGHT, "invite-friends-DIV");
+ fifthStep.setContent("Invite your friends that want to share information with us!");
+ fifthStep.setTitle("Invite Friends");
+ tour.addStep(fifthStep);
+
+ TourStep sixthStep = new TourStep(Placement.LEFT, "LoggedinDiv");
+ sixthStep.setContent("Here you can see the current VRE description");
+ sixthStep.setTitle("VRE Description");
+ tour.addStep(sixthStep);
+
+ // start the tour
+ tour.startTour();
+ }
}
diff --git a/src/main/resources/org/gcube/portlet/user/userstatisticsportlet/Statistics.gwt.xml b/src/main/resources/org/gcube/portlet/user/userstatisticsportlet/Statistics.gwt.xml
index c6cd7a8..46d66cd 100644
--- a/src/main/resources/org/gcube/portlet/user/userstatisticsportlet/Statistics.gwt.xml
+++ b/src/main/resources/org/gcube/portlet/user/userstatisticsportlet/Statistics.gwt.xml
@@ -4,16 +4,18 @@
+
-
+
-
+
/statistics/scopeService
+
+ widgettourServlet
+ org.gcube.portlets.widgets.widgettour.server.TourManagerServicesImpl
+
+
+
+ widgettourServlet
+ /statistics/tourmanagerservice
+
+
Statistics.html