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

Bug 278328

Summary: [launcher] Taskbar icon misbehaving on windows 7
Product: [Eclipse Project] Equinox Reporter: Prashant Deva <prashant.deva>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, bokowski, eclipse.felipe, john.arthorne, Mike_Wilson, prakash, tjwatson
Version: 3.4.2   
Target Milestone: 3.6 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 174187    
Bug Blocks:    

Description Prashant Deva CLA 2009-05-28 22:05:49 EDT
Steps to reproduce -
1. place eclipse icon on the windows 7 taskbar.
2. start eclipse by clicking on taskbar icon.
3. According to windows 7 standard behavior, clicking next time on the icon should not load a new copy of the app but switch to the running app, unless you click it with 'Shift' held down
4. However, if you click the eclipse icon while the eclipse splash screen is still visible, instead of switching to eclipse, a new copy of eclipse is launched.

This is inconsistent with windows 7 behavior.
Comment 1 Boris Bokowski CLA 2009-06-04 10:08:37 EDT
Not sure if SWT or Launcher. Do we even have a Windows 7 box yet?
Comment 2 Felipe Heidrich CLA 2009-06-04 11:01:00 EDT
Not for 3.5

Can you try with Eclipse 3.5 RC3 ?
Comment 3 Felipe Heidrich CLA 2009-07-28 09:29:26 EDT
re-read the description, sounds like a problem in the launcher.
Comment 4 Thomas Watson CLA 2009-07-28 09:56:07 EDT
(In reply to comment #0)
> 4. However, if you click the eclipse icon while the eclipse splash screen is
> still visible, instead of switching to eclipse, a new copy of eclipse is
> launched.

What happens after the splash screen is gone and the workbench is up?  Does it do the right thing then?
Comment 5 Prashant Deva CLA 2009-07-28 18:54:12 EDT
(In reply to comment #4)
> (In reply to comment #0)
> > 4. However, if you click the eclipse icon while the eclipse splash screen is
> > still visible, instead of switching to eclipse, a new copy of eclipse is
> > launched.
> 
> What happens after the splash screen is gone and the workbench is up?  Does it
> do the right thing then?
> 

Yes
Comment 6 Thomas Watson CLA 2009-07-30 17:39:50 EDT
I reproduced on Windows 7.  

- I had to first launch eclipse
- Then pin the eclipse icon in the task bar and exit.  
- This left the icon on the task bar.  
- I could then relaunch eclipse with the icon on the taskbar (sounds like a copy of  Mac ;-))
- When I click on the icon the splash screen does not an entry in the task bar (see bug 235027).  Once I select a workspace then an entry shows up on the task bar with the icon.

I think the fact that the splash screen does not get an entry on the task bar is what ultimately causes this bug.  Andrew, should we dup this to bug 235027.
Comment 7 Prashant Deva CLA 2009-08-01 07:26:06 EDT
(In reply to comment #6)
> I reproduced on Windows 7.  
> 
> - I had to first launch eclipse
> - Then pin the eclipse icon in the task bar and exit.  
> - This left the icon on the task bar.  
> - I could then relaunch eclipse with the icon on the taskbar (sounds like a
> copy of  Mac ;-))
> - When I click on the icon the splash screen does not an entry in the task bar
> (see bug 235027).  Once I select a workspace then an entry shows up on the task
> bar with the icon.
> 
> I think the fact that the splash screen does not get an entry on the task bar
> is what ultimately causes this bug.  Andrew, should we dup this to bug 235027.
> 

I think the issue for Windows 7 is more serious than bug 235027.
In prior versions of windows, you launch eclipse by either double clicking an icon or clicking an item in the start menu. In either case, you either (most of the times) see a splash screen or the start menu disappears on clicking, indicating that the program has atleast started.

On windows 7 however, after pinning the program to the taskbar, you click on the icon and the splash screen sometimes somehow doesnt even come to the fore front. Thus you have no feedback whatsoever in the taskbar that clicking the eclipse icon has made it startup or not. 
So the user ends up clicking the icon multiple times and thus opening multiple copies of eclipse.

Comment 8 Prashant Deva CLA 2009-08-01 07:27:49 EDT
As an addenum to my previous comment, I think in previous versions of windows it was ok not to have a taskbar entry for splash screens. 
However in Windows 7 it is *needed* otherwise the user will end up launching the app multiple times.

Comment 9 Thomas Watson CLA 2009-08-03 09:00:03 EDT
(In reply to comment #7)
> I think the issue for Windows 7 is more serious than bug 235027.

We can leave this bug open to track it as a separate issue.  But I think this bug will be fixed if bug 235027 is addressed.
Comment 10 Andrew Niefer CLA 2009-08-05 10:23:29 EDT
See also bug 174187.  We don't always have a name/icon. 
Comment 11 Thomas Watson CLA 2009-10-14 13:01:15 EDT
With the fixes to bug 174187 and bug 235027 this issue seems addressed.  Please reopen if you are still having issues with the latest integration build of 3.6.