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:Editing in TreeViewer
Next Topic:Enable disable custom import export wizards
Goto Forum:
  


Current Time: Sat Apr 20 03:26:02 GMT 2024

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

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

Back to the top