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 28674 - Remove Project.getBaseDirs
Summary: Remove Project.getBaseDirs
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2002-11-12 09:59 UTC by Vitezslav Stejskal
Modified: 2003-12-11 14:25 UTC (History)
1 user (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-12 09:59:52 UTC
Since the project contents is defined by project's
containers and there is nothing like project base
directories defined the platform projects should
not have getBaseDirs method.

The Platform projects will compute result of
Project.findAll method using containers registered
in the project. There will be defined special MIME
type and ProjectContentDescriptor which
projects-core infrastructure will use for this
computation. The projects-ide infra should define
container of this MIME type and compute its
contents according to the containers of
MIME_PROJECT_SOURCE type registered in the project
by natures.

There might be neccessary to define similar
mechanism as BaseDirs for 'Object Selection
dialogs', this will be discussed.
Comment 1 Vitezslav Stejskal 2002-11-12 17:53:53 UTC
UPGRADE: (it's provisional, right solution will be found soon)

1. for selection objects outside of the project use
RepositoryNodeFactory.getDefault().repository(DataFilter.ALL);

2. for selection objects in the project use new LookNode(project,
null, ProjectUtil.lookSelector());

Comment 2 Vitezslav Stejskal 2002-11-14 10:06:49 UTC
done