jtulach commented on code in PR #9631:
URL: https://github.com/apache/netbeans/pull/9631#discussion_r4062966049
##########
ide/projectui/src/org/netbeans/modules/project/ui/groups/DirectoryGroupEditPanel.java:
##########
@@ -160,19 +161,9 @@ public void actionPerformed(java.awt.event.ActionEvent
evt) {
}// </editor-fold>//GEN-END:initComponents
private void directoryButtonActionPerformed(java.awt.event.ActionEvent
evt) {//GEN-FIRST:event_directoryButtonActionPerformed
- JFileChooser chooser = new JFileChooser();
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- chooser.setMultiSelectionEnabled(false);
- File start = ProjectChooser.getProjectsFolder();
Review Comment:
This `DirectoryGroupEditPanel` already provides support for the _Open Folder
(as Workspace)_ functionality. It is just this complex:
<img width="234" height="342" alt="Project Groups..."
src="https://github.com/user-attachments/assets/66e4ff62-da53-4380-8dd3-1690a8f3bafa"
/>
Selecting _File / Project Groups..._ menu item opens a dialog
<img width="477" height="301" alt="New group..."
src="https://github.com/user-attachments/assets/ba4a896e-3cc2-42ff-9cf0-e4c592fe52c3"
/>
The _New group..._ button opens another dialog. One needs to choose _Folder
of Projects_ and Browse for it (that opens another dialog):
<img width="940" height="420" alt="Browse for a folder"
src="https://github.com/user-attachments/assets/5a24da77-40b4-4132-a847-4f6d4e2d4b23"
/>
Only then one can click _"Create Group"_ button. Which **scans for all the
projects** in the given folder and opens them in _Projects view_ (after closing
all previous ones).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists