How do I hide Referenced Libraries in Eclipse's Java EE perspective?
Asked Answered
G

5

25

Eclipse's normal Java perspective seems to hide Referenced Libraries just fine (in a "Referenced Libraries" folder in your project). Unfortunately, the Java EE perspective does not seem to have this same feature and enabling it is non-intuitive.

Can anyone shed some light on this issue?

Georgenegeorges answered 15/9, 2009 at 17:14 Comment(0)
M
49

The "Referenced Libraries" view is available in the Java perspective, in the Package Explorer view.

In the Java EE perspective, the Project Explorer view is the default (as opposed to the Package Explorer view). Therefore, if you wish to view the Referenced Libraries, you must open the Package Explorer view in the Java EE perspective.

Note that this view will not remove the user libraries that have been added to the project. The use of Referenced Libraries is primarily for user jars, or jars internal to the project, often placed under the lib directory of the project.

Margetmargette answered 21/9, 2009 at 21:15 Comment(0)
D
18

I am currently on a Mac using:

Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
in the Java EE perspective

To the right of the project explorer tab, there should be a tiny white arrow facing down that opens up a drop down, choose "Customize View..."

It opens a window titled "Available Customizations" with the "Filters" tab in focus.

Check the box for "Libraries from external" and press okay.

Disorient answered 11/1, 2012 at 19:45 Comment(1)
Thanks, this helped me figure out how to display the RAD .settings files in my Java perspective.Decoteau
G
3

Click on menu on upper right of package explorer -> Customize View -> Content tab -> uncheck "Java Elements"

Gradient answered 8/1, 2010 at 21:33 Comment(1)
Works but also removes other things. For example you can not expand java file to see its classes and methods.Solange
T
2

As far as I can tell, the Package Explorer in the Java EE perspective (Eclipse 3.5) works different from the Java Perspective. If you filter 'Libraries from external', it does not remove the classpath container (EAR Libraries, JRE System Library, etc.), but they will be empty. Also, it does not seem to want to present working sets as the top level element. Guess it needs some TLC. :)

Ticktack answered 16/9, 2009 at 7:24 Comment(0)
S
0

I think you are confused by too many lars listed in the view of project. Change “Project Explorer" to "Package Explorer" works for me. Steps: "Window"-> "Show view" ->"Other...", input package then select the option and click OK.

Hope helpful.

Salivation answered 20/7, 2015 at 7:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.