Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341923 - Improve CheckedTreeSelectionDialog : Add the possibility to choose the style of the TreeViewer
Summary: Improve CheckedTreeSelectionDialog : Add the possibility to choose the style ...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 4.3 M6   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 10:29 EDT by Vincent Lorenzo CLA
Modified: 2013-03-12 10:17 EDT (History)
3 users (show)

See Also:


Attachments
Add the possibility to choose the style of the TreeViewer for CheckedTreeSelectionDialog (2.47 KB, patch)
2011-04-05 10:31 EDT, Vincent Lorenzo CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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