This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Users working on projects want to open java examples which doesn't belong to a project. The feature open file (Main menu Open>Open File) must open java files and user must be able to work with this file. (compilation, execution, code completion, code folding etc.) This file should be opened in a new sample project.
This seems to me as a nonsense. The open allows user to open single file for simple operations (copy, paste). Only the basic features work. If the user wants to work with the file in serious manner, he should create new project containing this file (either the j2se app from existing src or freeform). Automatically surrounding the file by some artifical project is not a solution. Which project type should be used? What is the classpath?
I don't now how, but the previous releases support open file (open from menu "File|Open File..."), edit it, compile it and run it. I needn't open a new project for this file, I can have it opened in opened project. There must be any solution. I hope that IDE is for developing and not for static viewing of files.
The previous version of IDE didn't have project system at all, so it is quite obvious that you was not forced to create a new project. The NB3.x project is rather session. This is quite serious difference. Again: It the developer needs a file for serious working he has to create a project containg it. Quite simple rule. Sure IDE is for developing, however the developer mostly know what he wants to do. BTW: If you open single file you can edit it but you don't have a full language support.
See issue 43041
Ok, I used the old projects too much time and the new one are better. Verified it is invalid. ..... Some comments: The old IDE recognize if the file si mounted, the mime type, mount the file to adequate package structure (java file), and set the CP so it was possible to run the file. The new IDE & Projects should create a default project with default name and add source file in the same way like "Java Project with Existing Sources" (automatically). I know that this is not comparable, but: If you compare ooffice and netbeans. If I want to open word document or excel table, the ooffice does not open it in simple text mode, but in full word editor or table editor mode. I don't need open the word mode or table mode to edit the file.