How to populate custom list data (two levels) using CheckedTreeSelectionDialog [message #1767431] |
Thu, 06 July 2017 04:19 |
Suresh P 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
|
|
|
Powered by
FUDForum. Page generated in 0.02835 seconds