netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

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

Open fredericch opened this issue 3 years ago • 3 comments

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

fredericch avatar Oct 01 '22 18:10 fredericch

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.

mbien avatar Oct 02 '22 04:10 mbien

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.

fredericch avatar Oct 02 '22 16:10 fredericch

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

mbien avatar Oct 03 '22 02:10 mbien

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

WhiteHsu avatar Oct 15 '22 16:10 WhiteHsu

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

mbien avatar Oct 15 '22 16:10 mbien

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

WhiteHsu avatar Oct 15 '22 17:10 WhiteHsu

@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.

mbien avatar Oct 15 '22 17:10 mbien

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

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

WhiteHsu avatar Oct 16 '22 12:10 WhiteHsu

@mbien Can you assign me this issue?

cazonda avatar Nov 08 '22 16:11 cazonda

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

mbien avatar Nov 08 '22 16:11 mbien

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?

cazonda avatar Nov 08 '22 16:11 cazonda

@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 :)

mbien avatar Nov 08 '22 16:11 mbien