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:
parent
4c0b1430af
commit
213a861b45
|
@ -64,12 +64,11 @@ public class CSVWorkSpaceSelectionCard extends WizardCard {
|
|||
List<String> allowedFileExtensions = Arrays.asList("csv", "zip");
|
||||
|
||||
FilterCriteria filterCriteria = new FilterCriteria(allowedMimeTypes,
|
||||
allowedFileExtensions, new HashMap<String,String>());
|
||||
allowedFileExtensions, new HashMap<String, String>());
|
||||
|
||||
wpanel = new WorkspaceExplorerSelectPanel(new String(
|
||||
"Workspace Selection"), filterCriteria);
|
||||
"Workspace Selection"), filterCriteria, selectableTypes);
|
||||
|
||||
|
||||
WorskpaceExplorerSelectNotificationListener handler = new WorskpaceExplorerSelectNotificationListener() {
|
||||
|
||||
@Override
|
||||
|
@ -108,10 +107,17 @@ public class CSVWorkSpaceSelectionCard extends WizardCard {
|
|||
Log.debug("WorkspaceExplorer Aborted");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotValidSelection() {
|
||||
importSession.setItemId(null);
|
||||
getWizardWindow().setEnableNextButton(false);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
wpanel.addWorkspaceExplorerSelectNotificationListener(handler);
|
||||
|
||||
|
||||
p.add(wpanel, new VerticalLayoutData(1, 1, new Margins(0)));
|
||||
setCenterWidget(p, new MarginData(0));
|
||||
|
||||
|
|
Loading…
Reference in New Issue