diff --git a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java index daae519..612958e 100644 --- a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java +++ b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java @@ -51,7 +51,12 @@ public class ToolBox extends TabPanel { setActiveWidget(getWidget(0)); } - + + public void showHelpTab(){ + Log.debug("Show Help Tab"); + setActiveWidget(helpPanel); + } + public void openPropertiesTab() { Log.debug("Open Properties Tab"); if (trProperties == null) { diff --git a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java index e0389ac..4a8218d 100644 --- a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java @@ -78,6 +78,8 @@ public class ToolBoxPanel extends ContentPanel { case PROPERTIES: doPropertiesOpenTab(); break; + case HELP: + doHelpTab(); default: break; } @@ -154,6 +156,13 @@ public class ToolBoxPanel extends ContentPanel { } + protected void doHelpTab(){ + Log.debug("ToolBoxPanel show help tab"); + enable(); + expand(); + toolBox.showHelpTab(); + } + public void closePanelOnly(){ collapse();