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.

Bug 42844 - User should be able to open & work with file which is not in the project
Summary: User should be able to open & work with file which is not in the project
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-05 13:25 UTC by pfelenda
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pfelenda 2004-05-05 13:25:49 UTC
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.
Comment 1 Tomas Zezula 2004-05-12 14:13:30 UTC
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?
Comment 2 pfelenda 2004-05-12 15:16:20 UTC
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.




Comment 3 Tomas Zezula 2004-05-12 16:17:27 UTC
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.
Comment 4 Jan Becicka 2004-05-12 16:23:01 UTC
See issue 43041
Comment 5 pfelenda 2004-08-13 10:11:49 UTC
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.