diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..079a16e
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..a82d76c
--- /dev/null
+++ b/.project
@@ -0,0 +1,36 @@
+
+
+ tabular-data-open-widget
+
+
+
+
+
+ org.eclipse.wst.common.project.facet.core.builder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.wst.validation.validationbuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jem.workbench.JavaEMFNature
+ org.eclipse.wst.common.modulecore.ModuleCoreNature
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+ org.eclipse.wst.common.project.facet.core.nature
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..29abf99
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -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/=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..8ad6fb0
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -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
diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
new file mode 100644
index 0000000..dc2ba52
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644
index 0000000..a50949e
--- /dev/null
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/config/profile.xml b/config/profile.xml
new file mode 100644
index 0000000..1825c87
--- /dev/null
+++ b/config/profile.xml
@@ -0,0 +1,29 @@
+
+
+
+ Service
+
+ tabular-data-open-widget allows the selection and the opening of tabular resource
+ PortletsUser
+ tabular-data-open-widget
+ 1.0.0
+
+
+ tabular-data-open-widget allows the selection and the opening of tabular resource
+ tabular-data-open-widget
+ 2.0.0-SNAPSHOT
+
+ org.gcube.portlets.user
+ tabular-data-open-widget
+ 2.0.0-SNAPSHOT
+
+ library
+
+ tabular-data-open-widget-2.0.0-SNAPSHOT.jar
+
+
+
+
+
+
+
diff --git a/distro/INSTALL b/distro/INSTALL
new file mode 100644
index 0000000..e69de29
diff --git a/distro/LICENSE b/distro/LICENSE
new file mode 100644
index 0000000..cc51139
--- /dev/null
+++ b/distro/LICENSE
@@ -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.
\ No newline at end of file
diff --git a/distro/MAINTAINERS b/distro/MAINTAINERS
new file mode 100644
index 0000000..0bc9be3
--- /dev/null
+++ b/distro/MAINTAINERS
@@ -0,0 +1 @@
+Giancarlo Panichi (giancarlo.panichi@isti.cnr.it), CNR Pisa, Istituto di Scienza e Tecnologie dell'Informazione "A. Faedo"
diff --git a/distro/README b/distro/README
new file mode 100644
index 0000000..019ebe6
--- /dev/null
+++ b/distro/README
@@ -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.
+
+
+
diff --git a/distro/changelog.xml b/distro/changelog.xml
new file mode 100644
index 0000000..f857fb6
--- /dev/null
+++ b/distro/changelog.xml
@@ -0,0 +1,6 @@
+
+
+ First Release
+
+
\ No newline at end of file
diff --git a/distro/svnpath.txt b/distro/svnpath.txt
new file mode 100644
index 0000000..7d4d54d
--- /dev/null
+++ b/distro/svnpath.txt
@@ -0,0 +1 @@
+https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget
\ No newline at end of file
diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenEntry.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenEntry.java
index 9f7c9d0..66ffae3 100644
--- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenEntry.java
+++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TDOpenEntry.java
@@ -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());
diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java
index 4d3d72a..9844b1b 100644
--- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java
+++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java
@@ -46,7 +46,7 @@ public class TabResourcesSelectionCard extends WizardCard {
tabResourcesSelectionPanel
.addSelectionHandler(new SelectionHandler() {
- @Override
+
public void onSelection(SelectionEvent 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() {
- @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());
diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java
index 07e8320..b4aed5e 100644
--- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java
+++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java
@@ -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() {
- @Override
public boolean select(Store 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> callback) {
TDGWTServiceAsync.INSTANCE.getTabularResources(new AsyncCallback>() {
- @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 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 handler) {
return grid.getSelectionModel().addSelectionHandler(handler);
}
diff --git a/src/test/java/org/gcube/portlets/user/td/openwidget/client/GwtTestTDOpen.java b/src/test/java/org/gcube/portlets/user/td/openwidget/client/GwtTestTDOpen.java
index 0b37dcc..76afa4e 100644
--- a/src/test/java/org/gcube/portlets/user/td/openwidget/client/GwtTestTDOpen.java
+++ b/src/test/java/org/gcube/portlets/user/td/openwidget/client/GwtTestTDOpen.java
@@ -47,14 +47,14 @@ public class GwtTestTDOpen extends GWTTestCase {
// Send a request to the server.
tdGWTService.getTabularResources(new AsyncCallback>() {
- @Override
+
public void onFailure(Throwable caught) {
// The request resulted in an unexpected error.
fail("Request failure: " + caught.getMessage());
}
- @Override
+
public void onSuccess(ArrayList result) {
// Shows the first three resources.
int i=0;