jtulach commented on code in PR #9631: URL: https://github.com/apache/netbeans/pull/9631#discussion_r4184534272
########## ide/projectui/src/org/netbeans/modules/project/ui/groups/OpenFolderAsGroupAction.java: ########## @@ -0,0 +1,69 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.netbeans.modules.project.ui.groups; + +import java.awt.HeadlessException; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.io.File; +import javax.swing.JFileChooser; +import org.netbeans.spi.project.ui.support.ProjectChooser; +import org.openide.awt.ActionID; +import org.openide.awt.ActionReference; +import org.openide.awt.ActionRegistration; +import org.openide.filesystems.FileObject; +import org.openide.filesystems.FileUtil; +import org.openide.util.NbBundle.Messages; + +@ActionID( + category = "Project", + id = "org.netbeans.modules.project.ui.groups.OpenFolderAsGroupAction" +) +@ActionRegistration( + displayName = "#CTL_OpenFolderAsGroupAction", + lazy = true, asynchronous = true +) +@ActionReference(path = "Menu/File", position = 1200, separatorAfter = 1250) Review Comment: > * having the projects open as reported by `OpenProjects`, but not show them in the Projects view - OK, that would indeed solve the problem of [find usages & go to](https://github.com/apache/netbeans/pull/9631#issuecomment-5773752563) - however it wouldn't solve performance problems reported by Matthias ... > raised by @matthiasblaesing few times (for example [here](https://github.com/apache/netbeans/pull/9592#issuecomment-5536301353)) and also in his [email](https://lists.apache.org/thread.html/rvhxgctxptmm963mw169szpco0lrfqjn) - ... because the **performance problem isn't showing** all the projects - but having good enough (Java parsing) **infrastructure to handle all** the projects > the UI tweak I had in mind - I was surprised when you mentioned _a tweak_ to be the solution - now I know why: it is not solution to the performance problem that occupies my mind - I am afraid the solution will be bigger than just a tweak - for example the [one suggested by AI](https://lists.apache.org/thread.html/y0jtlmths4pcj6lh0y5ckv75dy2994ys) - or by [Alois Drahoslav DrchlĂk](https://lists.apache.org/thread.html/scbr8npqddqxojdxpkm62bvrrzwp2nh7) - I still have no idea how to [not open them all while make them all available](https://www.youtube.com/watch?v=47kWqCq0L7Y) in _find usages & go to_? -- 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
