ref 12977: SAI - Force the path of the project folder to be updated to a new format

https://support.d4science.org/issues/12977

Now, when the project is open the path is forced to be updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@174654 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2018-12-07 11:05:47 +00:00
parent ab7baa8e4b
commit 23d14db7f1
1 changed files with 10 additions and 10 deletions

View File

@ -48,7 +48,7 @@ public class ExplorerProjectPanel extends ContentPanel {
private MultipleDNDUpload dnd;
private WorkspaceResourcesExplorerPanel wsResourcesExplorerPanel;
private TextButton btnSetMain;
private TextButton btnOpen;
private TextButton btnDownload;
private TextButton btnDelete;
private TextButton btnReload;
@ -236,16 +236,16 @@ public class ExplorerProjectPanel extends ContentPanel {
});
}
btnOpen = new TextButton("Open");
btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
btnOpen.setScale(ButtonScale.SMALL);
btnOpen.setIconAlign(IconAlign.LEFT);
btnOpen.setToolTip("Open");
btnOpen.addSelectHandler(new SelectHandler() {
btnDownload = new TextButton("Download");
btnDownload.setIcon(StatAlgoImporterResources.INSTANCE.download16());
btnDownload.setScale(ButtonScale.SMALL);
btnDownload.setIconAlign(IconAlign.LEFT);
btnDownload.setToolTip("Download");
btnDownload.addSelectHandler(new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
openFile();
downloadFile();
}
});
@ -280,7 +280,7 @@ public class ExplorerProjectPanel extends ContentPanel {
ToolBar toolBar = new ToolBar();
toolBar.add(btnSetMain, new BoxLayoutData(new Margins(0)));
toolBar.add(btnOpen, new BoxLayoutData(new Margins(0)));
toolBar.add(btnDownload, new BoxLayoutData(new Margins(0)));
toolBar.add(btnDelete, new BoxLayoutData(new Margins(0)));
toolBar.add(btnReload, new BoxLayoutData(new Margins(0)));
@ -358,7 +358,7 @@ public class ExplorerProjectPanel extends ContentPanel {
}
private void openFile() {
private void downloadFile() {
if (selectedItem != null) {
DownloadWidget downloadWidget = new DownloadWidget(eventBus);
downloadWidget.download(selectedItem.getId());