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
Hi,

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.

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


Sample Code
Quote:

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

checkedtreeDialog.setMessage("CheckedTreeSelectionDialog Message");
checkedtreeDialog.open();




Regards
Suresh

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

Report message to a moderator

Previous Topic:How to add custom tooltip to ColumnLabelProvider?
Next Topic:How to make TextHover sticky?
Goto Forum:
  


Current Time: Tue Sep 25 18:34:16 GMT 2018

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

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

Back to the top