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:
parent
ab7baa8e4b
commit
23d14db7f1
|
@ -48,7 +48,7 @@ public class ExplorerProjectPanel extends ContentPanel {
|
||||||
private MultipleDNDUpload dnd;
|
private MultipleDNDUpload dnd;
|
||||||
private WorkspaceResourcesExplorerPanel wsResourcesExplorerPanel;
|
private WorkspaceResourcesExplorerPanel wsResourcesExplorerPanel;
|
||||||
private TextButton btnSetMain;
|
private TextButton btnSetMain;
|
||||||
private TextButton btnOpen;
|
private TextButton btnDownload;
|
||||||
private TextButton btnDelete;
|
private TextButton btnDelete;
|
||||||
private TextButton btnReload;
|
private TextButton btnReload;
|
||||||
|
|
||||||
|
@ -236,16 +236,16 @@ public class ExplorerProjectPanel extends ContentPanel {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
btnOpen = new TextButton("Open");
|
btnDownload = new TextButton("Download");
|
||||||
btnOpen.setIcon(StatAlgoImporterResources.INSTANCE.download16());
|
btnDownload.setIcon(StatAlgoImporterResources.INSTANCE.download16());
|
||||||
btnOpen.setScale(ButtonScale.SMALL);
|
btnDownload.setScale(ButtonScale.SMALL);
|
||||||
btnOpen.setIconAlign(IconAlign.LEFT);
|
btnDownload.setIconAlign(IconAlign.LEFT);
|
||||||
btnOpen.setToolTip("Open");
|
btnDownload.setToolTip("Download");
|
||||||
btnOpen.addSelectHandler(new SelectHandler() {
|
btnDownload.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
openFile();
|
downloadFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -280,7 +280,7 @@ public class ExplorerProjectPanel extends ContentPanel {
|
||||||
|
|
||||||
ToolBar toolBar = new ToolBar();
|
ToolBar toolBar = new ToolBar();
|
||||||
toolBar.add(btnSetMain, new BoxLayoutData(new Margins(0)));
|
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(btnDelete, new BoxLayoutData(new Margins(0)));
|
||||||
toolBar.add(btnReload, 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) {
|
if (selectedItem != null) {
|
||||||
DownloadWidget downloadWidget = new DownloadWidget(eventBus);
|
DownloadWidget downloadWidget = new DownloadWidget(eventBus);
|
||||||
downloadWidget.download(selectedItem.getId());
|
downloadWidget.download(selectedItem.getId());
|
||||||
|
|
Loading…
Reference in New Issue