Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@94935 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-16 17:10:47 +00:00
parent af5ee6b4e5
commit 328fa5df30
4 changed files with 16 additions and 7 deletions

View File

@ -20,6 +20,7 @@ import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
import org.gcube.portlets.user.td.sharewidget.client.TRShare;
import org.gcube.portlets.user.td.tablewidget.client.CloneTabularResource;
import org.gcube.portlets.user.td.tablewidget.client.history.HistoryDiscard;
import org.gcube.portlets.user.td.tablewidget.client.rows.DeleteRows;
import org.gcube.portlets.user.td.tablewidget.client.util.UtilsGXT3;
import org.gcube.portlets.user.td.taskswidget.client.TdTaskController;
@ -349,6 +350,7 @@ public class TabularDataController {
case HISTORY:
break;
case DISCARD:
callDiscard();
break;
case DISCARDALL:
break;
@ -698,6 +700,12 @@ public class TabularDataController {
TRShare trShare=new TRShare(trId,eventBus);
}
protected void callDiscard(){
HistoryDiscard historyDiscard=new HistoryDiscard(eventBus);
historyDiscard.discard();
}
protected void openTemplateApply(){
Log.debug("Template Apply call");
if (trId != null) {

View File

@ -135,7 +135,7 @@ public class TabularDataPortlet implements EntryPoint {
// ToolBox Panel
toolBoxPanel = new ToolBoxPanel("ToolBoxPanel", eventBus);
westData = new BorderLayoutData(310);
westData.setCollapsible(true);
westData.setSplit(false);
@ -143,7 +143,8 @@ public class TabularDataPortlet implements EntryPoint {
westData.setCollapseMini(true);
westData.setMargins(new Margins(0, 5, 0, 5));
westData.setCollapseHidden(true);
mainPanelLayout.setWestWidget(toolBoxPanel, westData);
toolBoxPanel.expand();
toolBoxPanel.enable();

View File

@ -585,7 +585,7 @@ public class FileToolBar {
templateDeleteButton.enable();
timelineButton.enable();
historyButton.enable();
discardButton.disable();
discardButton.enable();
discardAllButton.disable();
break;
case WIZARD_OPEN:

View File

@ -45,17 +45,17 @@
<!-- Specify the app entry point class. -->
<entry-point class='org.gcube.portlets.user.td.client.TabularDataPortlet' />
<!--
<!--
<set-property name="log_DivLogger" value="ENABLED" /> <set-property
name="log_ConsoleLogger" value="ENABLED" /> <set-property name="log_FirebugLogger"
value="ENABLED" /> <set-property name="log_GWTLogger" value="ENABLED" />
<set-property name="log_SystemLogger" value="ENABLED" /> -->
<set-property name="log_SystemLogger" value="ENABLED" />
-->
<set-property name="log_DivLogger" value="DISABLED" />
<set-property name="log_ConsoleLogger" value="DISABLED" />
<set-property name="log_FirebugLogger" value="DISABLED" />
<set-property name="log_GWTLogger" value="DISABLED" />
<set-property name="log_SystemLogger" value="DISABLED" />
<set-property name="log_SystemLogger" value="DISABLED" />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />