Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341923

Summary: Improve CheckedTreeSelectionDialog : Add the possibility to choose the style of the TreeViewer
Product: [Eclipse Project] Platform Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: UIAssignee: Paul Webster <pwebster>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.felipe, prakash, remy.suen
Version: 3.7   
Target Milestone: 4.3 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Add the possibility to choose the style of the TreeViewer for CheckedTreeSelectionDialog none

Description Vincent Lorenzo CLA 2011-04-05 10:29:01 EDT
Currently, when we use the dialog CheckedTreeSelectionDialog, we can' t specify the style of the TreeViewer. 
The TreeViewer have always the style SWT.BORDER. In my case, I need to change this style ( SWT.BORDER | SWT.FULL_SELECTION).

At the beginning, I wanted to override the method createTreeViewer, but it's not possible, because some field are not accessible because they are in private. I propose to you to add a new constructor, with a new parameter int style. This style will be used to instantiate the TreeViewer.
Comment 1 Vincent Lorenzo CLA 2011-04-05 10:31:27 EDT
Created attachment 192563 [details]
Add the possibility to choose the style of the TreeViewer for CheckedTreeSelectionDialog

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 2 Paul Webster CLA 2013-02-11 16:05:52 EST
Released with minor mods: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=27a987a40ef6dca83ede1e757fd579b4fc0091b8

Thanks Vincent.

PW
Comment 3 Paul Webster CLA 2013-03-12 10:17:33 EDT
I've confirmed it on my end in 4.3.0.I20130311-2000.

Vincent, you should check it's usable in a build as well.

PW