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.
There is openfile module which provide the File | Open File ... action for Netbeans platform. Behavior of this action should be customized for project needs. Briefly, we need to ask user if the file which isn't part of any open project should be added before it is open. Otherwise editing capabilities will be limited for such file. See uispec and email discussions for details: http://projects.netbeans.org/uispecs/infrastructure/working/WorkingInfrastructure.html (section 5.5 Process: Opening Files) http://projects.netbeans.org/servlets/ReadMsg?msgId=399553&listName=dev Proposed solution is to create an eager module OpenFile-Projects which will be bridge between openfile and projects and will register somewhere the projects specific implementation of Open File dialog.
At <http://utilities.netbeans.org/plans/proposal/projects_uispec.html#4> (second ascii-dialog) you can see first step of required functionality. Next step will similar to Add Source action (Projects Infra UIspec [5.1.1; step #3]). [Here I do not need to select source (because I start with source), I need to select project to be added to.] -- OpenFile module will need an API so I would like to suggest something like: ProjectMember ProjectManager.add[Source] (DataObject) that opens described dialog.
Adding API keyword. Projects infra has to define way how modules will invoke add-to-project functionality. This should be allowed for: a. specific Project and FileObject b. FileObject only providing user with project selector panel
Done. add a) IdeProject.addToProjectWizard method add b) IdeProject.addWizard method
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED