Bug 401259 - Project always show unfold icon even for closed project In Project Explorer
Summary: Project always show unfold icon even for closed project In Project Explorer
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Dimitar Giormov CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2013-02-19 21:31 EST by Daoyu Zhuang CLA
Modified: 2013-04-09 02:47 EDT (History)
3 users (show)

See Also:


Attachments
The eclipse javaee perspactive start up (24.13 KB, image/jpeg)
2013-02-20 08:18 EST, Daoyu Zhuang CLA
no flags Details
after click the fake unfold icon, it dispears (21.96 KB, image/jpeg)
2013-02-20 08:18 EST, Daoyu Zhuang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daoyu Zhuang CLA 2013-02-19 21:31:50 EST
The javaee perspective of Eclipse 4.2.0, under win 7 64 bit.

The "Project Explorer" always show unfold icon on startup for any project, even the closed one.  

However, when click on it, it will notice the project is closed, and the unfold icon disappear, this annoys.
Comment 1 Dani Megert CLA 2013-02-20 05:11:40 EST
This works fine for me on Windows 7 64-bit using 4.3 M5a:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M5a-201302041400/

Can you attach a screenshot?
Comment 2 Daoyu Zhuang CLA 2013-02-20 08:18:00 EST
Created attachment 227332 [details]
The eclipse javaee perspactive start up
Comment 3 Daoyu Zhuang CLA 2013-02-20 08:18:46 EST
Created attachment 227333 [details]
after click the fake unfold icon, it dispears
Comment 4 Daoyu Zhuang CLA 2013-02-20 08:20:34 EST
I don't think screenshot helps, cause it only can prove such bug exists, but not give any debug info.

But as you mention, I add 2 screenshots, the first one is the startup, the 2nd one is after I click the unfold icon for the closed project "cache_management".

I can replay the bug on nearly every computer I have. (Both at work or my home computer).

This is the screenshot at my home computer, which install pydev plugin, but "java ee" perspactive
Comment 5 Dani Megert CLA 2013-02-20 08:33:28 EST
- Does it also happen in the Package Explorer?
- Does it also happen with a closed 'Java' project?
- Of what kind/type is the closed 'cache_management' project?
- Can you reproduce it when using this build:
  http://download.eclipse.org/eclipse/downloads/drops4/M20130204-1200/
Comment 6 Daoyu Zhuang CLA 2013-02-20 09:36:54 EST
- I'm not using package explorer, but project explorer
- yes, I have another workspace which is all java projects, same problem
- the closed "cache_management" is a django python project, opened by pydev plugin, but I think this is the eclipse issue, not pydev issue
- I'm not trying 4.2.2, since it not seems like stable release, but I'll try 4.3 m5a
Comment 7 Charles Scott CLA 2013-03-26 11:15:12 EDT
I'm having a similar problem with 4.2.1, also under Win 7 64 bit. In my case on start-up the Project Explorer indicates all projects as open. If I click on the icon on the left to expand the project it will disappear if it's not actually open. If I right-click in the Project Explorer space and select Refresh, it will clear the icons on closed projects and indicates correctly. If I set the option to do refresh on start-up, it still does not clear the icons on the closed projects but will clear them if I manually ask for refresh again.
Comment 8 Dani Megert CLA 2013-03-26 11:35:34 EDT
(In reply to comment #7)
> I'm having a similar problem with 4.2.1, also under Win 7 64 bit. In my case
> on start-up the Project Explorer indicates all projects as open. If I click
> on the icon on the left to expand the project it will disappear if it's not
> actually open. If I right-click in the Project Explorer space and select
> Refresh, it will clear the icons on closed projects and indicates correctly.
> If I set the option to do refresh on start-up, it still does not clear the
> icons on the closed projects but will clear them if I manually ask for
> refresh again.

Can you please answer the questions from comment 5 for us.
Comment 9 Charles Scott CLA 2013-03-26 12:05:34 EDT
- Does it also happen in the Package Explorer?
- Does it also happen with a closed 'Java' project?
- Of what kind/type is the closed 'cache_management' project?
- Can you reproduce it when using this build:(In reply to comment #8)
> (In reply to comment #7)
> > I'm having a similar problem with 4.2.1, also under Win 7 64 bit. In my case
> > on start-up the Project Explorer indicates all projects as open. If I click
> > on the icon on the left to expand the project it will disappear if it's not
> > actually open. If I right-click in the Project Explorer space and select
> > Refresh, it will clear the icons on closed projects and indicates correctly.
> > If I set the option to do refresh on start-up, it still does not clear the
> > icons on the closed projects but will clear them if I manually ask for
> > refresh again.
> 
> Can you please answer the questions from comment 5 for us.

- Does it also happen in the Package Explorer?
NO, Package Explorer is fine - also then switching to Project Explorer without restarting I do still see the problem there.

- Does it also happen with a closed 'Java' project?
YES in Project Explorer
NO in Package Explorer

- Of what kind/type is the closed 'cache_management' project?
I'm not the one with the "cache_management" project. All of my projects are PHP projects.

- Can you reproduce it when using this build:
I'm reluctant to try another build at this time as I'm currently working on critical production work. I'm currently using Build 20130225-0426.
Comment 10 Dani Megert CLA 2013-03-27 04:33:30 EDT
(In reply to comment #9)
> - Of what kind/type is the closed 'cache_management' project?
> I'm not the one with the "cache_management" project. All of my projects are
> PHP projects.

Do you also see the behavior on other projects, e.g. a simple Java project?
Comment 11 Charles Scott CLA 2013-03-27 07:47:44 EDT
(In reply to comment #10)
> (In reply to comment #9)
> > - Of what kind/type is the closed 'cache_management' project?
> > I'm not the one with the "cache_management" project. All of my projects are
> > PHP projects.
> 
> Do you also see the behavior on other projects, e.g. a simple Java project?

Yes, I created a simple Java project to test this.

YES I do have the problem with a Java project in Project Explorer
NO I do not have the problem with a Java project in Package Explorer
Comment 12 Dani Megert CLA 2013-04-03 06:09:10 EDT
OK, I can reproduce this in the JEE Juno SR2 package. It is caused by the 'Java EE Navigator Content Application Client' content provider.
Comment 13 Dimitar Giormov CLA 2013-04-08 06:06:06 EDT
Committed and released. Fix will be available in next build of Kepler.

https://git.eclipse.org/c/jeetools/webtools.javaee.git/commit/?id=7431934f3ed33802dcc171b434b436a4648336d4
Comment 14 Daoyu Zhuang CLA 2013-04-08 21:32:07 EDT
I make the diff to plugins/org.eclipse.jst.jee.ui_1.0.500.v201205170400.jar/plugin.xml, but it doesn't work, still show unfold icon for closed projects in project explorer.

(In reply to comment #13)
> Committed and released. Fix will be available in next build of Kepler.
> 
> https://git.eclipse.org/c/jeetools/webtools.javaee.git/commit/
> ?id=7431934f3ed33802dcc171b434b436a4648336d4
Comment 15 Dimitar Giormov CLA 2013-04-09 02:47:11 EDT
did you cleaned the osgi cache? (you can clean it with -clean argument)
plugin.xml are cached there.