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

Summary: Remove Project.getBaseDirs
Product: projects Reporter: Vitezslav Stejskal <vstejskal>
Component: Generic InfrastructureAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED FIXED    
Severity: blocker CC: dkonecny
Priority: P1 Keywords: API
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: TASK Exception Reporter:

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