Package com.googlecode.richrest.client.event

Examples of com.googlecode.richrest.client.event.ExceptionAdapter


        Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stringSelection, stringSelection);
        JOptionPane.showMessageDialog(ExceptionDialog.this, "已复制异常信息到您的粘贴板上!", "复制", JOptionPane.INFORMATION_MESSAGE);
      }
    });

    exceptionListener = new ExceptionAdapter() { // 只在非UI线程执行
      public void onBackCatched(ExceptionEvent event) {}
      public void onForeCatched(ExceptionEvent event) {
        if (UIUtils.isNonUIThread(event.getThread())) {
          exceptionLabel.setText(event.getException().getMessage());
          detailText.setText("[" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date()) + "]\n" + ExceptionUtils.getDetailMessage(event.getException()));
View Full Code Here


    });
    exceptionTextArea = new Text(this, SWT.BORDER|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL|SWT.WRAP);
    exceptionTextArea.setBounds(0, 40, 484, 400);
    exceptionTextArea.setEditable(false);
    exceptionTextArea.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
    exceptionListener = new ExceptionAdapter() {
      public void onBackCatched(final ExceptionEvent event) {
        final String msg = ExceptionUtils.getDetailMessage(event.getException());
        Display.getDefault().asyncExec(new Runnable(){
          public void run() {
            ExceptionPane.this.appendText(msg);
View Full Code Here

      }
    });

    toolBar.add(autoScrollCheckBox);

    exceptionListener = new ExceptionDelegate(new ExceptionAdapter() {
      public void onBackCatched(ExceptionEvent event) {
        ExceptionPane.this.appendText(ExceptionUtils.getDetailMessage(event.getException()));
      }
      public void onForeCatched(ExceptionEvent event) {
        ExceptionPane.this.appendText(ExceptionUtils.getDetailMessage(event.getException()));
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        shell.setVisible(false);
      }
    });

    exceptionListener = new ExceptionAdapter() { // 只在非UI线程执行
      public void onBackCatched(ExceptionEvent event) {}
      public void onForeCatched(ExceptionEvent event) {
        if (UIUtils.isNonUIThread(event.getThread())) {
          showException(event.getException());
        }
View Full Code Here

TOP

Related Classes of com.googlecode.richrest.client.event.ExceptionAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.