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 28742 - Newly created objects are not opened in editor
Summary: Newly created objects are not opened in editor
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-14 10:08 UTC by Milan Kubec
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 Milan Kubec 2002-11-14 10:08:51 UTC
Newly created (java) objects by NFT wizard are not
opened in editor.
Comment 1 Milan Kubec 2002-11-27 12:22:38 UTC
That's because default action for those objects is Build. It should be
Open.
Comment 2 Vitezslav Stejskal 2002-11-27 18:09:12 UTC
Fixed, the Open action is default action again.
Comment 3 Milan Kubec 2002-11-28 16:35:02 UTC
Default action is Open, but file is still not opened in editor after
creation. Reassigning to java.
Comment 4 David Konecny 2002-11-29 12:58:41 UTC
I'm going to look at it.
Comment 5 David Konecny 2002-11-29 16:28:14 UTC
There were several problems and some of them remain. First the
Project.find() was used instead of Project.findAll(). If Source cookie
is not presented the created file is not opened what I think is not
OK. Now the file is always open. The proper implementation of this
issue depends on the issue 28089. My fix caused deadlock in the looks
- Vita just fixed it and commited it into CVS.

The creation of java files outside of project context (started not
from project's node) fails because there is no project. This must be
fixed separately.

Anyway, the problem described in this issue was fixed.

Fixed in:
Checking in
src/org/netbeans/modules/java/ui/wizard/JavaWizardIterator.java
new revision: 1.12.14.3; previous revision: 1.12.14.2
Comment 6 Svata Dedic 2002-11-30 09:54:09 UTC
Can you point me to a place where there was Project.find() ? I can't
seem to find it.
Comment 7 David Konecny 2002-11-30 11:18:07 UTC
Right, that comment should not be there. I was trying to fix the
problem when template is created from non-project context and in
JavaWizardData.setTempalte there is Project.find. But I realized that
fix for this is not that easy and so I reverted all these changes
before commit. Actually I do not remember why Project.find caused me
troubles in setTemplate...
Comment 8 Milan Kubec 2002-12-02 09:51:27 UTC
Verified.