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.core.client.util.Margins;
|
||||||
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;
|
||||||
|
|
||||||
|
@ -52,7 +53,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -74,9 +75,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in extract codelist",
|
showErrorAndHide("Error in extract codelist",
|
||||||
"An error occured in extract codelist: "
|
"An error occured in extract codelist.",
|
||||||
+ caught.getLocalizedMessage(),
|
caught.getLocalizedMessage(), caught);
|
||||||
caught);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -86,7 +86,6 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
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();
|
||||||
extractCodelist();
|
extractCodelist();
|
||||||
|
@ -143,7 +142,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
new SessionExpiredEvent(
|
new SessionExpiredEvent(
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in Extract Codelist", reason, caught);
|
showErrorAndHide("Error in Extract Codelist", reason, details, caught);
|
||||||
|
|
||||||
}
|
}
|
||||||
forceLayout();
|
forceLayout();
|
||||||
|
|
|
@ -435,12 +435,12 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
parent.showErrorAndHide("Error Locked",
|
parent.showErrorAndHide("Error Locked",
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), "", caught);
|
||||||
} else {
|
} else {
|
||||||
Log.debug("Error retrieving columns: "
|
Log.debug("Error retrieving columns: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error retrieving columns",
|
parent.showErrorAndHide("Error retrieving columns",
|
||||||
"Error retrieving columns on server!");
|
"Error retrieving columns on server.",caught.getLocalizedMessage(), caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue