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.
Summary: | New File wizard, not iterator impl, should open created files | ||
---|---|---|---|
Product: | projects | Reporter: | Jesse Glick <jglick> |
Component: | Generic Infrastructure | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jrechtacek, phrebejk |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41535 | ||
Attachments: | only draft, not final |
Description
Jesse Glick
2004-05-05 19:50:39 UTC
Created attachment 14774 [details]
only draft, not final
In NewProject.java: + // open main class in editor + FileObject mainFO = getMainClassFO (getSourcesRoot (p), "com.myapp.Test"); is presumably there by accident. Delete it and the gMCFO method - the wizard impl should return the main class if it made one. Delete the getSourcesRoot method too. Very confusing to name the FileObject prjDirFO but then actually handle the case that it is not a project dir (or a dir at all). Give the var a more neutral name. Please run DataObject.getNodeDelegate in EQ. NewJ2SEPWI.java: mainClass = mainClass.replace ('.', File.separatorChar); is wrong; use '/' (passed to FO.gFO). Also I am not sure you can use a /-separared path in the two-arg version of getFileObject; construct the full path (+ ".java") just to be sure. fixed Checking in java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/NewJ2SEProjectWizardIterator.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/NewJ2SEProjectWizardIterator.java,v <-- NewJ2SEProjectWizardIterator.java new revision: 1.6; previous revision: 1.5 done Processing log script arguments... More commits to come... Checking in java/project/src/org/netbeans/modules/java/project/NewJavaFileWizardIterator.java; /cvs/java/project/src/org/netbeans/modules/java/project/NewJavaFileWizardIterator.java,v <-- NewJavaFileWizardIterator.java new revision: 1.7; previous revision: 1.6 done Processing log script arguments... More commits to come... Checking in projects/projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java,v <-- NewFileWizard.java new revision: 1.8; previous revision: 1.7 done RCS file: /cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewProjectWizard.java,v done Checking in projects/projectui/src/org/netbeans/modules/project/ui/NewProjectWizard.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewProjectWizard.java,v <-- NewProjectWizard.java initial revision: 1.1 done Processing log script arguments... More commits to come... Checking in projects/projectui/src/org/netbeans/modules/project/ui/actions/NewFile.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/NewFile.java,v <-- NewFile.java new revision: 1.5; previous revision: 1.4 done Checking in projects/projectui/src/org/netbeans/modules/project/ui/actions/NewProject.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/NewProject.java,v <-- NewProject.java new revision: 1.4; previous revision: 1.3 done This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance. |