Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319650 - classpath tagging and issues with new container reference system
Summary: classpath tagging and issues with new container reference system
Status: CLOSED DUPLICATE of bug 318068
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 3.2.2   Edit
Assignee: Chuck Bridgham CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 20:41 EDT by Konstantin Komissarchik CLA
Modified: 2010-08-20 17:06 EDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2010-07-12 20:41:46 EDT
As part of the work on the Deployment Assembly page in Helios that replaced the Java EE Module Dependencies, the existing classpath entry tagging system was made practically inaccessible. In its place, a new system for referencing classpath containers via the .component file was introduced.

This change has created a number of usability and architectural problems:

1. (Architectural) Third-party classpath containers are written to be used directly by JDT. Unlike other types of classpath entries, containers are frequently dynamic and are written to refresh on certain events as defined by the container's provider. The way a container is updated is by using IJavaProject API to tell JDT to refresh the container. By taking JDT out of the loop and evaluating containers internally, this changes seriously breaks a number of third party classpath containers.

2. (Usability) As containers are evaluated internally, they are surfaced to the user via a single entry in Project Explorer. This flattened arrangement is a considerable usability impact in many situation. Consider the case where a user has 5 user libraries with 2-3 jars in each. With normal way of referencing these libraries, the user would see 5 separate nodes in the Project Explorer. These nodes would be labeled with names given to user libraries by the user. With the new approach, all the jars are flattened into one list and the descriptive names of classpath containers are innaccessible.

3. (Usability) The existing classpath tagging facility was made more difficult to access. It used to be possible to apply/remove tag via Java EE Dependencies page. The replacement Deployment Assembly page provides no equivalent facility. 

The architectural issue outlined above makes this of critical severity. A number of third-party classpath containers will not work properly using the new reference system, that is now prominently positioned for users to encounter.

I would recommend de-emphasizing the new "Classpath Container" type of .component reference introduced in Helios and replacing it with proper access to classpath entry tags in the Deployment Assembly page.

I would further recommend (lower severity) that other classpath-type .component references be similarly de-emphasized in favor of classpath tags. There is much danger of bugs in trying to take over this function from JDT. Especially in bugs related to not picking up on updates. JDT already handles all of this. It would be great if WTP would just let it do its thing.
Comment 1 Konstantin Komissarchik CLA 2010-07-12 20:42:27 EDT
This is a critical adopter issue. We'd like to see this addressed in Helios SR1.
Comment 2 Carl Anderson CLA 2010-07-13 10:28:42 EDT
Assigning to Chuck for initial investigation.
Comment 3 Chuck Bridgham CLA 2010-08-12 10:44:42 EDT
Opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=322542 for issue 2
Comment 4 Konstantin Komissarchik CLA 2010-08-20 17:06:36 EDT

*** This bug has been marked as a duplicate of bug 318068 ***