Giancarlo Panichi 10 years ago committed by Giancarlo Panichi
parent af261781bf
commit 92f5ad3807

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/tabular-data-open-widget-2.0.0-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/tabular-data-open-widget-2.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/tabular-data-open-widget-2.0.0-SNAPSHOT/WEB-INF/classes"/>
</classpath>

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tabular-data-open-widget</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>

@ -0,0 +1,6 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8

@ -0,0 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="tabular-data-open-widget">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="jst.utility" version="1.0"/>
<installed facet="java" version="1.5"/>
</faceted-project>

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<Resource>
<ID></ID>
<Type>Service</Type>
<Profile>
<Description>tabular-data-open-widget allows the selection and the opening of tabular resource</Description>
<Class>PortletsUser</Class>
<Name>tabular-data-open-widget</Name>
<Version>1.0.0</Version>
<Packages>
<Software>
<Description>tabular-data-open-widget allows the selection and the opening of tabular resource</Description>
<Name>tabular-data-open-widget</Name>
<Version>2.0.0-SNAPSHOT</Version>
<MavenCoordinates>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>tabular-data-open-widget</artifactId>
<version>2.0.0-SNAPSHOT</version>
</MavenCoordinates>
<Type>library</Type>
<Files>
<File>tabular-data-open-widget-2.0.0-SNAPSHOT.jar</File>
</Files>
</Software>
</Packages>
</Profile>
</Resource>

@ -0,0 +1,6 @@
gCube System - License
------------------------------------------------------------
The gCube/gCore software is licensed as Free Open Source software conveying to the EUPL (http://ec.europa.eu/idabc/eupl).
The software and documentation is provided by its authors/distributors "as is" and no expressed or
implied warranty is given for its use, quality or fitness for a particular case.

@ -0,0 +1 @@
Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa, Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"

@ -0,0 +1,40 @@
The gCube System - tabular-data-open-widget
------------------------------------------------------------
This work has been supported by the following European projects: iMarine (FP7-INFRASTRUCTURES-2011-2)
Authors
-------
Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa,
Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"
Version and Release Date
------------------------
v. 2.0.0-SNAPSHOT (2013-10-18)
Description
-----------
tabular-data-open-widget allows the selection and the opening of tabular resource
Download information
--------------------
Source code URL: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget
Documentation
-------------
tabular-data-open-widget allows the selection and the opening of tabular resource
Licensing
---------
This software is licensed under the terms you may find in the file named "LICENSE" in this directory.

@ -0,0 +1,6 @@
<ReleaseNotes>
<Changeset component="org.gcube.portlets.user.tabular-data-open-widget.1-0-0"
date="2013-10-18">
<Change>First Release</Change>
</Changeset>
</ReleaseNotes>

@ -0,0 +1 @@
https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget

@ -13,7 +13,7 @@ import com.google.gwt.core.client.EntryPoint;
*/
public class TDOpenEntry implements EntryPoint {
@Override
public void onModuleLoad() {
TDOpen tdopen= new TDOpen("Open Tabular Resource");
Log.info(tdopen.getId());

@ -46,7 +46,7 @@ public class TabResourcesSelectionCard extends WizardCard {
tabResourcesSelectionPanel
.addSelectionHandler(new SelectionHandler<TabResource>() {
@Override
public void onSelection(SelectionEvent<TabResource> event) {
tdOpenSession
.setSelectedTabResource(tabResourcesSelectionPanel
@ -64,20 +64,17 @@ public class TabResourcesSelectionCard extends WizardCard {
public void setup() {
Command sayFinish = new Command() {
@Override
public void execute() {
TDGWTServiceAsync.INSTANCE.setTabResource(tdOpenSession
.getSelectedTabResource(),
new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
AlertMessageBox d = new AlertMessageBox(
"Error", "Error on set TabResource: "
+ caught.getLocalizedMessage());
d.addHideHandler(new HideHandler() {
@Override
public void onHide(HideEvent event) {
// TODO Auto-generated method stub
@ -88,7 +85,6 @@ public class TabResourcesSelectionCard extends WizardCard {
}
@Override
public void onSuccess(Void result) {
getWizardWindow().fireCompleted(tdOpenSession
.getSelectedTabResource().getTrId());

@ -105,7 +105,6 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
searchField.addKeyUpHandler(new KeyUpHandler() {
@Override
public void onKeyUp(KeyUpEvent event) {
Log.trace("searchTerm: "+searchField.getCurrentValue());
store.applyFilters();
@ -114,7 +113,6 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
store.addFilter(new StoreFilter<TabResource>() {
@Override
public boolean select(Store<TabResource> store, TabResource parent, TabResource item) {
String searchTerm = searchField.getCurrentValue();
if (searchTerm == null) return true;
@ -141,7 +139,6 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
protected void onAfterFirstAttach() {
super.onAfterFirstAttach();
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
loader.load();
}
@ -162,7 +159,6 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
SelectHandler sh = new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
loader.load();
}
@ -189,14 +185,12 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
protected void loadData(ListLoadConfig loadConfig, final AsyncCallback<ListLoadResult<TabResource>> callback) {
TDGWTServiceAsync.INSTANCE.getTabularResources(new AsyncCallback<ArrayList<TabResource>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);
AlertMessageBox d = new AlertMessageBox("Error!",
"Details: "+caught.getLocalizedMessage());
d.addHideHandler(new HideHandler() {
@Override
public void onHide(HideEvent event) {
//
}
@ -205,7 +199,6 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
d.show();
}
@Override
public void onSuccess(ArrayList<TabResource> result) {
Log.debug("loaded "+result.size()+" TabularResources");
/*for(TabResource tr:result){
@ -217,7 +210,6 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
}
@Override
public HandlerRegistration addSelectionHandler(SelectionHandler<TabResource> handler) {
return grid.getSelectionModel().addSelectionHandler(handler);
}

@ -47,14 +47,14 @@ public class GwtTestTDOpen extends GWTTestCase {
// Send a request to the server.
tdGWTService.getTabularResources(new AsyncCallback<ArrayList<TabResource>>() {
@Override
public void onFailure(Throwable caught) {
// The request resulted in an unexpected error.
fail("Request failure: " + caught.getMessage());
}
@Override
public void onSuccess(ArrayList<TabResource> result) {
// Shows the first three resources.
int i=0;

Loading…
Cancel
Save