Bug 25844 - Opening a file using the Open With pop up menu yields unexpected results.
Summary: Opening a file using the Open With pop up menu yields unexpected results.
Status: RESOLVED DUPLICATE of bug 24684
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 13:27 EST by Geoff R. Duck CLA
Modified: 2002-11-07 17:22 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff R. Duck CLA 2002-11-07 13:27:29 EST
NOTE: This is not a Linux specific bug.  I have reproduced it in windows 2000
and windows NT as well as Red Hat 7.2 and Red Hat 8.0.

Using: Eclipse Version: 2.0.1
Build id: 200208291828


Here is the gist of the defect:

When opening a file using the "open with" command the default editor to open
that file type, then using that same command again "open with" and selecting the
same editor that has the selection "point" or "dot" beside it will cause the
file to be opened with the originial editor for that file type the next time the
file is double clicked on to open it.

I have reproduced this with .java files, build.properties files, and basically
all files that can be opened is several types of editors. I have reproduced it
in the java pesrpective, and the resource perspective.  Furthermore I have
reproduced it in the Resource Navigator view, and also the Packages View, (as
well as my own custom view, how I initially discovered it.)

To reproduce this:

1)double click on a .java file to open it.  It opens in the java editor.
2)close that editor.
3)right click on that same .java file.  Choose "open with->text editor". It
opens the java file using the text editor.
4)close that editor.
5)double click on the same file.  It opens with the same text editor you called
"open with" on.
6)close that editor.
7)right click on that same file.  Choose "Open with->text editor" NOTE: text
editor will have the "Dot" selection beside it when you choose it this time. 
The file will open with the text editor.
8)close that editor.
9)double click on the same file.  It opens NOT in the text editor as you would
expect, but in the JAVA editor that it initially opened with.


Try it with different file types and different editors, the results are the same.
Comment 1 Sonia Dimitrov CLA 2002-11-07 17:22:49 EST

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