Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 196327 - I have to Alt-click twice before I can open a file
Summary: I have to Alt-click twice before I can open a file
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.0   Edit
Assignee: Mik Kersten CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 272089
  Show dependency tree
 
Reported: 2007-07-12 11:13 EDT by Dave Syer CLA
Modified: 2009-08-06 20:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Syer CLA 2007-07-12 11:13:30 EDT
Build ID: I20070621-1340

Steps To Reproduce:
1. Alt-click on a folder with hidden content in the current context
2. double click on one of the grey files
3. It deosn't open
4. Go back to Step 1., and it opens on the second attempt


More information:
Comment 1 Mik Kersten CLA 2007-07-13 03:49:36 EDT
I cannot reproduce this.  does this happen every time or intermittently?  If every time, could you describe a minimal example of how you can reproduce this (e.g. which kinds of elements you're clicking and in which view).
Comment 2 Eugene Kuleshov CLA 2007-07-13 04:07:57 EDT
I've been noticing this occasionally too. Don't have scenario to reproduce, but I have working sets shown at the root of my Package Explorer.
Comment 3 Dave Syer CLA 2007-07-13 08:09:54 EDT
I also have Working Sets as the top level view in my Package Explorer, but changing that doesn't make any difference.  

I'm not entirely sure, but I think maybe .java source files behave OK, and the problem is with .xml / .jsp / .properties files.  Or then again maybe not.

It might just be to do with the speed at which Mylyn rolls up its folder when you click on a greyed-out item - if you're a bit slow on the draw then a double click turns in to a single click because the item you selected has been moved up the screen when the folder rolls up.

Actually i just tried it a few times and I can always get the first item in a folder in one go, but the others are variable (more often than not taking two attempts).  So maybe it is just the speed?
Comment 4 Mik Kersten CLA 2007-07-13 20:07:40 EDT
Will keep an eye out for this and investigate.  If anyone encounters clues to reproduce please post.
Comment 5 Dave Syer CLA 2007-07-14 10:58:39 EDT
I think this is 100% deterministic - I can never open a grey file on the first attempt except the first one in a folder after Alt-Click.  Does no-one else have this problem?
Comment 6 Mik Kersten CLA 2007-07-17 15:38:18 EDT
I  still cannot reproduce it.  It could be weirdness related to the viewer not registering the first selection.  What exact OS, Mylyn, and Eclipse version are you using.  Also, what is the state of the context when you do this (e.g. totally blank, can reproduce with one interest file in a directory and trying to Alt+click to make another interesting).
Comment 7 Eugene Kuleshov CLA 2007-07-17 16:02:44 EDT
To me it is happening after I work on task for some time and context have some stuff in it (maybe task even deactivated/activated few times before). I am running last dev builds on windows and Eclipse 3.3. What I've noticed that folder I am alt-clicking to is usually gray when that happpens.
Comment 8 Dave Syer CLA 2007-07-17 17:07:44 EDT
Eclipse: Version: 3.3.0
Build id: I20070621-1340

Mylyn: 2.0.0.v20070627-1400 (all the Mylyn components appear to have that version number).

OS: Windows XP.

I can reproduce from a new task with blank context:

* open a source file with Ctrl-Shift-T
* Alt-Click on its enclosing (grey) package
* Double click on one of the other classes in teh package (not the first one)
* Package rolls up and the new class is visible in package explorer, but is not opened in editor
* Double-click on it again and it opens in editor.
Comment 9 Mik Kersten CLA 2007-12-18 23:57:32 EST
Dave: this should be fixed in tomorrow's weekly build, and it would be great if you could try it out.  The fix was made as part of the work on bug 208702.