428: TDM - Support the new Workspace Explorer

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

Updated support to workspace explorer

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-json-export-widget@117651 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-08-04 10:01:23 +00:00 committed by Giancarlo Panichi
parent 0eb972042b
commit ec07b64836
1 changed files with 11 additions and 3 deletions

View File

@ -88,7 +88,8 @@ public class JSONWorkSpaceSelectionCard extends WizardCard {
wpanel = new WorkspaceExplorerSelectPanel(new String(
"Workspace Selection"), selectableTypes, showableTypes);
//wpanel.getElement().setAttribute("background-color", "white");
WorskpaceExplorerSelectNotificationListener handler = new WorskpaceExplorerSelectNotificationListener() {
@Override
@ -114,14 +115,21 @@ public class JSONWorkSpaceSelectionCard extends WizardCard {
Log.debug("WorkspaceExplorer Aborted");
}
@Override
public void onNotValidSelection() {
thisCard.exportSession.setItemId(null);
}
};
wpanel.addWorkspaceExplorerSelectNotificationListener(handler);
// /
p.add(new FieldLabel(wpanel, "Folder"), new VerticalLayoutData(1, 1));
setContent(formPanel);
}