diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportConfigCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportConfigCard.java index 5ae8a08..1c46d65 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportConfigCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportConfigCard.java @@ -86,7 +86,6 @@ public class CSVExportConfigCard extends WizardCard { encodings.setTriggerAction(TriggerAction.ALL); encodings.addSelectionHandler(new SelectionHandler() { - @Override public void onSelection(SelectionEvent event) { } @@ -97,7 +96,6 @@ public class CSVExportConfigCard extends WizardCard { TDGWTServiceAsync.INSTANCE .getAvailableCharset(new AsyncCallback() { - @Override public void onSuccess(AvailableCharsetList result) { GWT.log("CharsetInfo: " + result.getCharsetList().size() @@ -114,7 +112,6 @@ public class CSVExportConfigCard extends WizardCard { /** * {@inheritDoc} */ - @Override public void onFailure(Throwable caught) { GWT.log("Error loading charset list", caught); showErrorAndHide("Error loading charset list", @@ -156,7 +153,6 @@ public class CSVExportConfigCard extends WizardCard { delimitersGroup .addValueChangeHandler(new ValueChangeHandler>() { - @Override public void onValueChange( ValueChangeEvent> event) { @@ -191,7 +187,6 @@ public class CSVExportConfigCard extends WizardCard { csvColumnGridPanel .addSelectionHandler(new SelectionHandler() { - @Override public void onSelection(SelectionEvent event) { } @@ -222,7 +217,6 @@ public class CSVExportConfigCard extends WizardCard { Log.debug("CSVExportConfigCard Setup"); Command sayNextCard = new Command() { - @Override public void execute() { Log.debug("CSVExportConfigCard Call sayNextCard"); checkData(); @@ -241,7 +235,6 @@ public class CSVExportConfigCard extends WizardCard { AlertMessageBox d; HideHandler hideHandler = new HideHandler() { - @Override public void onHide(HideEvent event) { getWizardWindow().setEnableNextButton(true); getWizardWindow().setEnableBackButton(false); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTDEntry.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTDEntry.java index 32ea482..50aa939 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTDEntry.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTDEntry.java @@ -5,7 +5,7 @@ import com.google.gwt.core.client.EntryPoint; public class CSVExportWizardTDEntry implements EntryPoint { - @Override + public void onModuleLoad() { CSVExportWizardTD exportWizard= new CSVExportWizardTD("CSVExport"); Log.info(exportWizard.getId()); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVOperationInProgressCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVOperationInProgressCard.java index 5f64b56..3720d3a 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVOperationInProgressCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVOperationInProgressCard.java @@ -89,12 +89,11 @@ CSVExportProgressListener { public void exportCSV() { TDGWTServiceAsync.INSTANCE.startCSVExport(exportSession, new AsyncCallback() { - @Override + public void onSuccess(Void result) { progressUpdater.scheduleRepeating(STATUS_POLLING_DELAY); } - @Override public void onFailure(Throwable caught) { showErrorAndHide("Error in exportCSV", "An error occured in exportCSV: "+caught.getLocalizedMessage(), caught.getStackTrace().toString(), caught); @@ -112,17 +111,14 @@ CSVExportProgressListener { exportCSV(); } - @Override public void operationInitializing() { } - @Override public void operationUpdate(float elaborated) { } - @Override public void operationComplete() { // final String tableId,final String tableResourceId) { @@ -146,7 +142,6 @@ CSVExportProgressListener { getWizardWindow().setEnableNextButton(true); } - @Override public void operationFailed(Throwable caught, String reason, String failureDetails) { diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java index 30fef1c..06f5da4 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVWorkSpaceSelectionCard.java @@ -79,7 +79,7 @@ public class CSVWorkSpaceSelectionCard extends WizardCard { wpanel.setSelectableTypes(lItemType); wpanel.addSelectionHandler(new ItemSelectionHandler() { - @Override + public void onSelection(ItemSelectionEvent event) { item = event.getSelectedItem(); Log.debug("Selected Item:" + item); @@ -108,7 +108,6 @@ public class CSVWorkSpaceSelectionCard extends WizardCard { AlertMessageBox d; HideHandler hideHandler = new HideHandler() { - @Override public void onHide(HideEvent event) { wpanel.enable(); getWizardWindow().setEnableNextButton(true); @@ -156,7 +155,6 @@ public class CSVWorkSpaceSelectionCard extends WizardCard { Log.debug("CSVWorkSpaceSelectionCard Call Setup "); Command sayNextCard = new Command() { - @Override public void execute() { Log.debug("CSVWorkSpaceSelectionCard Call sayNextCard wpanel:" + wpanel); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java index 01ade80..fdc69ea 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java @@ -74,7 +74,7 @@ public class DestinationSelectionCard extends WizardCard { toggle.addValueChangeHandler(new ValueChangeHandler>() { - @Override + public void onValueChange(ValueChangeEvent> event) { try { ToggleGroup group = (ToggleGroup) event.getSource(); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java index a0e839b..9c2e30d 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java @@ -35,7 +35,7 @@ public class DownloadFileCard extends WizardCard { @Override public void setup() { Command sayNextCard = new Command() { - @Override + public void execute() { } diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/grid/ColumnDataGridPanel.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/grid/ColumnDataGridPanel.java index 67c9e08..519022b 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/grid/ColumnDataGridPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/grid/ColumnDataGridPanel.java @@ -88,7 +88,7 @@ public class ColumnDataGridPanel extends ContentPanel implements protected void onAfterFirstAttach() { super.onAfterFirstAttach(); Scheduler.get().scheduleDeferred(new ScheduledCommand() { - @Override + public void execute() { loader.load(); } @@ -125,14 +125,13 @@ public class ColumnDataGridPanel extends ContentPanel implements TDGWTServiceAsync.INSTANCE .getColumns(new AsyncCallback>() { - @Override + public void onFailure(Throwable caught) { Log.error("No load columns: " + caught.getLocalizedMessage()); callback.onFailure(caught); } - @Override public void onSuccess(ArrayList result) { Log.trace("loaded " + result.size() + " columns"); callback.onSuccess(new ListLoadResultBean( @@ -149,7 +148,7 @@ public class ColumnDataGridPanel extends ContentPanel implements } - @Override + public HandlerRegistration addSelectionHandler( SelectionHandler handler) { return grid.getSelectionModel().addSelectionHandler(handler); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressBarUpdater.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressBarUpdater.java index 8b6ff3f..16933a1 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressBarUpdater.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressBarUpdater.java @@ -33,7 +33,6 @@ public class CSVExportProgressBarUpdater implements CSVExportProgressListener { /** * {@inheritDoc} */ - @Override public void operationComplete() { Log.info("Export completed"); progressBar.updateProgress(1, "Export completed."); @@ -43,19 +42,17 @@ public class CSVExportProgressBarUpdater implements CSVExportProgressListener { /** * {@inheritDoc} */ - @Override public void operationFailed(Throwable caught, String reason, String failureDetails) { Log.info("Export failed"); progressBar.updateText("Export failed."); } - @Override public void operationInitializing() { Log.info("Export Inizializing"); progressBar.updateProgress(0, "Initializing..."); } - @Override + public void operationUpdate(float elaborated) { Log.info("Export elaborated: "+elaborated); if (elaborated == 0) progressBar.updateProgress(0, "Initializing..."); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressUpdater.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressUpdater.java index 5eb809f..ccf096b 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressUpdater.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/progress/CSVExportProgressUpdater.java @@ -35,7 +35,7 @@ public class CSVExportProgressUpdater extends Timer { TDGWTServiceAsync.INSTANCE .getCSVExportMonitor(new AsyncCallback() { - @Override + public void onFailure(Throwable caught) { cancel(); Log.error("Error retrieving the operation state", @@ -45,7 +45,6 @@ public class CSVExportProgressUpdater extends Timer { "Failed getting operation updates", message); } - @Override public void onSuccess(CSVExportMonitor result) { Log.info("retrieved CSVImportMonitor: " + result.getStatus()); @@ -102,7 +101,7 @@ public class CSVExportProgressUpdater extends Timer { AlertMessageBox d = new AlertMessageBox("Error in CSV Export", details); d.addHideHandler(new HideHandler() { - @Override + public void onHide(HideEvent event) { // } diff --git a/src/test/java/org/gcube/portlets/user/td/csvexportwidget/client/GwtTestCSVExportWizardTD.java b/src/test/java/org/gcube/portlets/user/td/csvexportwidget/client/GwtTestCSVExportWizardTD.java index 1a05be2..10f4e42 100644 --- a/src/test/java/org/gcube/portlets/user/td/csvexportwidget/client/GwtTestCSVExportWizardTD.java +++ b/src/test/java/org/gcube/portlets/user/td/csvexportwidget/client/GwtTestCSVExportWizardTD.java @@ -48,14 +48,14 @@ public class GwtTestCSVExportWizardTD 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;