Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 307121 - Cannot open a file when focused on a compare editor of that file
Summary: Cannot open a file when focused on a compare editor of that file
Status: RESOLVED DUPLICATE of bug 277697
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 14:41 EDT by Marc Khouzam CLA
Modified: 2011-09-27 15:38 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2010-03-25 14:41:59 EDT
If I have focus on a compare editor of a file, and I double-click on the file in the project explorer, the file does not open.

To reproduce:
- right-click on file <myfile> and choose "compare with->Git index"
- have focus on the newly opened compare editor
- double-click on <myfile> in the project explorer.
-> You will notice that the file does not open.
If I set the focus on any other editor (even another compare editor), I can double-click on the file and it will open.

I tried this on Windows Vista with the tutorial at EclipseCon with 3.6M5.

Thanks
Comment 1 Chris Aniszczyk CLA 2010-03-25 16:48:31 EDT
Thanks for the live bug report :)
Comment 2 Mathias Kinzler CLA 2010-03-29 08:42:32 EDT
This seems to be built into the JDT org.eclipse.jdt.ui.actions.OpenAction; not sure how much we as EGit can do here...
Comment 3 Marc Khouzam CLA 2010-03-29 09:36:49 EDT
(In reply to comment #2)
> This seems to be built into the JDT org.eclipse.jdt.ui.actions.OpenAction; not
> sure how much we as EGit can do here...

You are right, the same things happens with CVS.
What do you think, is this a bug?  I seemed like a but to me, but since it's been there for a while, maybe it is a behavior people want?

So, I can either close this bug, or move it to JDT, depending on if you also feel it is a bug.
Comment 4 Stefan Lay CLA 2010-08-04 08:17:18 EDT
This seems to be a standard behaviour of eclipse: If there is already an editor open for a resource double clicking does not open another one. But you can open a new Java editor if you use Open With -> Java Editor.
Comment 5 Markus Keller CLA 2011-09-27 15:38:32 EDT

*** This bug has been marked as a duplicate of bug 277697 ***