Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Eclipse open my java files as a tab in the package explorer view?

Tags:

eclipse

Whenever I want to open a file in the package explorer, it will be opened as a new tab in the same view as the package explorer. Last time I started Eclipse, the were all opened in a seperate editor view.

Screenshot

like image 207
Ulrich Stark Avatar asked Oct 10 '16 15:10

Ulrich Stark


People also ask

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 change the Package Explorer view in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

What is the difference between project Explorer and Package Explorer in Eclipse?

Project Explorer additional nodes for web projects, enterprise projects, spring beans and web services. Package Explorer - Provided by the Java Development Tools (JDT) UI project, this provides a view of Java classes for the workspace.

Where is .Java file located in the Package Explorer pane?

The package explorer & Creating a project 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'.


2 Answers

You can try resetting your perspective.

In the upper right hand corner you can see your currently selected "Perspective" (you can also set it through Window-->Open Perspective-->Other). It will probably be "Java" for you. You can right-click on the perspective and choose "Reset". This will reset the perspective to it's default settings.

There is also Window>Reset Perspective as another way to reset.

like image 63
FriedSaucePots Avatar answered Oct 17 '22 22:10

FriedSaucePots


open Window -> Perspective -> Reset Perspective It worked fine for me. Then you can just minimize all the other open tabs you don't need like Task List...

like image 20
Nadine Nassar Avatar answered Oct 17 '22 23:10

Nadine Nassar