June 20, 2008 jface.dialogs.PopupDialog : Cyclic dependency in module dwtx.jface.dialogs.IDialogConstants | ||||
---|---|---|---|---|
| ||||
code bellow cause run time Exception: object.Exception: Cyclic dependency in module dwtx.jface.dialogs.IDialogConstants tested with dwt-win svn, dwtx svn, dmd 1.028 Code: import dwt.DWT; import dwt.layout.FillLayout; import dwt.widgets.Display; import dwt.widgets.Shell; import dwt.widgets.Listener; import dwt.widgets.Event; import dwt.widgets.Button; import dwtx.jface.dialogs.PopupDialog; import dwt.dwthelper.utils; void handleSelection(Event e, Shell shell) { auto dialog = new PopupDialog(shell, DWT.NONE, true, false,true,false,true,"test title", "test info"); dialog.open(); } void main() { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Button button = new Button(shell, DWT.PUSH); button.setText("&OK"); button.addListener(DWT.Selection, dgListener(&handleSelection, shell)); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } -- yidabu <yidabu.spam@gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/ |
June 20, 2008 Re: jface.dialogs.PopupDialog : Cyclic dependency in module dwtx.jface.dialogs.IDialogConstants | ||||
---|---|---|---|---|
| ||||
Posted in reply to yidabu | yidabu schrieb:
> code bellow cause run time Exception:
> object.Exception: Cyclic dependency in module dwtx.jface.dialogs.IDialogConstants
>
> tested with dwt-win svn, dwtx svn, dmd 1.028
>
> Code:
>
> import dwt.DWT;
> import dwt.layout.FillLayout;
> import dwt.widgets.Display;
> import dwt.widgets.Shell;
> import dwt.widgets.Listener;
> import dwt.widgets.Event;
> import dwt.widgets.Button;
>
> import dwtx.jface.dialogs.PopupDialog;
> import dwt.dwthelper.utils;
>
>
> void handleSelection(Event e, Shell shell)
> {
> auto dialog = new PopupDialog(shell, DWT.NONE, true, false,true,false,true,"test title", "test info");
> dialog.open();
> }
>
> void main() {
> final Display display = new Display();
> final Shell shell = new Shell(display);
> shell.setLayout(new FillLayout());
> Button button = new Button(shell, DWT.PUSH);
> button.setText("&OK");
> button.addListener(DWT.Selection, dgListener(&handleSelection, shell));
> shell.pack();
> shell.open();
> while (!shell.isDisposed()) {
> if (!display.readAndDispatch()) display.sleep();
> }
> display.dispose();
> }
>
>
>
>
Thanks for the report.
Is fixed now.
|
Copyright © 1999-2021 by the D Language Foundation