Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to populate custom list data (two levels) using CheckedTreeSelectionDialog(How to populate custom list data (two levels) using CheckedTreeSelectionDialog)
How to populate custom list data (two levels) using CheckedTreeSelectionDialog [message #1767431] Thu, 06 July 2017 04:19
Suresh P is currently offline Suresh PFriend
Messages: 27
Registered: May 2013
Junior Member

Im using Eclipse Mars for a custom plugin development.

My requirement to use to display a Dialog with Checkbox feature in multiple levels.

CheckedTreeSelectionDialog looks appropriate dialog for my requirement.

Can you let me know how to populate the below input data (json data) in this Dialog.
What information should be passed in setInput() method? Can you share the code snippet to create this dialog with this data?
I have attached sample image of the Tree structure, I'm interested in.

"catchesList": [{
"exception": "SQLException" }, {
"exception": "HibernateException" }],
"throwsList": [{
"exception": "DataAccessException"}, {
"exception": "ServiceException"}]

Sample Code

CheckedTreeSelectionDialog checkedtreeDialog =
new CheckedTreeSelectionDialog(shell,new LabelProvider(), provider);
checkedtreeDialog.setTitle("CheckedTreeSelectionDialog Title");

checkedtreeDialog.setMessage("CheckedTreeSelectionDialog Message");;


[Updated on: Thu, 06 July 2017 05:16]

Report message to a moderator

Previous Topic:How to add custom tooltip to ColumnLabelProvider?
Next Topic:Enable disable custom import export wizards
Goto Forum:

Current Time: Sat Sep 26 05:32:48 GMT 2020

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

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

Back to the top