Fixed Error Management
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-import-widget@101907 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e3f63d99f4
commit
9e17c8f625
|
@ -26,6 +26,7 @@ import com.sencha.gxt.core.client.util.Margins;
|
||||||
import com.sencha.gxt.widget.core.client.FramedPanel;
|
import com.sencha.gxt.widget.core.client.FramedPanel;
|
||||||
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
||||||
import com.sencha.gxt.widget.core.client.container.HtmlLayoutContainer;
|
import com.sencha.gxt.widget.core.client.container.HtmlLayoutContainer;
|
||||||
|
import com.sencha.gxt.widget.core.client.container.MarginData;
|
||||||
import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer;
|
import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer;
|
||||||
import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer.VBoxLayoutAlign;
|
import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer.VBoxLayoutAlign;
|
||||||
|
|
||||||
|
@ -125,7 +126,7 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
operationInProgressPanel.add(resultField, new BoxLayoutData(
|
operationInProgressPanel.add(resultField, new BoxLayoutData(
|
||||||
new Margins(10, 5, 10, 5)));
|
new Margins(10, 5, 10, 5)));
|
||||||
|
|
||||||
setContent(operationInProgressPanel);
|
setCenterWidget(operationInProgressPanel, new MarginData(0));
|
||||||
resultField.setVisible(false);
|
resultField.setVisible(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -149,12 +150,12 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
showErrorAndHide("Error Locked",
|
showErrorAndHide("Error Locked",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
showErrorAndHide("Error in importSDMX",
|
showErrorAndHide("Error in importSDMX",
|
||||||
"An error occured in importSDMX",
|
"An error occured in importSDMX.",
|
||||||
caught);
|
caught.getLocalizedMessage(), caught);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -166,7 +167,6 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
public void setup() {
|
public void setup() {
|
||||||
getWizardWindow().setEnableBackButton(false);
|
getWizardWindow().setEnableBackButton(false);
|
||||||
setBackButtonVisible(false);
|
setBackButtonVisible(false);
|
||||||
setNextButtonVisible(false);
|
|
||||||
getWizardWindow().setEnableNextButton(false);
|
getWizardWindow().setEnableNextButton(false);
|
||||||
getWizardWindow().setNextButtonToFinish();
|
getWizardWindow().setNextButtonToFinish();
|
||||||
importSDMX();
|
importSDMX();
|
||||||
|
@ -223,7 +223,7 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in SDMX Import",
|
showErrorAndHide("Error in SDMX Import",
|
||||||
reason,caught);
|
reason,details, caught);
|
||||||
|
|
||||||
}
|
}
|
||||||
forceLayout();
|
forceLayout();
|
||||||
|
|
Loading…
Reference in New Issue