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@174620 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2018-12-06 16:38:05 +00:00
parent ed86e2dc5f
commit 46aacfc420
6 changed files with 22 additions and 11 deletions

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/statistical-algorithms-importer-1.13.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<classpathentry kind="src" output="target/statistical-algorithms-importer-1.13.1-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/statistical-algorithms-importer-1.13.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<classpathentry excluding="**" kind="src" output="target/statistical-algorithms-importer-1.13.1-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
@ -45,5 +45,5 @@
</classpathentry>
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
<classpathentry kind="output" path="target/statistical-algorithms-importer-1.13.0-SNAPSHOT/WEB-INF/classes"/>
<classpathentry kind="output" path="target/statistical-algorithms-importer-1.13.1-SNAPSHOT/WEB-INF/classes"/>
</classpath>

View File

@ -1,4 +1,9 @@
<ReleaseNotes>
<Changeset component="${groupId}.${artifactId}.1-13-1" date="2018-12-06">
<Change>Added the project folder path update in the open operation
[ticket #12977]
</Change>
</Changeset>
<Changeset component="${groupId}.${artifactId}.1-13-0" date="2018-10-01">
<Change>Updated support to StorageHub [ticket #11724]</Change>
</Changeset>
@ -6,13 +11,15 @@
<Change>Updated to StorageHub [ticket #11724]</Change>
</Changeset>
<Changeset component="${groupId}.${artifactId}.1-11-0" date="2018-06-01">
<Change>Added Status control in Algorithm Generator [ticket #11750]</Change>
<Change>Added Status control in Algorithm Generator [ticket #11750]
</Change>
<Change>Added System parameters support [ticket #11768]</Change>
</Changeset>
<Changeset component="${groupId}.${artifactId}.1-10-0" date="2018-01-12">
<Change>Added support to Private algorithms [ticket #10779]</Change>
<Change>Added user name to algorithms descriptions in SAI publication
[ticket #10705]</Change>
[ticket #10705]
</Change>
</Changeset>
<Changeset component="${groupId}.${artifactId}.1-9-0" date="2017-12-13">
<Change>Fixed Set Main behavior in case of R [ticket #10523]</Change>

View File

@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>statistical-algorithms-importer</artifactId>
<version>1.13.0-SNAPSHOT</version>
<version>1.13.1-SNAPSHOT</version>
<packaging>war</packaging>

View File

@ -17,6 +17,7 @@ import org.gcube.portlets.user.statisticalalgorithmsimporter.client.rpc.StatAlgo
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.type.SessionExpiredType;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.type.StatAlgoImporterRibbonType;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.upload.CodeUploadDialog;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.utils.BrowserWindowSupport;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.utils.UtilsGXT3;
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants;
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.exception.StatAlgoImporterSessionExpiredException;
@ -32,7 +33,6 @@ import com.google.gwt.resources.client.ResourceException;
import com.google.gwt.resources.client.TextResource;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sencha.gxt.widget.core.client.box.ConfirmMessageBox;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
@ -304,7 +304,10 @@ public class StatAlgoImporterController {
public void onSuccess(TextResource r) {
String s = r.getText();
Window.open(s, "Statistical Algorithms Importer Wiki", "");
//Window.open(s, "Statistical Algorithms Importer Wiki", "");
BrowserWindowSupport browserWindowSupport = BrowserWindowSupport.open("", "_blank", "");
browserWindowSupport.setUrl(s);
}
});
} catch (ResourceException e) {

View File

@ -1,4 +1,4 @@
package org.gcube.portlets.user.statisticalalgorithmsimporter.client.workspace;
package org.gcube.portlets.user.statisticalalgorithmsimporter.client.utils;
import com.google.gwt.core.client.JavaScriptObject;
@ -19,11 +19,11 @@ public class BrowserWindowSupport extends JavaScriptObject {
return $wnd.open(url, target, options);
}-*/;
public native void close() /*-{
public final native void close() /*-{
this.close();
}-*/;
public native void setUrl(String url) /*-{
public final native void setUrl(String url) /*-{
if (this.location) {
this.location = url;
}

View File

@ -4,6 +4,7 @@ import org.gcube.portal.clientcontext.client.GCubeClientContext;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.event.SessionExpiredEvent;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.rpc.StatAlgoImporterServiceAsync;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.type.SessionExpiredType;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.utils.BrowserWindowSupport;
import org.gcube.portlets.user.statisticalalgorithmsimporter.client.utils.UtilsGXT3;
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants;
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.exception.StatAlgoImporterSessionExpiredException;