Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » How to change default height of ListSelectionDialog(How to change default height of ListSelectionDialog)
How to change default height of ListSelectionDialog [message #1759301] Sun, 09 April 2017 23:40 Go to next message
Eclipse UserFriend
Hi

Can you let me know how to change the default height of ListSelectionDialog (org.eclipse.ui.dialogs.ListSelectionDialog).
Not able to find any relevant methods in the JavaDoc for this functionality.

ListSelectionDialog dialog = 
				   new ListSelectionDialog(shell, elements, ArrayContentProvider.getInstance(),
				            new LabelProvider(), "Select from Below");


Thanks

Re: How to change default height of ListSelectionDialog [message #1759825 is a reply to message #1759301] Tue, 18 April 2017 05:14 Go to previous message
Eclipse UserFriend
See the `getInitialSize()` method, inherited from Dialog and Window. Like most dialogs, the ListSelectionDialog tries to calculate an optimal size based on its contents. If you want to set an explicit size, you'll need to subclass and override `getInitialSize()`.
Previous Topic:Creating and starting non e4 model bundle
Next Topic:MCompositePart creation with EPartService.createPart()?
Goto Forum:
  


Current Time: Sun Jul 06 16:38:04 EDT 2025

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

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

Back to the top