Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 191120

Summary: [CommonNavigator] Project Explorer does not refresh or function like the Navigator View
Product: [Eclipse Project] Platform Reporter: Mark Melvin <mark.melvin>
Component: UIAssignee: Francis Upton IV <francisu>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mark Melvin CLA 2007-06-05 16:45:43 EDT
Build ID: I20070601-1539

I would like to start using the Common Navigator in my perspective instead of the Navigator View so I can start extending it with my own content.  However, I keep finding lots of little things about it that simply don't work, or are maddeningly different from the Navigator View.  Here are some examples:

1. There is no "Go Into" buttons in the Project Explorer.  There are useful actions.

2. The Project Explorer seems to show markers as lightweight decorators automatically - and moving to it would allow me to remove my hacky decorator code.  However, it doesn't refresh properly so is essentially useless in this regard.

3. There are lots of cases where the Project Explorer does not refresh and the Navigator View does.  For example - refer to the following screencast I just made (I'll attach it in a second).  You can find it online here:

http://www.screencast-o-matic.com/watch/ci1hIkls

(But that free service apparently doesn't work very well because now I can't view my screencast anymore so I will attach an exported Quicktime version). 

Essentially, what is going on is as follows:

0:01 Both views are the same (though the Project Explorer has resource markers that should not be there - more on this later) 

0:06 Clean the project, triggering a rebuild.

0:08 This is an Ant build that deleted the "Debug" folder and regenerated build.xml. I then manually refresh the project from my builder and the Navigator View refreshes but the Project Explorer does not.

0:10 Still building...

0:15 Done.  Again, my builder refreshes the workspace, marking the "Debug" folder and "build.xml" as derived resources and the Navigator View refreshes but the Project Exlplorer does not.

0:17 Look at the difference between the projects. There should be no markers on any resources in the "Debug" folder (my decorator does not decorate children of a derived folder) and again the Navigator View gets it right, but not the Project Explorer.  It is simply not being updated.
Comment 1 Mark Melvin CLA 2007-06-05 16:48:16 EDT
Apparently my 4MB movie is too big.  I'll see what I can do to attach a smaller version.
Comment 2 Mark Melvin CLA 2007-06-05 17:00:25 EDT
You might be able to see it here:

http://picasaweb.google.com/mark.melvin/MyVideos/photo?authkey=TT8u8soz0xg#5072687202346169042

After picasaweb is finished cranking on it.  I think it is currently trying to convert it.  Hopefully it will be available shortly.
Comment 3 Kevin McGuire CLA 2007-06-05 18:00:37 EDT
Note: #1 is logged previously as bug #189682.  Feel free to add to CC.
Comment 4 Mark Melvin CLA 2007-06-05 18:05:36 EDT
I CC'd myself on bug #189682 but I don't think this is the same issue.  What I am describing here is the the actions are not contributed or visible *at all* in the Project Explorer.  Bug #189682 is talking about the JDT Package Explorer (a different view) and action *enablement* as far as I can tell.
Comment 5 Kevin McGuire CLA 2007-06-26 11:11:14 EDT
(In reply to comment #4)
> I CC'd myself on bug #189682 but I don't think this is the same issue.  What I
> am describing here is the the actions are not contributed or visible *at all*
> in the Project Explorer.  Bug #189682 is talking about the JDT Package Explorer
> (a different view) and action *enablement* as far as I can tell.

Hi Mark,

There's also bug #189493 which is perhaps a better match to you what you were commenting on. With respect to bug #189682, what its describing is that the menu bar action doesn't enable on its own for the project explorer, but curiously if you go to the package explorer then *back to* the project explorer the action does enable.
Comment 6 Mark Melvin CLA 2007-06-26 11:17:28 EDT
Hi Kevin.  I'll agree that bug #189493 describes the same behaviour with regards to the "Go Into" actions being missing described in my point #1.

This bug is still valid for the refresh issues described in my original points #2 and #3, however.
Comment 7 Mark Melvin CLA 2007-08-13 14:04:39 EDT
Is the common navigator being worked on anymore?  There a TON of issues against it with relatively no response.  I'd like to move away from the Navigator View and start contributing custom content to the Project Explorer view, but the number of show-stopping bugs against it (like this one) doesn't really make it usable yet. 
Are you looking for help?
Comment 8 Mark Melvin CLA 2008-02-20 21:33:34 EST
For me this bug is HUGE and is still the reason we cannot move our product to the Project Explorer view.  Is there any plan to look at this at all??

Once again, you can clean and re-build a project, or cause some other type of workspace modification and the Project Explorer simply refuses to refresh.  I can easily get it into this state within a few seconds and refreshing projects and working sets in the view does absolutely nothing.  It basically is showing you completely false information.  Files that don't even exist in the workspace!  And there seems to be no way to get it out of this mode short of closing and re-opening Eclipse, which is ridiculous.

In fact - I was just trying to prove this with another movie or screenshot and in Eclipse 3.4M5 I cannot get the Project Explorer view to show anything at all when working sets are selected!  Every other view - Navigator, Package Explorer, etc. all show working sets just fine, but the Project Explorer view is completely empty and I cannot get it to show me anything!  Turns out - my working sets are "Java Working Sets" and I cannot find a way to get them to appear in the Project Explorer view at all!!  Why can the simple Navigator view cope with this, but not the uberific Project Explorer!?!?
Comment 9 Mark Melvin CLA 2008-09-15 15:27:31 EDT
Hmm... it is possible that #3, by far the worst bug of the three here has been fixed with the fix for bug 213891.  I'll give it a try when 3.4.1 is out.
Comment 10 Francis Upton IV CLA 2008-09-15 22:55:34 EDT
(In reply to comment #7)
> Is the common navigator being worked on anymore?  There a TON of issues against
> it with relatively no response.  I'd like to move away from the Navigator View
> and start contributing custom content to the Project Explorer view, but the
> number of show-stopping bugs against it (like this one) doesn't really make it
> usable yet. 
> Are you looking for help?
> 
Yes we are looking for help, I'm the committer on it, but I'm only part time.  As you can see I have gotten to many of the more critical issues for 3.4.1, but there is still quite a bit of work to be done to get the CN to be more robust and that's what I would like to have the focus on for 3.5.  One of the areas we need help in is expanding the current test suite.  It's very small and can use lots of additional test cases.  Let me know if you are interested in working on any area of the CNF and I would be happy to guide you.

I'm hoping that both issues #2 and #3 are solved by the many fixes that went into 3.4.1.  (I'm interpreting issue #2 to be just a part of refresh problems), let me know if I'm wrong.

Comment 11 Francis Upton IV CLA 2008-11-30 04:56:55 EST
(In reply to comment #9)
> Hmm... it is possible that #3, by far the worst bug of the three here has been
> fixed with the fix for bug 213891.  I'll give it a try when 3.4.1 is out.
> 
Can you report on the results of this?
Comment 12 Mark Melvin CLA 2008-12-01 10:05:38 EST
Hi Francis,

I tried to reproduce the issue in 3.4.1 and could not, so I assumed that the fix for bug 213891 resolved the issue.  To prove this I tried to reproduce the issue in Eclipse 3.4.0...and also failed.  Hrmph.  So I was hoping to try and pinpoint exactly what *did* fix the issue, but haven't had the time.  In any case, I haven't been able to reproduce my original refresh issue on either 3.4 or 3.4.1 so I guess until further notice it can be considered fixed. ;)
Comment 13 Francis Upton IV CLA 2008-12-01 13:41:16 EST
Seems like it got fixed somewhere along the line.
Comment 14 Mark Melvin CLA 2008-12-03 10:24:30 EST
I just saw it again on an Eclipse 3.4.0, upgraded to 3.4.1 and the problem went away.  I'll continue to monitor it on 3.4.1 for awhile in case it is a transient thing.