refs 6548: TDM - Migrate TabMan to new PortalContext

Task-Url: https://support.d4science.org/issues/6548

Updated to new PortalContext

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@142615 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-02-16 15:11:02 +00:00
parent df1e081259
commit a072a23b8d
1 changed files with 7 additions and 6 deletions

View File

@ -54,7 +54,6 @@ public class FileToolBar {
private TextButton importCSVButton; private TextButton importCSVButton;
// private TextButton importJSONButton; // private TextButton importJSONButton;
private TextButton importSDMXButton; private TextButton importSDMXButton;
private TextButton exportSDMXButton; private TextButton exportSDMXButton;
private TextButton exportCSVButton; private TextButton exportCSVButton;
private TextButton exportJSONButton; private TextButton exportJSONButton;
@ -601,12 +600,14 @@ public class FileToolBar {
// importJSONButton.disable(); // importJSONButton.disable();
importSDMXButton.enable(); importSDMXButton.enable();
TRId trId = event.getTrId(); TRId trId = event.getTrId();
//|| trId
//.getTableTypeName().compareTo(
// TableType.DATASET.getTableTypeLabel()) == 0
if (trId != null if (trId != null
&& trId.getTableType() != null && trId.getTableTypeName() != null
&& (trId.getTableType().compareTo( && (trId.getTableTypeName().compareTo(
TableType.CODELIST.getTableTypeLabel()) == 0 || trId TableType.CODELIST.getTableTypeLabel()) == 0)) {
.getTableType().compareTo(
TableType.DATASET.getTableTypeLabel()) == 0)) {
exportSDMXButton.enable(); exportSDMXButton.enable();
} else { } else {
exportSDMXButton.disable(); exportSDMXButton.disable();