Community
Participate
Working Groups
When there are two editors defined for a particular file and that file is inside a jar, only the Open action is available. Therefore, only one editor (hard to know which) can be opened and there is no Open With action to allow for the other editor to be used. By changing which is the default in the plugin.xml, I have verified that both editors are valid to be used against a jar entry, so why is Open With not available on the context menu? The problem is in OpenEditorActionGroup.addOpenWithMenu() where it checks that the resource is an instanceof IFile. In this case, the resource is an IStorage.
The problem is that the OpenWith menu also contains external editors which don't work on IStorage. So we need a special Open With menu in this case. In general I think we need better "first class support" of jars and zip from the workbench.
Ideally, you might want to be able to edit and save a file from a .zip/.jar archive. WinZip let's you do this, for instance. However, in general, for Java, you probably don't want people opening writable editors against jar entries. It might be nice to allow this as an override or something. Even if you don't allow 'saving' changed contents of a zip file back to the zip, it would be nice to allow any editor, including external ones, to basically work. Again, the WinZip way would be to copy the file to a temp location and let you edit from there.
Our editor supports a read-only mode when launched on an IStorage object. Apparently the default text editor used by JDT does as well. The problem is that I can't have them both available since there's only the single Open action.
Moving platform since first class zip support should be provided by core.resources.
Refiling...
Marking old enhancement requests that we don't intend to fix in the near future as RESOLVED LATER. This does not mean we will never do them, but it means we have no specific plans to address them.
*** Bug 116753 has been marked as a duplicate of this bug. ***
*** Bug 157402 has been marked as a duplicate of this bug. ***
*** Bug 108278 has been marked as a duplicate of this bug. ***
[LATER->WONTFIX] The "LATER" bugzilla resolution is being removed so reopening to mark as WONTFIX.
I think that the gist of this bug is that it should happen; only the team doesn't have the resources to do them. Can you open it with "patches welcome"? I mean the whole infrastructure is there: In the JDT, I can open JAR files and browse them. It shouldn't be too hard to extend the VFS support for archives.