Bug 87261 - [EFS] Browse Zipped Resources
Summary: [EFS] Browse Zipped Resources
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2005-03-07 08:43 EST by Thomas Derflinger CLA
Modified: 2019-09-06 15:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Derflinger CLA 2005-03-07 08:43:36 EST
There is a need to look into zipped resources. Currently, this functionality
only exists for jar files that are on the classpath. You can easily look into
the contents of these jars.

But a more general zip file explorer functionality would be useful for many
projects. Often, zip files are the result of Ant builds. So it would be great to
be able to look easily into these packed files to check the contents manually.

There are a number of open source plugins, but they are not really well
integrated into the platform. Also, most users would benefit from having this
work right out of the box.
Comment 1 Benjamin Muskalla CLA 2006-07-18 21:19:36 EDT
I think this issue is now covered by EFS Zip implementation
Comment 2 John Arthorne CLA 2006-09-28 17:00:28 EDT
See also bug 157402.
Comment 3 Tod Creasey CLA 2007-06-25 14:56:53 EDT
The EFS zip implementation covers this
Comment 4 Markus Keller CLA 2007-07-04 15:06:27 EDT
Does not work for me. The plug-in mentioned in bug 157402 comment 2 is just an unsupported example plug-in. This bug requests such functionality in the SDK.

Furthermore, the example does not work for me in N20070704-0010. I imported a plug-in from the target platform as binary and then tried "context menu > Expand Zip File" in the Package Explorer, but all I got was this:

!ENTRY org.eclipse.core.expressions 4 4 2007-07-04 20:55:50.031
!MESSAGE Unknown expression element objectState
!STACK 1
org.eclipse.core.runtime.CoreException: Unknown expression element objectState
	at org.eclipse.core.expressions.ExpressionConverter.processChildren(ExpressionConverter.java:127)
	at org.eclipse.core.expressions.ElementHandler.processChildren(ElementHandler.java:101)
	at org.eclipse.core.internal.expressions.StandardElementHandler.create(StandardElementHandler.java:34)
	at org.eclipse.core.expressions.ExpressionConverter.perform(ExpressionConverter.java:89)
	at org.eclipse.core.expressions.ExpressionConverter.processChildren(ExpressionConverter.java:125)
	at org.eclipse.core.expressions.ElementHandler.processChildren(ElementHandler.java:101)
	at org.eclipse.core.internal.expressions.StandardElementHandler.create(StandardElementHandler.java:64)
	at org.eclipse.core.expressions.ExpressionConverter.perform(ExpressionConverter.java:89)
	at org.eclipse.ui.internal.ObjectActionContributor$ObjectContribution.setEnablementTest(ObjectActionContributor.java:340)
	at org.eclipse.ui.internal.ObjectActionContributor.readElement(ObjectActionContributor.java:275)
	at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
	at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:127)
	at org.eclipse.ui.internal.ObjectActionContributor.readConfigElement(ObjectActionContributor.java:250)
	at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:216)
	at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:294)
	at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:82)
	at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:261)
	at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:337)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:290)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:395)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:391)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:417)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943)
	at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3981)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3698)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1584)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1753)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4350)
	at org.eclipse.swt.internal.win32.OS.$$YJP$$TrackPopupMenu(Native Method)
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(OS.java)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:228)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:3707)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3286)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
!SUBENTRY 1 org.eclipse.core.expressions 4 4 2007-07-04 20:55:50.031
!MESSAGE Unknown expression element objectState

!ENTRY org.eclipse.jdt.ui 4 10001 2007-07-04 20:56:24.812
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Core Exception [code 271] Errors occurred while refreshing resources with the local file system.
	at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:720)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
	at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4466)
	at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.eclipse.core.internal.resources.ResourceException: Errors occurred while refreshing resources with the local file system.
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:733)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:714)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1420)
	at org.eclipse.core.internal.resources.File.refreshLocal(File.java:331)
	at org.eclipse.jdt.ui.actions.RefreshAction$1.run(RefreshAction.java:131)
	at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:720)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
	at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4466)
	at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 1 org.eclipse.core.resources 4 271 2007-07-04 20:56:25.484
!MESSAGE Errors occurred while refreshing resources with the local file system.
!SUBENTRY 2 org.eclipse.core.resources 4 278 2007-07-04 20:56:25.484
!MESSAGE '' is an invalid resource name.
Comment 5 Paul Webster CLA 2007-07-11 11:02:09 EDT
(In reply to comment #4)
> !ENTRY org.eclipse.core.expressions 4 4 2007-07-04 20:55:50.031
> !MESSAGE Unknown expression element objectState
> !STACK 1

The above is a complaint when actually opening the popup menu.

Below looks like some part of EFS+zip is returning the empty resource name.

> 
> !ENTRY org.eclipse.jdt.ui 4 10001 2007-07-04 20:56:24.812
> !MESSAGE Internal Error
> !STACK 1
> Java Model Exception: Core Exception [code 271] Errors occurred while
> refreshing resources with the local file system.
> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
>         at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
> !SUBENTRY 1 org.eclipse.core.resources 4 271 2007-07-04 20:56:25.484
> !MESSAGE Errors occurred while refreshing resources with the local file system.
> !SUBENTRY 2 org.eclipse.core.resources 4 278 2007-07-04 20:56:25.484
> !MESSAGE '' is an invalid resource name.
> 

PW
Comment 6 Susan McCourt CLA 2009-07-15 11:59:41 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 7 Eclipse Webmaster CLA 2019-09-06 15:36:20 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.