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 42785 - Behavior of NewProject w.r.t. InstantiatingIterator probably wrong
Summary: Behavior of NewProject w.r.t. InstantiatingIterator probably wrong
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: API
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-04 18:19 UTC by Jesse Glick
Modified: 2004-08-13 12:11 UTC (History)
0 users

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 Jesse Glick 2004-05-04 18:19:58 UTC
Cf. also comments in issue #40894.

Currently the action expects the II impl to return
Set<DataObject>. This should be Set<FileObject>
instead. Or perhaps Set<Project>.

Also it would IMHO be good to accept both projects
/ project directories (the project is opened), and
regular files (the file's default action is run,
i.e. open in editor). This would provide a proper
way to open the newly created main class.

Also the behavior of setAsMain is incorrect in
case multiple projects are created. Probably only
the first project in the set should be opened
(let's assume the set is ordered). Or the
setAsMain attribute should be of type FileObject
or Project.
Comment 1 Jiri Rechtacek 2004-05-10 14:07:23 UTC
Log: #42870: new project calls the main class's preferred action (e.g.
open in editor);
also implementators of WD.InstantiatingIterator instantiate set of
FileObject (instead of DataObject)

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