[Work in Progress] Issue #1858 [manifest editor] Show uses of exported packages in a tree. #1981
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following pull request addresses Issue #1858 - [manifest editor] Show uses of exported packages in a tree.
Changes:
Imported the tree viewer and tree content provider needed to start adding the tree to the ExportPackageVisibility.java file since this file along with the ExportPackageSection.java contains the code for displaying the export packages.
Worked on replacing some of the "table" functions with tree functions.
Added code that starts to build the tree for displaying export packages. I had technical difficulties committing this to this branch but will be add it to the code file
**treeViewer = new TreeViewer(parent);
treeViewer.setContentProvider(new TreeContentProvider());
treeViewer.setLabelProvider(new TreeContentLabelProvider());
**I added this code where the main table display is coded in the ExportPackageVisibility.java file. I plan on adding more code to create the overall size of the tree later on. **
Questions:
Is there a specific tree display needed for this issue to show each "child of the package" or "used packages" as mentioned in the issue's description? For instance, creating a tree to display the parent package and a list of the child packages underneath it with checkboxes to see which packages are currently used:
I noticed that there is a file called "TreeSection.java" is it best practice to use this file and its code to help build the tree or is it specifically used for another feature in the Eclipse PDE project?