Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make empty packages visible in Eclipse?

Tags:

Is there a way in Eclipse, to see empty parent packages? I have an issue freely viewing/accessing package new.galaxywar.client.resources.images.game that only contains 2 sub-packages:

packages

I tried creating that package again, because I thought that i might not have it in my eclipse project, but it won't let me:

packages

How do I prevent "views from filtering empty parent packages"?

like image 232
Victor2748 Avatar asked Jun 08 '14 14:06

Victor2748


People also ask

How do I display a package in Eclipse?

Upon running Eclipse you should see a pane labeled 'Package Explorer', probably on the left. If you do not see one, you can open it up by going to the Window menu, selecting Show View and Package Explorer. If it doesn't show up under Show View, select Other, then 'Java', then 'Package Explorer'.

How do I fix package explorer in Eclipse?

You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something. If you select it and still can't see it, try Window → Reset Perspective... to restore all views to their defaults.

How do I unhide a project in Eclipse?

In Eclipse, if the Project Explorer pane is not already open, click the Show View icon in the lower left corner of Eclipse, then click Project Explorer.


2 Answers

In "Project Explorer" panel, click on the "View Menu" button (represented as a triangle). Then go to "Customize View..." and deselect "Empty parent packages".

This should do the trick.

like image 166
vadchen Avatar answered Sep 28 '22 16:09

vadchen


While I'm not sure how to perfectly solve the problem, I do know that you can still access the package if you try creating a new file in there, for example package-info.java.

Try doing that by starting to add a Class as usual, but specify the package to be the package you can't seem to access in the Package Explorer.

like image 29
EpicPandaForce Avatar answered Sep 28 '22 18:09

EpicPandaForce