Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8506751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:40:41+00:00 2026-06-11T02:40:41+00:00

When you activate Java members for the package explorer in eclipse, the tree hierarchy

  • 0

When you activate Java members for the package explorer in eclipse, the tree hierarchy goes source folder > package > java file > type > methods. Together with Mylyn that is actually quite handy. However, I feel that the Java file node is superfluous. Since every file contains exactly one “root” type, there will always be exactly one type node under the file node showing the same name. That just takes space away and doesn’t add any info. It would make much more sense to have only the Java language elements in this tree: package > type > members.
When you disable members it makes sense to replace type nodes with file nodes to avoid having to load the additional information from the file. But when members are enabled it doesn’t.

Is there some option which makes the package explorer skip the file nodes, or am I missing some rationale here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:40:43+00:00Added an answer on June 11, 2026 at 2:40 am

    @Wolfgang, I agree with your rationale. For vast majority of cases, there is a 1-to-1 mapping between a .java file and its contained type. While it is possible to have multiple top-level types in one .java file, this practice is not common, especially after advent of inner types. Arguably, even if you are using multiple top-level types feature, explicit relationship to the .java file is not that important. If you delete all types in a file, the file can go away.

    Unfortunately, there is no option to suppress .java file nodes. I suspect that this is mostly for historic inertia reasons. The various navigational views started as basic file navigators way back when.

    I would suggest opening enhancement request for Eclipse Java Developer Tools.

    https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You can create various Java code templates in Eclipse via Window > Preferences >
I have written the following code with permissions included in the manifest file. package
What tool would you recommend to detect Java package cyclic dependencies , knowing that
In Eclipse 3.4.1 using JDK1.6.0_10 how can I activate a warning on a missing
Using Android (Eclipse) I am trying to read a .csv file and dynamically populate
I use Eclipse for java development: Eclipse Java EE IDE for Web Developers. Version:
Can you externally activate a non-.NET app like Java or Python as easily you
In a Java file, I have the following code: MyTree atree = new MyTree();
I have a java method activated by a mouse click on a button private
how can i activate the readonly back after finishing the edit of the input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.