Fixed Error Management
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@101901 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
761819bfb1
commit
196cb475ef
|
@ -20,6 +20,7 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
|
|||
import com.sencha.gxt.core.client.util.Margins;
|
||||
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.MarginData;
|
||||
import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer.VBoxLayoutAlign;
|
||||
|
||||
|
@ -52,7 +53,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
|||
operationInProgressPanel.add(resultField, new BoxLayoutData(
|
||||
new Margins(10, 5, 10, 5)));
|
||||
|
||||
setContent(operationInProgressPanel);
|
||||
setCenterWidget(operationInProgressPanel, new MarginData(0));
|
||||
resultField.setVisible(false);
|
||||
|
||||
}
|
||||
|
@ -74,9 +75,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
|||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
showErrorAndHide("Error in extract codelist",
|
||||
"An error occured in extract codelist: "
|
||||
+ caught.getLocalizedMessage(),
|
||||
caught);
|
||||
"An error occured in extract codelist.",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -86,7 +86,6 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
|||
public void setup() {
|
||||
getWizardWindow().setEnableBackButton(false);
|
||||
setBackButtonVisible(false);
|
||||
setNextButtonVisible(false);
|
||||
getWizardWindow().setEnableNextButton(false);
|
||||
getWizardWindow().setNextButtonToFinish();
|
||||
extractCodelist();
|
||||
|
@ -143,7 +142,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
|||
new SessionExpiredEvent(
|
||||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
showErrorAndHide("Error in Extract Codelist", reason, caught);
|
||||
showErrorAndHide("Error in Extract Codelist", reason, details, caught);
|
||||
|
||||
}
|
||||
forceLayout();
|
||||
|
|
|
@ -435,12 +435,12 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
|||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
parent.showErrorAndHide("Error Locked",
|
||||
caught.getLocalizedMessage(), caught);
|
||||
caught.getLocalizedMessage(), "", caught);
|
||||
} else {
|
||||
Log.debug("Error retrieving columns: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error retrieving columns",
|
||||
"Error retrieving columns on server!");
|
||||
parent.showErrorAndHide("Error retrieving columns",
|
||||
"Error retrieving columns on server.",caught.getLocalizedMessage(), caught);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue