mbien commented on issue #8744:
URL: https://github.com/apache/netbeans/issues/8744#issuecomment-3211905503

   > Is a compact Java template useful inside a project?
   
   not sure if its useful, but it makes no real difference from javac 
perspective. javac wraps it into a synthetic class and calls it a day.
   
   You can put a file into the root package of a maven project and use the 
compact syntax and it will land in the jar and run if needed, single file run 
action should work too by now.
   
   So I think its fine to have the same compact file template for project and 
non-project usage. Compact java files don't like packages which seems to be the 
only restriction which sounds sensible to avoid confusion.
   
   > This would be good, but I think this needs more thought than just a 
template. Have you tried running the IDE with a clean userdir (eg. netbeans 
--userdir /tmp/test1) and working through the whole process of getting to a 
single source Java file, compact or not?
   
   it works pretty well but NB doesn't really tell users what to do. E.g you 
can simply drag a folder with java scripts into NB and it will show up as tab 
and you can work with the files as usual.
   
   Or you create something from the favorites tab. (maybe we should open the 
favorites tab by default on first launch)
   
   There are a few traps though. NB scans eagerly, the compact file launcher 
seems to be lazy, so if you put a file into your home folder (or root folder 
where you store all your projects) and force it to index its game over. (i 
think home folders are now excluded but the problem is still there essentially)


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