progressDlg.setProgressInfo(AnalyzerLabels.DLG_PLEASE_WAIT);
if (!error.isSuccess()) {
progressDlg.setProgressStyle(ProgressDialog.PROGRESS_STYLE_WARNING);
- progressDlg.setProgressWarningMessage(error.getMessage());
+ String errorMessage = error.getMessage();
+ if (errorMessage.length() > 240) {
+ progressDlg.setWarnigDialogType(ProgressDialog.DIALOG_TYPE_LARGE);
+ } else if (errorMessage.length() > 120) {
+ progressDlg.setWarnigDialogType(ProgressDialog.DIALOG_TYPE_MIDDLE);
+ } else {
+ progressDlg.setWarnigDialogType(ProgressDialog.DIALOG_TYPE_SMALL);
+ }
+ progressDlg.setProgressWarningMessage(errorMessage);
progressDlg.setOkListener(new DACustomButtonClickEventListener() {
@Override
public void handleClickEvent(DACustomButton button) {
TABLE_COLUMN_PARAMETERS=Parameters
TABLE_COLUMN_RETURN=Return
-HEAP_MEMORY_WARNING_PRE=The profiling was stop for out of memory.\nIf you want to use more memory, increase the -xmx value in the\n
+HEAP_MEMORY_WARNING_PRE=If you want to use more memory, increase the -Xmx value in the
HEAP_MEMORY_WARNING_POST=/dynamic-analyzer.ini file.
TIME_MS=ms
ERROR_FAILED_OPERATION=Operation is failed.
ERROR_INTERNAL_REASON=Failed by internal reason.\nPlease try again or restart DA.
ERROR_BY_UNKNOWN_REASON=Failed by unknown reason.
-ERROR_OUT_OF_MEMORY=Out of memory in Dynamic Analyzer.\nIf you want to use more memory, increase the -xmx value\nof the dynamic-analyzer.ini file in Dynamic Analyzer installed directory.\n
+ERROR_OUT_OF_MEMORY=Out of memory in Dynamic Analyzer.
ERROR_START_TRACE_FAILED=Cannot start trace.\nCurrent application may not be available for trace.
ERROR_NONEXIST_BINARY=Binary does not exist in device.
WARNING_RUNNING_PROCESS_LIMIT=Only some limited features (System, Function profiling / sampling) can be worked in Running process tracing.
WARNING_OVERHEAD_EXPLODE=Tracing overhead is too heavy to show the accurate \nresult. Please except some features in Settings to \nreduce overhead.
-WARNING_USER_CANCEL=Operation is canceled by user.
\ No newline at end of file
+WARNING_USER_CANCEL=Operation is canceled by user.