Updated to JAVA 7

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-import-widget@86988 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-12-16 17:24:41 +00:00 committed by Giancarlo Panichi
parent d4eebbb1a2
commit 634244e985
27 changed files with 208 additions and 42 deletions

37
.classpath Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/tabular-data-sdmx-import-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-sdmx-import-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-sdmx-import-widget-2.0.0-SNAPSHOT/WEB-INF/classes"/>
</classpath>

36
.project Normal file
View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tabular-data-sdmx-import-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>

View File

@ -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

View File

@ -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

View File

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

View File

@ -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-sdmx-import-widget">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>

View File

@ -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>

29
config/profile.xml Normal file
View File

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

0
distro/INSTALL Normal file
View File

6
distro/LICENSE Normal file
View File

@ -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.

1
distro/MAINTAINERS Normal file
View File

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

40
distro/README Normal file
View File

@ -0,0 +1,40 @@
The gCube System - tabular-data-sdmx-import-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-sdmx-import-widget allows sdmx import of codelists and dataset
Download information
--------------------
Source code URL: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-import-widget
Documentation
-------------
tabular-data-sdmx-import-widget allows sdmx import of codelists and dataset
Licensing
---------
This software is licensed under the terms you may find in the file named "LICENSE" in this directory.

6
distro/changelog.xml Normal file
View File

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

1
distro/svnpath.txt Normal file
View File

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

View File

