Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Why works ElementListSelectionDialog only at complete started workbench?
Why works ElementListSelectionDialog only at complete started workbench? [message #489545] Sun, 04 October 2009 14:01 Go to next message
Heiko Ahlig is currently offline Heiko Ahlig
Messages: 62
Registered: July 2009
Member
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 Go to previous message
Remy Suen is currently offline Remy Suen
Messages: 462
Registered: July 2009
Senior Member
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
Previous Topic:Classes visibility between different plug-in projects
Next Topic:SWT Popup from Workbench menu bar
Goto Forum:
  


Current Time: Thu Aug 28 23:42:55 EDT 2014

Powered by FUDForum. Page generated in 0.01820 seconds