Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » setInitialSelections in ElementListSelectionDialog does not work
setInitialSelections in ElementListSelectionDialog does not work [message #460164] Mon, 22 August 2005 12:44
Michiel van Immerzeel is currently offline Michiel van ImmerzeelFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I am trying to set an initial selection in a ElementListSelectionDialog
with this code:

ElementListSelectionDialog dialog = new
ElementListSelectionDialog(theShell);
dialog.setElements(allElements);
dialog.setInitialSelections(new Object[] {oneOfTheElements});
dialog.open();

The initial selection is however not set.

When I look into the code I see that the elements are evetually set in a
job that is queued. I assume that setting of the elements is not yet done
when the initial selection is set (because this one is not waiten for the
job to finish).

Is this a bug or am I doing someting wrong?
Previous Topic:First ToolItem has raised border in SWT standalone app
Next Topic:Popupcelleditor
Goto Forum:
  


Current Time: Thu Dec 18 19:39:05 GMT 2014

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

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