Bug 427897 - [package explorer] Remove need for "Package Explorer" in favor of "Project Explorer"
Summary: [package explorer] Remove need for "Package Explorer" in favor of "Project Ex...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P5 enhancement with 6 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on: 175868 266030 427887 503464 547844 567895 167414 193004 211520 223392 226046 314642 390348 471587 530450 548265 559092 575357
Blocks:
  Show dependency tree
 
Reported: 2014-02-11 08:11 EST by Mickael Istria CLA
Modified: 2022-05-05 06:31 EDT (History)
23 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2014-02-11 08:11:42 EST
In order to make usage of Eclipse more consistent, it would be good to make the "Project Explorer" a good substitute for "Package Explorer" and have JDT Perspective use directly the Project Explorer.
This issues tracks features that are missing in the Project Explorer to make Package Explorer useless.
Comment 1 Dani Megert CLA 2014-02-11 08:18:46 EST
There are still a lot of features missing in the 'Project Explorer'. Just look through the open bugs with "project explorer" or "common navigator" in the summary.
Comment 2 Mickael Istria CLA 2014-02-11 08:25:38 EST
Some of these features are not available in the JDT Package Explorer neither. We only need to care about the ones that are in JDT Package Explorer, but not in Resource "Project Explorer" (that could be called Workspace Explorer).

If there are some important features you know should be added to this list, please add them as dependencies.

