org.eclipse.emf.cdo.ui
Class CDOInteractiveExceptionHandler

java.lang.Object
  extended by org.eclipse.emf.cdo.ui.CDOInteractiveExceptionHandler
All Implemented Interfaces:
CDOSession.ExceptionHandler, IElementProcessor

public class CDOInteractiveExceptionHandler
extends Object
implements CDOSession.ExceptionHandler, IElementProcessor

A CDOSession ExceptionHandler implementation that shows exception information on a UI dialog

Since:
2.0
See Also:
CDOSession.ExceptionHandler

Nested Class Summary
static class CDOInteractiveExceptionHandler.ExceptionDialog
          A dialog that shows CDO related exceptions in a convenient manner.
 
Constructor Summary
CDOInteractiveExceptionHandler()
           
 
Method Summary
protected  Dialog createDialog(CDOSession session, int attempt, Exception exception)
           
protected  Shell getParentShell()
           
 void handleException(CDOSession session, int attempt, Exception exception)
           
 Object process(IManagedContainer container, String productGroup, String factoryType, String description, Object element)
           
protected  Object processSession(IManagedContainer container, String productGroup, String factoryType, String description, InternalCDOSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOInteractiveExceptionHandler

public CDOInteractiveExceptionHandler()
Method Detail

handleException

public void handleException(CDOSession session,
                            int attempt,
                            Exception exception)
                     throws Exception
Specified by:
handleException in interface CDOSession.ExceptionHandler
Throws:
Exception
Since:
4.0

process

public Object process(IManagedContainer container,
                      String productGroup,
                      String factoryType,
                      String description,
                      Object element)
Specified by:
process in interface IElementProcessor

processSession

protected Object processSession(IManagedContainer container,
                                String productGroup,
                                String factoryType,
                                String description,
                                InternalCDOSession session)

getParentShell

protected Shell getParentShell()

createDialog

protected Dialog createDialog(CDOSession session,
                              int attempt,
                              Exception exception)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.