Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@98956 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d6196932a9
commit
29e9baedf7
|
@ -53,8 +53,9 @@ import com.sencha.gxt.widget.core.client.tips.ToolTipConfig;
|
|||
*/
|
||||
public class CSVConfigCard extends WizardCard {
|
||||
|
||||
private static final String DEFAULT_DELIMETER = ",";
|
||||
private static final String DEFAULT_COMMENT = "#";
|
||||
protected static final String DEFAULT_DELIMETER = ",";
|
||||
protected static final String DEFAULT_COMMENT = "#";
|
||||
protected static final long ERRORLIMIT = 100;
|
||||
protected CSVImportSession csvImportSession;
|
||||
|
||||
protected SimpleComboBox<String> encodings;
|
||||
|
@ -245,7 +246,7 @@ public class CSVConfigCard extends WizardCard {
|
|||
csvCheckPanel.setActiveCheckingPanel();
|
||||
csvCheckPanel.getCheckConfiguration().setEnabled(false);
|
||||
|
||||
TDGWTServiceAsync.INSTANCE.checkCSV(100,
|
||||
TDGWTServiceAsync.INSTANCE.checkCSV(ERRORLIMIT,
|
||||
new AsyncCallback<ArrayList<CSVRowError>>() {
|
||||
|
||||
public void onFailure(Throwable caught) {
|
||||
|
|
|
@ -27,7 +27,7 @@ import com.sencha.gxt.widget.core.client.tips.ToolTipConfig;
|
|||
*/
|
||||
public class CsvCheckPanel extends VerticalPanel {
|
||||
|
||||
public static final int ERROR_LIMIT = 50;
|
||||
protected static final int ERRORLIMIT = 100;
|
||||
|
||||
protected static final Image successImage = new Image(ResourceBundle.INSTANCE.csvCheckSuccess());
|
||||
protected static final Image failureImage = new Image(ResourceBundle.INSTANCE.csvCheckFailure());
|
||||
|
@ -127,7 +127,7 @@ public class CsvCheckPanel extends VerticalPanel {
|
|||
|
||||
public void setActiveFailure(ArrayList<CSVRowError> errors)
|
||||
{
|
||||
if (errors.size() >= ERROR_LIMIT) errorAnchor.setHTML("Failed (more than "+ERROR_LIMIT+" errors)");
|
||||
if (errors.size() >= ERRORLIMIT) errorAnchor.setHTML("Failed (more than "+ERRORLIMIT+" errors)");
|
||||
else errorAnchor.setHTML("Failed ("+errors.size()+" errors)");
|
||||
|
||||
errorWindow.updateGrid(errors);
|
||||
|
|
Loading…
Reference in New Issue