[ BUILD # : 201005050200 ]
[ JDK VERSION : 1.6.* ]
- open java.lang.Character.java from Favourites->JDK.src.zip
- select your custom Character.java from Project browser
- select Tools->Diff To..
- in "Files open in Editor" select Character.java and "Diff"
--> nothing happens
It seems, there is no diff possible on r/o files.
Please allow diffing of r/o files !!
You may select only existing files in the file chooser. The problem with java.lang.Character.java is that it physically does not exist (the opened file in the editor is a virtual file).
Think of "Files open in Editor" as a shortcut in navigation in the file chooser, when you select the virtual file, there's no existing file to navigate to. The problem is that the file is actually displayed in "Files open in Editor".
We should either remove such files from the view or find some hack to force "opening" non-existent files with the chooser.
BTW, to achieve the demanded diff, select Tools > Diff from the popup on the virtual file and in the chooser select the existing file.
(In reply to comment #2)
> ... or find some hack to force
> "opening" non-existent files with the chooser.
That would be great, as I frequently use the sources from JDK's src.zip to compare.
Additionally I sometimes wished to edit zip-archived files and write them back.