apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.64k stars 846 forks source link

Add a "Collapse" in the "folder name" right-click menu #4713

Open fredericch opened 2 years ago

fredericch commented 2 years ago

Description

This function would collapse recursively the tree structure under the selected folder. It would be implemented in the "Projects" and "Files" window views.

Use case/motivation

The issue today is that the only function available is "Collapse All".

Sometimes I need to collapse recursively specific folders but not the parts I am currently working on.

Related issues

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

mbien commented 2 years ago

Not sure if I understand this. You want to close all nodes except those of the files you have currently open?

i usually just use collapse-all and then press ctrl+shift+1/2/3 to open the tree in projects/files/favorites for the active editor tab I am currently interested in.

fredericch commented 2 years ago

image

Currently, if I collapse "common" (using the icon), the expended nodes further in the tree are not collapsed so I have to manually collapse each of them manually.

The feature I was thinking about: if I right-click on "common" and select the function "Collapse" it would recursively collapse the tree structure under "common" including "common".

This would be usefull when the tree structure is "deep" and/or "large".

PS: thank you for your great work! Big fan of NB for years.

mbien commented 2 years ago

I see. Like Collapse All, but Collapse would be just for the selected sub-tree, accessible via context menu of the node.

WhiteHsu commented 1 year ago

I did development with Netbeans and have interest in this issue. May I take this? :-)

mbien commented 1 year ago

@WhiteHsu of course. Simply open a PR or a draft when ready so that a reviewer can take a look.

WhiteHsu commented 1 year ago

Thanks @mbien .

I'm trying to build the project but encounter errors. May I consult your opinions?

What I've done are:

  1. Fork and clone the project to my local on my Windows 10.
  2. Install JDK 19 (The Latest Version)
  3. Download ANT 1.10.12 (Latest Version too)
  4. Then go to the local dir of the home folder netbeans
  5. Run command "ant" with Admin auth.

Then I got the error: package javax.help does not exist [javac] import javax.help.HelpSet

May you kindly suggest what I may miss?

Pls refer to my cmd screens as attached. Thank you very much.

image image image

mbien commented 1 year ago

@WhiteHsu can you move this to a github discussion (or the mailing list)? Its better to talk there instead of using an issue for it.

WhiteHsu commented 1 year ago

Thanks @mbien . Have posted it here: https://github.com/apache/netbeans/discussions/4797

Pls kindly help suggest and feedback. Thank you very much. :-)

cazonda commented 1 year ago

@mbien Can you assign me this issue?

mbien commented 1 year ago

@cazonda sure if you want. But this isn't really required to work on an issue.

cazonda commented 1 year ago

I don't understand, @mbien. Are you saying that there is no work to do on this issue or you're saying that I should work on another one?

mbien commented 1 year ago

@cazonda sorry, what I mean is that you can work on this issue without asking someone to assign it to you. Its good that you mentioned that you want to work on it though - contributions are indeed welcome :)