Automatically Expand Paths of single children: eclipse.platform#1063 #1277
+8
−0
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.
Enable expanding paths of single children in one click
In some cases cases, I expect all folders to open recursively when clicking on com.wittmaxi.plugin
com.wittmaxi.plugin
└─src
└─org.foo.com
└─Bar.java
A new feature in SWT allows for this feature, this PR enables that feature in the Package Explorer.
Implements
eclipse-platform/eclipse.platform.ui#1063
An analogous PR for the Project-Explorer was merged in platform/ui.
What it does
In the project explorer and similar treeviews, when expanding a folder that contains a singular folder, I expect that folder to recursively expand as well.
Examples
In these cases, I expect all folders to open recursively
In IntelliJ
(click on
src
)A few things are yet to be discussed (help wanted!):
For reference, this is how other tools handle this case:
A similar PR was created in eclipse.platform for the "project explorer": eclipse-platform/eclipse.platform.ui#1742
How to test
Create a path of folders that contains only singular children.
Close the entire path and then open the path.
With this change, the entire path will be opened at once instead of having to click open each node individually.
Author checklist