[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Error Dialogs in CDI Plugin Core
|
>
>
> Hi Listies!
>
> I am trying to write my own CDI Debugger Plugin.
> As used in the GDB MI Debugger, I separated it to
> two plugins, i.e. core and ui.
>
Just to make sure we are on the same page.
cdt.debug.core and cdt.debug.ui are debugger independent
meaning that they rely only on the functionnality provided
by the CDI.
CDI is a pure interface that a debugger engine must
implement.
You do not necessarly need an UI part unless you
want to provide some tweaks etc ..
===============
| cdt.debug.ui |
===============
||
\/
================
| cdt.debug.core |
================
||
\/
============== ==============
| CDI | --+---> | mi.core(GDB) |
============= | ==============
|
| ===============
+---> | Other debugger|
===============
> Inside the core, I throw some own exceptions, which
> I want to catch and notify the user. I tried several
> ways (the SWT MessageBox, the JFace ErrorDialog), but
> any time I tried to call them, the creation of this
> dialog threw an exception, too.
> (Especially PlatformUI.getWorkbench() excepted)
>
> Is there an easy way, to show an error message box
> inside the CDI plugin core implementation? Or should
> I use the plugin ui implementation? (Currently the
> core doesn't know anything about the UI, and I wanted
> to keep it so.)
>
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.