Skip to main content


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 18:01 Go to next message
Heiko Ahlig is currently offline Heiko AhligFriend
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 23:18 Go to previous message
Remy Suen is currently offline Remy SuenFriend
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: Fri Apr 19 12:30:42 GMT 2024

Powered by FUDForum. Page generated in 0.01999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top