Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@96440 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-06-03 15:35:01 +00:00
parent a8de781f3a
commit 083bae144c
6 changed files with 60 additions and 4 deletions

View File

@ -25,6 +25,9 @@
<dependent-module archiveName="tabular-data-sdmx-export-widget-1.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-sdmx-export-widget/tabular-data-sdmx-export-widget">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tabular-data-codelistmapping-import-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-codelistmapping-import-widget/tabular-data-codelistmapping-import-widget">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tabular-data-table-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-table-widget/tabular-data-table-widget">
<dependency-type>uses</dependency-type>
</dependent-module>

View File

@ -39,7 +39,7 @@
<properties>
<distroDirectory>${project.basedir}/distro</distroDirectory>
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
<release.date>2013-10-18</release.date>
<release.date>2014-06-05</release.date>
<templatesDirectory>templates</templatesDirectory>
<distroDirectory>distro</distroDirectory>
<configDirectory>config</configDirectory>
@ -277,6 +277,13 @@
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
</dependency>
<!-- tabular-data-codelistmapping-import-widget -->
<dependency>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>tabular-data-codelistmapping-import-widget</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
</dependency>
<!-- tabular-data-table-widget -->
<dependency>
<groupId>org.gcube.portlets.user</groupId>

View File

@ -8,6 +8,7 @@ import java.util.ArrayList;
import org.gcube.portlets.user.td.client.template.TemplateApplyDialog;
import org.gcube.portlets.user.td.client.template.TemplateDeleteDialog;
import org.gcube.portlets.user.td.client.template.TemplateOpenDialog;
import org.gcube.portlets.user.td.codelistmappingimportwidget.client.CodelistMappingImportWizardTD;
import org.gcube.portlets.user.td.columnwidget.client.batch.ReplaceBatchDialog;
import org.gcube.portlets.user.td.columnwidget.client.replace.ReplaceDialog;
import org.gcube.portlets.user.td.csvexportwidget.client.CSVExportWizardTD;
@ -508,6 +509,9 @@ public class TabularDataController {
case EXTRACTCODELIST:
openExtractCodelistWizard();
break;
case CODELISTMAPPING:
openCodelistMappingWizard();
break;
case GENERATESUMMARY:
break;
case TABLEFILTER:
@ -773,6 +777,43 @@ public class TabularDataController {
}
protected void openCodelistMappingWizard() {
GWT.runAsync(new RunAsyncCallback() {
public void onSuccess() {
openWizard();
CodelistMappingImportWizardTD codelistMappingWizard = new CodelistMappingImportWizardTD(
trId,"Codelist Mapping Import", eventBus);
codelistMappingWizard.addListener(new WizardListener() {
public void failed(Throwable throwable, String reason,
String details) {
UtilsGXT3.alert(reason, details);
resumeUIState();
}
public void completed(TRId id) {
openTable(id);
}
public void aborted() {
resumeUIState();
}
});
codelistMappingWizard.show();
}
public void onFailure(Throwable reason) {
asyncCodeLoadingFailed(reason);
}
});
}
/**
*
*/

View File

@ -317,7 +317,7 @@ public class CurationToolBar {
codelistMappingButton.addSelectHandler(new SelectHandler() {
public void onSelect(SelectEvent event) {
eventBus.fireEvent(new RibbonEvent(RibbonType.EXTRACTCODELIST));
eventBus.fireEvent(new RibbonEvent(RibbonType.CODELISTMAPPING));
}
});

View File

@ -38,14 +38,16 @@
name='org.gcube.portlets.user.td.csvexportwidget.CSVExportWizardTD' />
<inherits
name='org.gcube.portlets.user.td.extractcodelistwidget.ExtractCodelistWizardTD' />
<inherits
name='org.gcube.portlets.user.td.codelistmappingimportwidget.CodelistMappingImportWizardTD' />
<inherits
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />
<inherits name='org.gcube.portlets.user.td.taskswidget.TdTasksWidget' />
<inherits name="org.gcube.portlets.user.tdtemplate.TabularDataTemplate" />
<inherits name='org.gcube.portlets.widgets.sessionchecker.SessionChecker' />
<!-- Specify the app entry point class. -->

View File

@ -37,6 +37,9 @@
name='org.gcube.portlets.user.td.csvexportwidget.CSVExportWizardTD' />
<inherits
name='org.gcube.portlets.user.td.extractcodelistwidget.ExtractCodelistWizardTD' />
<inherits
name='org.gcube.portlets.user.td.codelistmappingimportwidget.CodelistMappingImportWizardTD' />
<inherits
name='org.gcube.portlets.widgets.lighttree.WorkspacePortletLightTree' />