Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@90899 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-02-05 09:42:12 +00:00 committed by Giancarlo Panichi
parent 3c2e92966d
commit 128557c394
1 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ public class ToolBoxPanel extends ContentPanel {
widgetRequestType = event.getWidgetRequestType(); widgetRequestType = event.getWidgetRequestType();
switch (event.getWidgetRequestType()){ switch (event.getWidgetRequestType()){
case CHANGECOLUMNTYPEPANEL: case CHANGECOLUMNTYPEPANEL:
doColumnTypeChangeTab(event.getTrId()); doColumnTypeChangeTab(event);
break; break;
default: default:
break; break;
@ -121,16 +121,16 @@ public class ToolBoxPanel extends ContentPanel {
} }
} }
protected void doColumnTypeChangeTab(TRId trId){ protected void doColumnTypeChangeTab(WidgetRequestEvent event){
if (uiStateType == UIStateType.TR_OPEN) { if (uiStateType == UIStateType.TR_OPEN) {
if (state == ToolBoxPanelState.OPENED) { if (state == ToolBoxPanelState.OPENED) {
toolBox.openColumnTypeChangeTab(trId, null); toolBox.openColumnTypeChangeTab(event.getTrId(), event.getColumnName());
Log.debug("ToolBoxPanelSTate.OPENED Add Tabs"); Log.debug("ToolBoxPanelSTate.OPENED Add Tabs");
} else { } else {
enable(); enable();
expand(); expand();
state = ToolBoxPanelState.OPENED; state = ToolBoxPanelState.OPENED;
toolBox.openColumnTypeChangeTab(trId, null); toolBox.openColumnTypeChangeTab(event.getTrId(), event.getColumnName());
} }
} else { } else {
Log.debug("ToolBoxPanel No table open"); Log.debug("ToolBoxPanel No table open");