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 24802 - Handle adding or removing items from classpath
Summary: Handle adding or removing items from classpath
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on: 24790
Blocks:
  Show dependency tree
 
Reported: 2002-06-14 18:16 UTC by Pavel Flaska
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 Pavel Flaska 2002-06-14 18:16:40 UTC
This is a large-scale change and can be probably
speeded up somehow. It will probably include
association relinking in the Logical metamodel.
Comment 1 Pavel Flaska 2002-07-29 10:56:10 UTC
User adds classpath element:
- use ClassPath API to obtain classpath components,
- find if there is existing Codebase for classpath components:
  Found: put codebase to the classpath, run updator (issue #24805),
  not found: create codebase and start filling model (issue #20349).
- relink associations in logical model.

User removes classpath element:
- remove classpath component,
- relink associations in logical model,
- if codebase is not used in any project, put it to the pool for
removing (below)

Codebases which are not used in any project:
There should be a pool of unused codebases. We should provide an
algorithm for removing "unused" items. These items have to be put to
the pool first. The algorithm will decide, which items will be deleted
permanently. The main reason for this solution is to prevent to
permanently remove items, which are temporarily (for a short time)
removed from the project classpath and then they are again added.

The described solution can operate:
1. with project metamodel (if such a metamodel will be created, see
issue #20346),
or
2. directly with classpath API.
Comment 2 Pavel Flaska 2002-07-29 11:00:08 UTC
Correction - project metadata - issue #24799
Comment 3 Martin Matula 2002-10-13 00:52:44 UTC
Implementation of Java metamodel is now able to 
mount/unmount storage partitions when new filesystem 
(classpath item) is added/removed.