devoured elysium
devoured elysium

Reputation: 105217

Package explorer not showing...packages, in Eclipse. How to fix it?

By some reason, it seems my Package Explorer is showing the folder structure of my project instead of its package structure. How would I go about "fixing" this? I've tried playing with the filters but it seemed of no avail.

Thanks!

Upvotes: 19

Views: 73841

Answers (14)

Kayky Carvalho
Kayky Carvalho

Reputation: 1

File > Open projects from file system > directory

image1

image2

Upvotes: 0

Ishmael Mavor Raines
Ishmael Mavor Raines

Reputation: 330

Similar problem in Eclipse Spring Tools IDE. This is what i tried it worked for maven project

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 0

F0cus
F0cus

Reputation: 625

For Me Spring Tool Suite 4

Version: 4.7.2.RELEASE

Build Id: 202009020958 `

There is a back arrow in the project explorer - just click , it solved my issue

enter image description here

Upvotes: 0

eli
eli

Reputation: 9258

In Spring Suite Go to Window --> Show View --> Project Explore

enter image description here

Upvotes: 1

Ken
Ken

Reputation: 144

Tried all the above. I deleted the project from eclipse. Restarted eclipse. Re-imported my maven projects and it worked.

Upvotes: 1

Pravin Kaushik
Pravin Kaushik

Reputation: 31

Click on menu view of project explorer -> select working set-> manually select all set.

This works for me.

Upvotes: 1

Savvy
Savvy

Reputation: 11

just follow the below in your Project Explorer !!

1.project presentation --> flat (click Pic 1 & 2 to see images)

2.Top level Elements -->Projects

Pic 1 Pic 2

Upvotes: 1

Mabad
Mabad

Reputation: 439

I am using Eclipse neon, just click on the top right corner button(The one near the bug icon). enter image description here

When you hover over it, hint says 'Java'. That should do the trick!

Upvotes: 4

wahidd
wahidd

Reputation: 87

Navigate-> Show In -> Package Explorer

Upvotes: 7

张宇鹏
张宇鹏

Reputation: 51

Following steps are OK for my teammate :

project properties -> Project Facets -> tick EAR(version 1.3)

Hope it is useful.

Upvotes: 1

keiki
keiki

Reputation: 3459

In my case the folder was already in the build path.

But Excluded was set to **

After I set it to (None) using the remove button it worked.

Upvotes: 1

vivek
vivek

Reputation: 51

Right Click on your top level of your package, go to build path->use as source folder. Will show you what you want.

Upvotes: 5

Ken Chan
Ken Chan

Reputation: 90517

Do you configure the corresponding folders to be the source folder?

They should be included in the java build path (The project properties--> java build path --> source ) . Eclipse only shows the package structure and provides the necessary stuff such as refactoring capabilities , checking java syntax error for the folders that are included in the java build path.

Upvotes: 17

suat
suat

Reputation: 4289

enter image description here

From the menu pointed in the image, setting Package Presentation as flat may solve your problem.

Edit: Pointed menu is also available in Package Explorer view.

Upvotes: 22

Related Questions