lahodaj commented on PR #9650:
URL: https://github.com/apache/netbeans/pull/9650#issuecomment-5936102979

   (Whatever we do in this area, @eppleton is right we need a more proper check 
in the source file launcher check; that can be done separately.)
   
   I assume the end goal here is to achieve the "Open Folder"/"Add to 
Workspace" actions, as mentioned in the recent e-mail. I do wholeheartedly 
agree with adding (some) support for "workspaces" (i.e. ability to work without 
projects, or without specifying projects one-by-one).
   
   What I am not quite sure if whether starting with an API change is the best 
move. Whether mapping this to project groups matches the requirements also 
remains to be seen.
   
   I think I would first try to implement the actions, and from that it would 
lead what API changes are needed (I suspect some will be needed). #9631 
implemented the Open Folder as Workspace action, but not the Add to Workspace 
action; and also the resulting UI is I think not ideal: when I do "Open Folder 
as Workspace", would I really expect to see all the nested projects in the 
Projects tab? (I realize this is a consequence of reusing the Project Groups 
directly, but a novice user is likely to be confused by this, I think.) OTOH, I 
do agree it would be good to open the projects under the workspace folder.
   
   I guess if I would be doing this, I would:
   - try to make the feature end-to-end first. It does not have to be merged as 
a single PR, but ensuring the end result is as good as possible before 
adjusting APIs would be nice
   - if there were explicit actions to open a folder as a workspace/add folder 
to a workspace, we wouldn't probably need the fallback API - the "workspace 
folder project" could be created by an ordinary project factory, if needed; 
(the action would mark the directory as "needs workspace project, if there's no 
better" in the userdir, or something alike)
   - some part of the system would, when a project matching the workspace 
folder directory opens, scan the given folder and open all nested projects
   - there could be a UI tweak to not show these projects, unless explicitly 
open by the user; this is probably the trickiest part to implement, and would 
probably need an API
   


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

Reply via email to