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-csv-import-widget@117650 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-08-04 10:01:15 +00:00
parent 4c0b1430af
commit 213a861b45
1 changed files with 10 additions and 4 deletions

View File

@ -67,8 +67,7 @@ public class CSVWorkSpaceSelectionCard extends WizardCard {
allowedFileExtensions, new HashMap<String, String>());
wpanel = new WorkspaceExplorerSelectPanel(new String(
"Workspace Selection"), filterCriteria);
"Workspace Selection"), filterCriteria, selectableTypes);
WorskpaceExplorerSelectNotificationListener handler = new WorskpaceExplorerSelectNotificationListener() {
@ -108,6 +107,13 @@ public class CSVWorkSpaceSelectionCard extends WizardCard {
Log.debug("WorkspaceExplorer Aborted");
}
@Override
public void onNotValidSelection() {
importSession.setItemId(null);
getWizardWindow().setEnableNextButton(false);
}
};
wpanel.addWorkspaceExplorerSelectNotificationListener(handler);