Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369847

Summary: "Add Jars.." classpath action now lets you add anything you want
Product: [Eclipse Project] Platform Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: robert.roth.off
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
screen shot none

Description Michael Rennie CLA 2012-01-26 13:16:26 EST
Created attachment 210140 [details]
screen shot

Version: 4.2.0
Build id: I20120125-2200

Steps:
1. new Java Application launch config
2. Classpath Tab -> select the "User Entries" node -> press "Add Jars..." button.
3. browse through your workspace in the resulting dialog and notice you can pick any resource you want
4. pick a random resource and hit OK
5. notice it gets added to your class path with a jar icon

This problem was apparently fixed back in bug 38115.

The attached screenshot shows me being able to add some JavaScript files as jars to my launch config
Comment 1 Michael Rennie CLA 2012-01-26 13:27:52 EST
Looks like the action was "enhanced" with the fix for bug 228673
Comment 2 Robert Roth CLA 2015-03-21 03:39:09 EDT
It might seem like that's a regression, but in fact an initialFilter of *.jar, *.zip should be set [1], but that doesn't happen in time, when simply running, however, when trying to debug the issue, and putting a breakpoint somewhere before and stepping through the code, when the dialog pops up, the initial filter is set.

So the idea to allow files with other extensions than zip and jar could work, if by default only these would show, but the user could also select other files by changing the filter text.

[1] http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/tree/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java#n428
Comment 3 Eclipse Genie CLA 2020-08-03 15:00:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.