Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@93519 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-25 11:53:56 +00:00
parent 37387080cc
commit 54f546f763
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.UIStateType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.dom.client.Element;
@ -568,8 +569,8 @@ public class FileToolBar {
importCSVButton.enable();
importJSONButton.disable();
importSDMXButton.enable();
if (event.getTrId().getTableType().compareTo("Codelist") == 0) {
TRId trId=event.getTrId();
if (trId!=null&& trId.getTableType()!=null && trId.getTableType().compareTo("Codelist") == 0) {
exportSDMXButton.enable();
} else {
exportSDMXButton.disable();