Why works ElementListSelectionDialog only at complete started workbench? [message #489545] |
Sun, 04 October 2009 14:01  |
Eclipse User |
|
|
|
I tried to build a dialog like this
ElementListSelectionDialog dialog = new ElementListSelectionDialog(
shell, new LabelProvider());
dialog.setElements(new String[] { "Heiko", "Peter", "Max" });
dialog.setTitle("Select a person.");
dialog.open();
in the poststartup-method of the WorbenchAdvisor.
But there the dialog shows only an empty list.
If I use these code in a commandhandler it works correct.
Do somebody know why?
Thanks in advance
Heiko
|
|
|
Re: Why works ElementListSelectionDialog only at complete started workbench? [message #491031 is a reply to message #489545] |
Mon, 12 October 2009 19:18  |
Eclipse User |
|
|
|
On Sun, 04 Oct 2009 20:01:21 +0200, Heiko Ahlig wrote:
> I tried to build a dialog like this
>
> ElementListSelectionDialog dialog = new ElementListSelectionDialog(
> shell, new LabelProvider());
> dialog.setElements(new String[] { "Heiko", "Peter",
"Max" });
> dialog.setTitle("Select a person.");
> dialog.open();
>
> in the poststartup-method of the WorbenchAdvisor.
>
> But there the dialog shows only an empty list.
Sounds very weird, I suggest you file a bug.
Remy
|
|
|
Powered by
FUDForum. Page generated in 0.04162 seconds