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 156280

Summary: Files from non-opened projects not opened correctly
Product: ide Reporter: Jan Lahoda <jlahoda>
Component: Features On DemandAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Lahoda 2009-01-05 12:57:45 UTC
[full trunk build from deadlock, #4726, built from changeset ffab019a785c]

1. Start the IDE
2. Using File/Open File... open a .java or .cpp file - it is opened as a plain text, not as a correct type
3. Enable Java a C/C++ plugins - the opened editors are closed
4. After opening the files again, they are recognized correctly

Requiring the user to manually enable some plugin (or open a project of a given type) seems like a very bad user experience.
Comment 1 Jaroslav Tulach 2009-01-05 17:52:16 UTC
True. This functionality is missing. We are tracking it. Just according to UI spec, open file and favorites are 
considered P3 entry point. See:
http://wiki.netbeans.org/FitnessForeverUISpec
Comment 2 Jaroslav Tulach 2009-01-30 15:27:12 UTC
*** Issue 154734 has been marked as a duplicate of this issue. ***
Comment 3 Jaroslav Tulach 2009-01-30 15:30:26 UTC
ergonomics#db50756ab292
Comment 4 Quality Engineering 2009-02-01 07:47:39 UTC
Integrated into 'main-golden', will be available in build *200902010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/db50756ab292
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: Merge of fixes for #156280. All mimetypes are correct in ergonomics IDE. Special data object represents all files with such mimetypes and enables the right functionality on open.