- new Label(bodyArea, SWT.NONE).setText("Unreachable state : "
- + getState());
- if (getNode() != null)
- new Label(bodyArea, SWT.NONE).setText("Context : "
- + getNode());
-
- Text errorText = new Text(bodyArea, SWT.MULTI | SWT.H_SCROLL
- | SWT.V_SCROLL);
- errorText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
- true));
- StringWriter sw = new StringWriter();
- exception.printStackTrace(new PrintWriter(sw));
- errorText.setText(sw.toString());
- IOUtils.closeQuietly(sw);
+ // new Label(bodyArea, SWT.NONE).setText("Unreachable state : "
+ // + getState());
+ // if (getNode() != null)
+ // new Label(bodyArea, SWT.NONE).setText("Context : "
+ // + getNode());
+ //
+ // Text errorText = new Text(bodyArea, SWT.MULTI | SWT.H_SCROLL
+ // | SWT.V_SCROLL);
+ // errorText.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
+ // true,
+ // true));
+ // StringWriter sw = new StringWriter();
+ // exception.printStackTrace(new PrintWriter(sw));
+ // errorText.setText(sw.toString());
+ // IOUtils.closeQuietly(sw);
+ SystemNotifications systemNotifications = new SystemNotifications(
+ bodyArea);
+ systemNotifications.notifyException(exception);