[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Error Dialogs in CDI Plugin Core
|
----- Original Message -----
From: <Rudi.Dienstbeck@xxxxxxxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Thursday, July 17, 2003 3:29 AM
Subject: Re: [cdt-debug-dev] Error Dialogs in CDI Plugin Core
>
> Hi!
>
> see below...
>
> >CDI is a pure interface that a debugger engine must
> >implement.
>
> That's what I am doing...
>
> >You do not necessarly need an UI part unless you
> >want to provide some tweaks etc ..
>
> Yes, I want to add my own options.
> (My debugger isn't a GDB debugger.)
>
> > ===============
> >| cdt.debug.ui |
> > ===============
> > ||
> > \/
> > ================
> >| cdt.debug.core |
> > ================
> > ||
> > \/
> > ============== ==============
> >| CDI | --+---> | mi.core(GDB) |
> > ============= | ==============
> > |
> > | ===============
> > +---> | Other debugger|
> > ===============
>
> "Other debugger" is exactly, what I am trying to implement.
>
> >So keeping the ascii art above in mind, not sure why you
> >would need SWT Messagbox, JFace etc ... since the policy
> >making is done by the higher levels cdt.core and cdt.ui.
>
> When launching the debugger, some errors may occur. I am
> throwing exceptions with descriptions, but the Eclipse
> UI only shows "An exception occurred while launching debugger".
> This is not very informative to the user, so I'd like to give
> an additional statement, telling him what happened exactly.
The 'createLaunchSession' and 'createAttachSession' methods of the
'ICDebugger' interface throw CDIException. The message of this exception is
used to construct the message that will appear in the error dialog as a
reason of the failure.
>
> Mikhail suggested, to catch the exception in the UI plugin.
> Is this possible? Can I throw an exception in the core, and
> catch it in ui?
The UI of the CDT debugger is based on CDI and it doesn't support the
handling of the 'user-defined' exceptions. If you want to extend CDI API and
add new UI features to your debugger than you can add your own exceptions.
>
> Thanks for your help,
>
> Rudi
>
>
>
Mikhail
> ------------------------------------------------
> Rudolf Dienstbeck, Third Party Tool Integrations
> Lauterbach Datentechnik GmbH
> Email: Rudolf.Dienstbeck@xxxxxxxxxxxxxx
>
>
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
>