@ -103,7 +103,7 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
searchField.addKeyUpHandler(new KeyUpHandler() { searchField.addKeyUpHandler(new KeyUpHandler() {
@Override
public void onKeyUp(KeyUpEvent event) { public void onKeyUp(KeyUpEvent event) {
Log.trace("searchTerm: "+searchField.getCurrentValue()); Log.trace("searchTerm: "+searchField.getCurrentValue());
store.applyFilters(); store.applyFilters();
@ -112,7 +112,6 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
store.addFilter(new StoreFilter<Codelist>() { store.addFilter(new StoreFilter<Codelist>() {
@Override
public boolean select(Store<Codelist> store, Codelist parent, Codelist item) { public boolean select(Store<Codelist> store, Codelist parent, Codelist item) {
String searchTerm = searchField.getCurrentValue(); String searchTerm = searchField.getCurrentValue();
if (searchTerm == null) return true; if (searchTerm == null) return true;
@ -139,7 +138,6 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
protected void onAfterFirstAttach() { protected void onAfterFirstAttach() {
super.onAfterFirstAttach(); super.onAfterFirstAttach();
Scheduler.get().scheduleDeferred(new ScheduledCommand() { Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() { public void execute() {
loader.load(); loader.load();
} }
@ -159,7 +157,6 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
grid.setColumnReordering(true); grid.setColumnReordering(true);
SelectHandler sh = new SelectHandler() { SelectHandler sh = new SelectHandler() {
@Override
public void onSelect(SelectEvent event) { public void onSelect(SelectEvent event) {
loader.load(); loader.load();
} }
@ -188,12 +185,10 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
protected void loadData(ListLoadConfig loadConfig, final AsyncCallback<ListLoadResult<Codelist>> callback) { protected void loadData(ListLoadConfig loadConfig, final AsyncCallback<ListLoadResult<Codelist>> callback) {
TDGWTServiceAsync.INSTANCE.getCodelists(new AsyncCallback<ArrayList<Codelist>>() { TDGWTServiceAsync.INSTANCE.getCodelists(new AsyncCallback<ArrayList<Codelist>>() {
@Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
callback.onFailure(caught); callback.onFailure(caught);
} }
@Override
public void onSuccess(ArrayList<Codelist> result) { public void onSuccess(ArrayList<Codelist> result) {
Log.trace("loaded "+result.size()+" codelists"); Log.trace("loaded "+result.size()+" codelists");
callback.onSuccess(new ListLoadResultBean<Codelist>(result)); callback.onSuccess(new ListLoadResultBean<Codelist>(result));
@ -202,7 +197,6 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
} }
@Override
public HandlerRegistration addSelectionHandler(SelectionHandler<Codelist> handler) { public HandlerRegistration addSelectionHandler(SelectionHandler<Codelist> handler) {
return grid.getSelectionModel().addSelectionHandler(handler); return grid.getSelectionModel().addSelectionHandler(handler);
} }

View File

@ -88,7 +88,7 @@ public class DatasetSelectionPanel extends ContentPanel implements HasSelectionH
searchField.addKeyUpHandler(new KeyUpHandler() { searchField.addKeyUpHandler(new KeyUpHandler() {
@Override
public void onKeyUp(KeyUpEvent event) { public void onKeyUp(KeyUpEvent event) {
Log.trace("searchTerm: "+searchField.getCurrentValue()); Log.trace("searchTerm: "+searchField.getCurrentValue());
store.applyFilters(); store.applyFilters();
@ -97,7 +97,6 @@ public class DatasetSelectionPanel extends ContentPanel implements HasSelectionH
store.addFilter(new StoreFilter<Dataset>() { store.addFilter(new StoreFilter<Dataset>() {
@Override
public boolean select(Store<Dataset> store, Dataset parent, Dataset item) { public boolean select(Store<Dataset> store, Dataset parent, Dataset item) {
String searchTerm = searchField.getCurrentValue(); String searchTerm = searchField.getCurrentValue();
if (searchTerm == null) return true; if (searchTerm == null) return true;
@ -120,11 +119,10 @@ public class DatasetSelectionPanel extends ContentPanel implements HasSelectionH
loader.addLoadHandler(new LoadResultListStoreBinding<ListLoadConfig, Dataset, ListLoadResult<Dataset>>(store)); loader.addLoadHandler(new LoadResultListStoreBinding<ListLoadConfig, Dataset, ListLoadResult<Dataset>>(store));
grid = new Grid<Dataset>(store, cm){ grid = new Grid<Dataset>(store, cm){
@Override
protected void onAfterFirstAttach() { protected void onAfterFirstAttach() {
super.onAfterFirstAttach(); super.onAfterFirstAttach();
Scheduler.get().scheduleDeferred(new ScheduledCommand() { Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() { public void execute() {
loader.load(); loader.load();
} }
@ -162,12 +160,10 @@ public class DatasetSelectionPanel extends ContentPanel implements HasSelectionH
protected void loadData(ListLoadConfig loadConfig, final AsyncCallback<ListLoadResult<Dataset>> callback) { protected void loadData(ListLoadConfig loadConfig, final AsyncCallback<ListLoadResult<Dataset>> callback) {
TDGWTServiceAsync.INSTANCE.getDatasets(new AsyncCallback<ArrayList<Dataset>>() { TDGWTServiceAsync.INSTANCE.getDatasets(new AsyncCallback<ArrayList<Dataset>>() {
@Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
callback.onFailure(caught); callback.onFailure(caught);
} }
@Override
public void onSuccess(ArrayList<Dataset> result) { public void onSuccess(ArrayList<Dataset> result) {
Log.trace("loaded "+result.size()+" datasets"); Log.trace("loaded "+result.size()+" datasets");
callback.onSuccess(new ListLoadResultBean<Dataset>(result)); callback.onSuccess(new ListLoadResultBean<Dataset>(result));
@ -176,7 +172,7 @@ public class DatasetSelectionPanel extends ContentPanel implements HasSelectionH
} }
@Override
public HandlerRegistration addSelectionHandler(SelectionHandler<Dataset> handler) { public HandlerRegistration addSelectionHandler(SelectionHandler<Dataset> handler) {
return grid.getSelectionModel().addSelectionHandler(handler); return grid.getSelectionModel().addSelectionHandler(handler);
} }

View File

@ -34,7 +34,7 @@ public class SDMXCodelistSelectionCard extends WizardCard {
codelistSelectionPanel.addSelectionHandler(new SelectionHandler<Codelist>() { codelistSelectionPanel.addSelectionHandler(new SelectionHandler<Codelist>() {
@Override
public void onSelection(SelectionEvent<Codelist> event) { public void onSelection(SelectionEvent<Codelist> event) {
importSession.setSelectedCodelist(codelistSelectionPanel.getSelectedItem()); importSession.setSelectedCodelist(codelistSelectionPanel.getSelectedItem());
getWizardWindow().setEnableNextButton(true); getWizardWindow().setEnableNextButton(true);
@ -52,7 +52,6 @@ public class SDMXCodelistSelectionCard extends WizardCard {
public void setup(){ public void setup(){
Command sayNextCard = new Command() { Command sayNextCard = new Command() {
@Override
public void execute() { public void execute() {
SDMXTableDetailCard sdmxTableDetailCard = new SDMXTableDetailCard( SDMXTableDetailCard sdmxTableDetailCard = new SDMXTableDetailCard(
importSession); importSession);

View File

@ -65,7 +65,7 @@ public class SDMXDocumentSelectionCard extends WizardCard {
toggle.addValueChangeHandler(new ValueChangeHandler<HasValue<Boolean>>() { toggle.addValueChangeHandler(new ValueChangeHandler<HasValue<Boolean>>() {
@Override
public void onValueChange(ValueChangeEvent<HasValue<Boolean>> event) { public void onValueChange(ValueChangeEvent<HasValue<Boolean>> event) {
try { try {
ToggleGroup group = (ToggleGroup) event.getSource(); ToggleGroup group = (ToggleGroup) event.getSource();

View File

@ -7,7 +7,7 @@ import com.google.gwt.core.client.EntryPoint;
public class SDMXImportWizardTDEntry implements EntryPoint { public class SDMXImportWizardTDEntry implements EntryPoint {
@Override
public void onModuleLoad() { public void onModuleLoad() {
SDMXImportWizardTD importWizard= new SDMXImportWizardTD("SDMXImport"); SDMXImportWizardTD importWizard= new SDMXImportWizardTD("SDMXImport");
Log.info(importWizard.getId()); Log.info(importWizard.getId());

View File

@ -136,12 +136,11 @@ public class SDMXOperationInProgressCard extends WizardCard implements
TDGWTServiceAsync.INSTANCE.startSDMXImport( TDGWTServiceAsync.INSTANCE.startSDMXImport(
importSession, new AsyncCallback<Void>() { importSession, new AsyncCallback<Void>() {
@Override
public void onSuccess(Void result) { public void onSuccess(Void result) {
progressUpdater.scheduleRepeating(STATUS_POLLING_DELAY); progressUpdater.scheduleRepeating(STATUS_POLLING_DELAY);
} }
@Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
showErrorAndHide("Error in importSDMX", showErrorAndHide("Error in importSDMX",
"An error occured in importSDMX", "", caught); "An error occured in importSDMX", "", caught);
@ -159,17 +158,14 @@ public class SDMXOperationInProgressCard extends WizardCard implements
importSDMX(); importSDMX();
} }
@Override
public void operationInitializing() { public void operationInitializing() {
} }
@Override
public void operationUpdate(float elaborated) { public void operationUpdate(float elaborated) {
} }
@Override
public void operationComplete(final TRId trId) { public void operationComplete(final TRId trId) {
// final String tableId,final String tableResourceId) { // final String tableId,final String tableResourceId) {
@ -194,7 +190,6 @@ public class SDMXOperationInProgressCard extends WizardCard implements
getWizardWindow().setEnableNextButton(true); getWizardWindow().setEnableNextButton(true);
} }
@Override
public void operationFailed(Throwable caught, String reason, public void operationFailed(Throwable caught, String reason,
String failureDetails) { String failureDetails) {

View File

@ -92,7 +92,7 @@ public class SDMXRegistrySelectionCard extends WizardCard {
toggle.addValueChangeHandler(new ValueChangeHandler<HasValue<Boolean>>() { toggle.addValueChangeHandler(new ValueChangeHandler<HasValue<Boolean>>() {
@Override
public void onValueChange(ValueChangeEvent<HasValue<Boolean>> event) { public void onValueChange(ValueChangeEvent<HasValue<Boolean>> event) {
try { try {
ToggleGroup group = (ToggleGroup) event.getSource(); ToggleGroup group = (ToggleGroup) event.getSource();
@ -145,13 +145,11 @@ public class SDMXRegistrySelectionCard extends WizardCard {
TDGWTServiceAsync.INSTANCE.setSDMXRegistrySource( TDGWTServiceAsync.INSTANCE.setSDMXRegistrySource(
((SDMXRegistrySource)importSession.getSource()), new AsyncCallback<Void>() { ((SDMXRegistrySource)importSession.getSource()), new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
Log.error("SDMXImportSession do not stored " Log.error("SDMXImportSession do not stored "
+ caught.getLocalizedMessage()); + caught.getLocalizedMessage());
} }
@Override
public void onSuccess(Void result) { public void onSuccess(Void result) {
Log.info("SDMXRegistrySource stored"); Log.info("SDMXRegistrySource stored");
} }

View File

@ -116,7 +116,7 @@ public class SDMXTableDetailCard extends WizardCard {
public void setup() { public void setup() {
Command sayNextCard = new Command() { Command sayNextCard = new Command() {
@Override
public void execute() { public void execute() {
checkData(); checkData();
} }
@ -148,7 +148,6 @@ public class SDMXTableDetailCard extends WizardCard {
AlertMessageBox d; AlertMessageBox d;
HideHandler hideHandler = new HideHandler() { HideHandler hideHandler = new HideHandler() {
@Override
public void onHide(HideEvent event) { public void onHide(HideEvent event) {
getWizardWindow().setEnableNextButton(true); getWizardWindow().setEnableNextButton(true);
getWizardWindow().setEnableBackButton(false); getWizardWindow().setEnableBackButton(false);

View File

@ -77,7 +77,7 @@ public class SourceSelectionCard extends WizardCard {
toggle.addValueChangeHandler(new ValueChangeHandler<HasValue<Boolean>>() { toggle.addValueChangeHandler(new ValueChangeHandler<HasValue<Boolean>>() {
@Override
public void onValueChange(ValueChangeEvent<HasValue<Boolean>> event) { public void onValueChange(ValueChangeEvent<HasValue<Boolean>> event) {
try { try {
ToggleGroup group = (ToggleGroup) event.getSource(); ToggleGroup group = (ToggleGroup) event.getSource();

View File

@ -34,7 +34,6 @@ public class ImportProgressBarUpdater implements OperationProgressListener {
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@Override
public void operationComplete(TRId trId) { public void operationComplete(TRId trId) {
Log.info("Import complete"); Log.info("Import complete");
progressBar.updateProgress(1, "Import complete."); progressBar.updateProgress(1, "Import complete.");
@ -44,19 +43,16 @@ public class ImportProgressBarUpdater implements OperationProgressListener {
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@Override
public void operationFailed(Throwable caught, String reason, String failureDetails) { public void operationFailed(Throwable caught, String reason, String failureDetails) {
Log.info("Import failed"); Log.info("Import failed");
progressBar.updateText("Import failed."); progressBar.updateText("Import failed.");
} }
@Override
public void operationInitializing() { public void operationInitializing() {
Log.info("Inport inizializing"); Log.info("Inport inizializing");
progressBar.updateProgress(0, "Initializing..."); progressBar.updateProgress(0, "Initializing...");
} }
@Override
public void operationUpdate(float elaborated) { public void operationUpdate(float elaborated) {
Log.info("Import elaborated: "+elaborated); Log.info("Import elaborated: "+elaborated);
if (elaborated == 0) progressBar.updateProgress(0, "Initializing..."); if (elaborated == 0) progressBar.updateProgress(0, "Initializing...");

View File

@ -38,7 +38,7 @@ public class OperationProgressUpdater extends Timer {
TDGWTServiceAsync.INSTANCE TDGWTServiceAsync.INSTANCE
.getSDMXImportMonitor(new AsyncCallback<SDMXImportMonitor>() { .getSDMXImportMonitor(new AsyncCallback<SDMXImportMonitor>() {
@Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
cancel(); cancel();
Log.error("Error retrieving the operation state", Log.error("Error retrieving the operation state",
@ -48,7 +48,6 @@ public class OperationProgressUpdater extends Timer {
"Failed getting operation updates", message); "Failed getting operation updates", message);
} }
@Override
public void onSuccess(SDMXImportMonitor result) { public void onSuccess(SDMXImportMonitor result) {
Log.info("retrieved ImportMonitor: " Log.info("retrieved ImportMonitor: "
+ result.getStatus()); + result.getStatus());
@ -104,7 +103,6 @@ public class OperationProgressUpdater extends Timer {
AlertMessageBox d = new AlertMessageBox("Error in SDMX Import", details); AlertMessageBox d = new AlertMessageBox("Error in SDMX Import", details);
d.addHideHandler(new HideHandler() { d.addHideHandler(new HideHandler() {
@Override
public void onHide(HideEvent event) { public void onHide(HideEvent event) {
// //
} }

View File

@ -12,7 +12,9 @@ import com.sencha.gxt.widget.core.client.event.HideEvent;
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
/** /**
* @author "Federico De Faveri defaveri@isti.cnr.it" *
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
* *
*/ */
public class ErrorMessageBox { public class ErrorMessageBox {
@ -32,7 +34,7 @@ public class ErrorMessageBox {
box.setMessage(failureReason); box.setMessage(failureReason);
box.addHideHandler(new HideHandler() { box.addHideHandler(new HideHandler() {
@Override
public void onHide(HideEvent event) { public void onHide(HideEvent event) {
Dialog dialog = (Dialog) event.getSource(); Dialog dialog = (Dialog) event.getSource();

View File

@ -6,15 +6,18 @@ package org.gcube.portlets.user.td.sdmximportwidget.client.util;
import com.google.gwt.core.client.Callback; import com.google.gwt.core.client.Callback;
/** /**
* @author "Federico De Faveri defaveri@isti.cnr.it" *
* @author "Giancarlo Panichi"
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
* *
* @param <T>
* @param <F>
*/ */
public class NOPCallBack<T,F> implements Callback<T, F> { public class NOPCallBack<T,F> implements Callback<T, F> {
@Override
public void onFailure(F reason) {} public void onFailure(F reason) {}
@Override
public void onSuccess(T result) {} public void onSuccess(T result) {}
} }