diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..5ea9572
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..f3d001f
--- /dev/null
+++ b/.project
@@ -0,0 +1,23 @@
+
+
+ tabular-data-column-widget
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
diff --git a/.settings/com.google.appengine.eclipse.core.prefs b/.settings/com.google.appengine.eclipse.core.prefs
new file mode 100644
index 0000000..5260f5f
--- /dev/null
+++ b/.settings/com.google.appengine.eclipse.core.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+filesCopiedToWebInfLib=
+googleCloudSqlEnabled=false
+localDevMySqlEnabled=true
diff --git a/.settings/com.google.gdt.eclipse.core.prefs b/.settings/com.google.gdt.eclipse.core.prefs
new file mode 100644
index 0000000..8f0b83a
--- /dev/null
+++ b/.settings/com.google.gdt.eclipse.core.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+jarsExcludedFromWebInfLib=
+warSrcDir=
+warSrcDirIsOutput=true
diff --git a/.settings/com.google.gwt.eclipse.core.prefs b/.settings/com.google.gwt.eclipse.core.prefs
new file mode 100644
index 0000000..fb32c70
--- /dev/null
+++ b/.settings/com.google.gwt.eclipse.core.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+entryPointModules=
+filesCopiedToWebInfLib=
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..ff32403
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.5
+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/config/profile.xml b/config/profile.xml
new file mode 100644
index 0000000..98f1fe9
--- /dev/null
+++ b/config/profile.xml
@@ -0,0 +1,29 @@
+
+
+
+ Service
+
+ tabular-data-column-widget allows to perform operations on the columns of a tabular resource
+ PortletsUser
+ tabular-data-column-widget
+ 1.0.0
+
+
+ tabular-data-column-widget allows to perform operations on the columns of a tabular resource
+ tabular-data-column-widget
+ 1.0.0-SNAPSHOT
+
+ org.gcube.portlets.user
+ tabular-data-column-widget
+ 1.0.0-SNAPSHOT
+
+ library
+
+ tabular-data-column-widget-1.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..d473ed0
--- /dev/null
+++ b/distro/README
@@ -0,0 +1,40 @@
+The gCube System - tabular-data-column-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. 1.0.0-SNAPSHOT (2013-10-18)
+
+Description
+-----------
+
+tabular-data-column-widget allows to perform operations on the columns of a tabular resource
+
+Download information
+--------------------
+Source code URL: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget
+
+
+Documentation
+-------------
+
+tabular-data-column-widget allows to perform operations on the columns of a 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..b4c1af8
--- /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..3ccd9ca
--- /dev/null
+++ b/distro/svnpath.txt
@@ -0,0 +1 @@
+https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget
\ No newline at end of file
diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/ColumnDataProperties.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/ColumnDataProperties.java
new file mode 100644
index 0000000..3ef1f7c
--- /dev/null
+++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/ColumnDataProperties.java
@@ -0,0 +1,27 @@
+package org.gcube.portlets.user.td.columnwidget.client;
+
+import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
+
+import com.google.gwt.editor.client.Editor.Path;
+import com.sencha.gxt.data.shared.LabelProvider;
+import com.sencha.gxt.data.shared.ModelKeyProvider;
+import com.sencha.gxt.data.shared.PropertyAccess;
+
+public interface ColumnDataProperties extends
+ PropertyAccess {
+
+ @Path("id")
+ ModelKeyProvider id();
+
+ LabelProvider label();
+
+ /*
+ ValueProvider name();
+
+ ValueProvider typeName();
+
+ ValueProvider typeCode();
+ */
+
+
+}
diff --git a/src/main/java/org/gcube/portlets/user/td/columnwidget/client/RemoveColumnDialog.java b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/RemoveColumnDialog.java
new file mode 100644
index 0000000..69a508f
--- /dev/null
+++ b/src/main/java/org/gcube/portlets/user/td/columnwidget/client/RemoveColumnDialog.java
@@ -0,0 +1,87 @@
+package org.gcube.portlets.user.td.columnwidget.client;
+
+import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
+import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.logical.shared.SelectionEvent;
+import com.google.gwt.event.logical.shared.SelectionHandler;
+import com.google.gwt.event.logical.shared.ValueChangeEvent;
+import com.google.gwt.event.logical.shared.ValueChangeHandler;
+import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction;
+import com.sencha.gxt.data.shared.LabelProvider;
+import com.sencha.gxt.data.shared.ListStore;
+import com.sencha.gxt.widget.core.client.ContentPanel;
+import com.sencha.gxt.widget.core.client.Dialog;
+import com.sencha.gxt.widget.core.client.form.ComboBox;
+import com.sencha.gxt.widget.core.client.info.Info;
+
+public class RemoveColumnDialog extends Dialog {
+
+ public RemoveColumnDialog(TRId trId) {
+ create(trId, null);
+ }
+
+ public RemoveColumnDialog(TRId trId, String columnName) {
+ create(trId, columnName);
+ }
+
+ protected void create(TRId trId, String columnName) {
+ setBodyBorder(false);
+ // getHeader().setIcon(Resources.IMAGES.side_list());
+ setHeadingText("BorderLayout Dialog");
+ setWidth(400);
+ setHeight(225);
+ setHideOnButtonClick(true);
+
+ ContentPanel panel = new ContentPanel();
+ panel.setHeaderVisible(false);
+
+ ColumnDataProperties props = GWT.create(ColumnDataProperties.class);
+ ListStore states = new ListStore(props.id());
+ // states.addAll(TestData.getStates());
+
+ ComboBox combo = new ComboBox(states,
+ props.label());
+ addHandlersForEventObservation(combo, props.label());
+
+ combo.setEmptyText("Select a state...");
+ combo.setWidth(150);
+ combo.setTypeAhead(true);
+ combo.setTriggerAction(TriggerAction.ALL);
+
+ panel.add(combo);
+
+
+ //
+ add(panel);
+
+ }
+
+ private void addHandlersForEventObservation(ComboBox combo,
+ final LabelProvider labelProvider) {
+ combo.addValueChangeHandler(new ValueChangeHandler() {
+
+ public void onValueChange(ValueChangeEvent event) {
+ Info.display(
+ "Value Changed",
+ "New value: "
+ + (event.getValue() == null ? "nothing"
+ : labelProvider.getLabel(event
+ .getValue()) + "!"));
+
+ }
+ });
+ combo.addSelectionHandler(new SelectionHandler() {
+ public void onSelection(SelectionEvent event) {
+ Info.display(
+ "State Selected",
+ "You selected "
+ + (event.getSelectedItem() == null ? "nothing"
+ : labelProvider.getLabel(event
+ .getSelectedItem()) + "!"));
+ }
+ });
+ }
+
+}