Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could anyone explain the exact difference among project explorer, package explorer and navigator in eclipse?

Tags:

What are the exact differences between project explorer, package explorer and navigator in eclipse?

I am so confused of using the three. Because all seem to fit the same purpose. I don't know, what the exact difference is. Could anyone explain this to me and suggest which one is better for checking out?

like image 862
Deepak Mani Avatar asked Apr 03 '12 10:04

Deepak Mani


People also ask

What is the Package Explorer in Eclipse?

The Package Explorer view, shown by default in the Java perspective, shows the Java element hierarchy of the Java projects in your workbench. It provides you with a Java-specific view of the resources shown in the Navigator. The element hierarchy is derived from the project's build paths.

What is the use of Navigator in Eclipse?

The Navigator view shows all your Eclipse projects, both projects associated with AccuRev and others. You access each project's files and directories (folders) using a familiar tree control.

How do I navigate to package explorer in Eclipse?

The Show View commands are activated by pressing Alt + Shift + Q , then the letter for the relevant view, eg. to navigate to the Package Explorer, press Alt + Shift + Q , P .

Why does Eclipse not show project Explorer?

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

From the Eclipse Documentation about the Common Navigator Framework:

There are currently 3 major navigators in the Eclipse IDE.

  1. Project Explorer - This is an instance of the CommonNavigator that is provided by the org.eclipse.ui.navigator.resources plugin. It provides a view of the workspace and has a large number of NCEs contributed for resources, Java, C, Web Tools, Data Tools, PHP, etc.

  2. Package Explorer - Provided by the Java Development Tools (JDT) UI project, this provides a view of Java classes for the workspace. Generally speaking, the presentation of the Package Explorer and Project Explorer for Java objects is substantially similar. The JDT is not used for projects beyond Java.

  3. Navigator - This view is an implementation of the now deprecated (as of 3.5) org.eclipse.ui.views.navigator.ResourceNavigator class provided in the org.eclipse.ui.ide plugin. It shows only the workspace resources and does not support extensibility to show other content. In a future release, the Navigator view will be provided by an implementation of the CommonNavigator.

Hope this helps.

like image 152
s.d Avatar answered Oct 25 '22 08:10

s.d


Also see What is the difference between the Eclipse Package Explorer and the Eclipse Project Explorer? for specific differences between Project Explorer and Package Explorer.

like image 30
studgeek Avatar answered Oct 25 '22 07:10

studgeek