The issue with having 2 explorers is that it cost twice more maintenance, and reduce consistency and ergonomics of the IDE. It would make things easier for contributors and users of there were a single universal explorer, and it seems to me that it's something that seems technically achievable without major effort, just one step after the other to port some or rewrite some existing featuress.
Comment 3 Dani Megert CLA 2014-02-11 08:29:34 EST
(In reply to Mickael Istria from comment #2)

> Some of these features are not available in the JDT Package Explorer neither.

Right, you need to pick those that mention the Package Explorer.


> If there are some important features you know should be added to this list, >please add them as dependencies.

Most of them are important to one or the other person.


> The issue with having 2 explorers is that it cost twice more maintenance,

At this point there's almost no cost/maintenance invested. On the other hand, adding new features to the Project Explorer and fixing the initial bugs, is a lot of work.
Comment 4 Mickael Istria CLA 2014-02-11 08:37:44 EST
Although I understand this is an effort that you don't plan because, I'm just wondering whether the general idea of merging both explorers makes sense to you, and whether you agree with the benefit for end-users ?
Comment 5 Dani Megert CLA 2014-02-11 08:46:16 EST
(In reply to Mickael Istria from comment #4)
> Although I understand this is an effort that you don't plan because, I'm
> just wondering whether the general idea of merging both explorers makes
> sense to you, and whether you agree with the benefit for end-users ?

I still see major functionality not present. If someone steps forward and fills those gaps and the Project Explorer is then at the same level as the Package Explorer, then I see no problem replacing it in the corresponding perspective(s). Note though, that I prefer spending my time reviewing new features that aren't available at all, rather than reviewing changes that just port existing features to another view.

BTW, some handy features that just come to my mind without searching bugzilla:
- last recently used filters in view menu
- several missing features around working sets
- some missing filters (e.g. text filter)
Comment 6 Doug Schaefer CLA 2014-02-11 10:21:13 EST
+1 for this request. We need to get rid of the language perspectives in favour of a single Edit perspective. Perspectives are a huge usability hurdle for new users. The fewer we have the better.
Comment 7 Rafael Chaves CLA 2014-02-11 13:27:37 EST
As a data point, I never use the Project Explorer, and whenever I unknowingly started using it (because some product enabled it), I soon realized it due to some missing feature or incorrect behavior, and instantly closed it and opened the package explorer.
Comment 8 Timo Kinnunen CLA 2014-02-11 13:30:07 EST
Both are missing important features available in the other. 

Project explorer is missing features related to working sets (bug 266030 and bug 427887). 

Package explorer is missing an option to not filter the contents of output directories. That makes trying to fix the problem like this error message suggests quite difficult: The project was not built due to "Could not delete '/HotLoader/target/classes/com'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent	HotLoader	Unknown		Java Problem
Comment 9 Mickael Istria CLA 2014-02-12 02:18:45 EST
(In reply to Rafael Chaves from comment #7)
> As a data point, I never use the Project Explorer, and whenever I
> unknowingly started using it (because some product enabled it), I soon
> realized it due to some missing feature or incorrect behavior, and instantly
> closed it and opened the package explorer.

It would be helpful if you could link existing or new bugs as dependencies to actually get the list of missing features that makes the project explorer not enough.
Comment 10 Rafael Chaves CLA 2014-02-12 06:44:53 EST
@michael: I never reported anything because I never saw myself as an intended user of the tool, nor ever saw it as a replacement for the Package Explorer.  Instead, my occasional use of the Project Explorer has always been by mere confusion (I think SpringSource has it enabled in SSTS/GGTS).

I will report any unexpected behavior I notice next time I use it by accident.
Comment 11 Andrey Loskutov CLA 2014-02-19 14:14:36 EST
This bug seems to go in the same direction as bug 208693 ([Workbench] [Navigator] [Project Explorer] Why to have two views?), which was closed as WONTFIX.
The comments on the bug 208693 are applicable to this bug too.

Below is a small selection of bugs from my list where I can't set the dependency to the current request, so please add them as blockers:

Bug 223392 [CommonNavigator] New ToolTip API doesn't work with Common Navigator
Bug 167414 [CommonNavigator] Project Explorer is missing "MRU filters"
Bug 150675 [CommonNavigator] Common Navigator Framework Filter/Content Extension Dialog should be extendable

Of course CommonNavigator framework has much more bugs/requests, but not all of them are applicable to this issue, see the query below:
https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&classification=Eclipse&list_id=8306902&longdesc=CommonNavigator&longdesc_type=allwordssubstr&order=Importance&query_format=advanced

Also I can remember that there were subtle differences between package/project explorers in handling of file delete/move operations, caused team plugins bugs/workarounds.

CommonNavigator is a complicated beast because it is trying to be both flexible and extensible. Changing a lot there would most likely break existing clients - not only because of API (will probably need to be changed) but also the behavior changes.

I see the need on one universal navigator view, but I do not see resources for porting existing Package Explorer functionality to CommonNavigator. IMHO this bug has no chance to be implemented without assigning a full time developer working only on the CommonNavigator framework for the next release.
Comment 12 Mickael Istria CLA 2014-02-20 02:45:24 EST
(In reply to Andrey Loskutov from comment #11)
> This bug seems to go in the same direction as bug 208693 ([Workbench]
> [Navigator] [Project Explorer] Why to have two views?), which was closed as
> WONTFIX.

Thanks for the link, that's indeed very similar.
WONTFIX shouldn't be allowed. Who knows what the future is made of? Maybe if this same bug remained open, having a helpwanted flag or anything else more welcoming than a WONTFIX, this bug would already be resolved...

> The comments on the bug 208693 are applicable to this bug too.


> Below is a small selection of bugs from my list where I can't set the
> dependency to the current request, so please add them as blockers:

I added them.
 
> CommonNavigator is a complicated beast because it is trying to be both
> flexible and extensible. Changing a lot there would most likely break
> existing clients - not only because of API (will probably need to be
> changed) but also the behavior changes.

From a usage POV, there are a lot of similarities between package and project explorers. I guess the behaviour change won't be that big, and that it shouldn't reveal too many issues.
As for API, let's try to keep backward compatibility, as usual.

> porting existing Package Explorer functionality to CommonNavigator.

It seems to me that the gap between package explorer and project explorer is not that big. From a user POV, only working sets seem to differ. Most other stuff work the same.

> IMHO
> this bug has no chance to be implemented without assigning a full time
> developer working only on the CommonNavigator framework for the next release.

Resource assignement is a bit off-topic IMO. The entry is here, the idea seems worth it. Anyone can come and put some time in fixing a piece of it. No need to think about a full time developer or whatever. Someone having one hour to spend on this is welcome anyway.
Comment 13 Mickael Istria CLA 2015-07-07 08:19:01 EDT
Now that the project explorer provides nested project view, some users reported that they were willing to try this but didn't manage to find it. The reason is that they were using Package Explorer.
I now believe that the user value of the Project Explorer in its current state is better than the one in Package Explorer (despite the remaining issues linked to this one). So most users who start a new workspace would be more satisfied by seeing Project Explorer and Package Explorer by default.
Those who would miss a feature from Package Explorer could still use it, those who use an existing workspace would still see the Package Explorer as they're used to.

Isn't it the right time to switch to the JDT perspective to Project Explorer.
Comment 14 Ivica Loncar CLA 2015-07-08 08:35:40 EDT
Currently Project explorer wastes too much space:
Bug 471587 - Referenced libraries are not grouped in Project explorer

OT: Even better - I would really like a separate view for libraries - it would follow project structure but show only libraries - that would allow me to navigate source files in a project and libs without loosing context when I step into a library.
Comment 15 Dani Megert CLA 2015-07-15 05:56:30 EDT
(In reply to Mickael Istria from comment #13)
> Isn't it the right time to switch to the JDT perspective to Project Explorer.

No, see my previous comments.
Comment 16 Mickael Istria CLA 2015-10-01 09:04:58 EDT
As a quick note, the Java EE perspective, which is default with the Java EE package (by far the most downloaded one) comes with the Project Explorer as default, and so far I didn't notice users complaining about it.
IMO, although the Project Explorer doesn't contain all features of Package Explorer (and vice-versa), it is the most helpful for users  as it supports much better much more technologies.
Comment 17 Mickael Istria CLA 2016-09-30 07:51:36 EDT
Bug 264404 is not a blocker from JDT POV, since JDT does contribute marker decoration anyway.
Comment 18 Pierre-Yves Bigourdan CLA 2019-09-23 14:47:01 EDT
Was looking forward to trying the new "Close project via middle-click" feature, but was was caught out by the fact that it doesn't work in the Package Explorer. 

It would definitely be beneficial to users to have a single view, rather than two very similar but not quite identical ones. This causes a lot of confusion and frustration, as illustrated by this popular StackOverflow post about the difference between the two, asked over 10 years ago yet still active nowadays: https://stackoverflow.com/questions/1265070/what-is-the-difference-between-the-eclipse-package-explorer-and-the-eclipse-proj
Comment 19 Lars Vogel CLA 2019-10-21 09:03:09 EDT
Instead of removing the package explorer I suggest in Bug 552279 to use Project Explorer by default, like all other perspectives I'm aware of are doing.
Comment 20 Stephan Herrmann CLA 2019-10-21 12:46:36 EDT
(In reply to Lars Vogel from comment #19)
> Instead of removing the package explorer I suggest in Bug 552279 to use
> Project Explorer by default, like all other perspectives I'm aware of are
> doing.

You saw that this bug is not about "removing the package explorer" but about "removing the need for 'package explorer'"?
Comment 21 Stephan Herrmann CLA 2022-03-02 18:24:35 EST
Note that a blocking bug has just been auto closed WONTFIX: bug 547844.

Does it make this current bug WONTFIX, too, by transitivity?