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 28395 - Implement open-file functionality
Summary: Implement open-file functionality
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: API
Depends on:
Blocks: 27164
  Show dependency tree
 
Reported: 2002-11-01 12:47 UTC by Vitezslav Stejskal
Modified: 2003-12-11 14:25 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitezslav Stejskal 2002-11-01 12:47:25 UTC
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.
Comment 1 _ lkramolis 2002-11-04 09:20:27 UTC
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.
Comment 2 Vitezslav Stejskal 2002-11-04 17:42:26 UTC
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

Comment 3 Vitezslav Stejskal 2002-11-26 00:41:52 UTC
Done.

add a) IdeProject.addToProjectWizard method
add b) IdeProject.addWizard method

Comment 4 Jan Becicka 2003-11-25 14:00:11 UTC
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 --->
Comment 5 Jan Becicka 2003-11-25 14:09:00 UTC
---> CLOSED