Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6980

Missing internal_browser.gif icon on Eclipse Oxygen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Sling Eclipse IDE 1.2.0
    • IDE
    • None

    Description

      We contribute an open command which picks up the browser icon from the org.eclipse.ui.browser bundle

                    <command
                    	commandId="org.apache.sling.ide.eclipse.ui.actions.openHtmlInBrowserHandler"
                    	icon="platform:/plugin/org.eclipse.ui.browser/icons/obj16/internal_browser.gif"
                    	label="&amp;Open .html (on server) in browser">

      This no longer works in Oxygen, I get the following error reported:

      Exception:java.io.FileNotFoundException: /icons/obj16/internal_browser.gif
      	 at org.eclipse.osgi.storage.url.bundleentry.Handler.findBundleEntry(Handler.java:49)
      	 at org.eclipse.osgi.storage.url.BundleResourceHandler.openConnection(BundleResourceHandler.java:169)
      	 at java.net.URL.openConnection(URL.java:979)
      	 at org.eclipse.core.internal.boot.PlatformURLConnection.connect(PlatformURLConnection.java:112)
      	 at org.eclipse.core.internal.boot.PlatformURLConnection.getURLAsLocal(PlatformURLConnection.java:237)
      	 at org.eclipse.core.internal.runtime.PlatformURLConverter.toFileURL(PlatformURLConverter.java:34)
      	 at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:207)
      	 at org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor.java:230)
      	 at org.eclipse.jface.resource.URLImageDescriptor.access$2(URLImageDescriptor.java:218)
      	 at org.eclipse.jface.resource.URLImageDescriptor$URLImageFileNameProvider.getImagePath(URLImageDescriptor.java:54)
      	 at org.eclipse.swt.internal.DPIUtil.validateAndGetImagePathAtZoom(DPIUtil.java:408)
      	 at org.eclipse.swt.graphics.Image.<init>(Image.java:771)
      	 at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:261)
      	 at org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:180)
      	 at org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:52)
      	 at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:85)
      	 at org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:69)
      	 at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:85)
      	 at org.eclipse.jface.resource.ResourceManager.createImage(ResourceManager.java:172)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.getImage(AbstractContributionItem.java:148)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.updateIcons(AbstractContributionItem.java:174)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.update(AbstractContributionItem.java:124)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.fill(AbstractContributionItem.java:261)
      	 at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:728)
      	 at org.eclipse.jface.action.MenuManager.update(MenuManager.java:810)
      	 at org.eclipse.jface.action.MenuManager.update(MenuManager.java:669)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.scheduleManagerUpdate(MenuManagerRenderer.java:1212)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.processContents(MenuManagerRenderer.java:649)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.subscribeTopicChildAdded(MenuManagerRenderer.java:324)
      	 at sun.reflect.GeneratedMethodAccessor20.invoke(null:-1)
      	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	 at java.lang.reflect.Method.invoke(Method.java:498)
      	 at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
      	 at org.eclipse.e4.ui.internal.di.UIEventObjectSupplier$UIEventHandler$1.run(UIEventObjectSupplier.java:64)
      	 at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:233)
      	 at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:144)
      	 at org.eclipse.swt.widgets.Display.syncExec(Display.java:5439)
      	 at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:212)
      	 at org.eclipse.e4.ui.internal.di.UIEventObjectSupplier$UIEventHandler.handleEvent(UIEventObjectSupplier.java:61)
      	 at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:201)
      	 at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
      	 at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
      	 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
      	 at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
      	 at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
      	 at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
      	 at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
      	 at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:52)
      	 at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:60)
      	 at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
      	 at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
      	 at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:356)
      	 at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:343)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.mergeIntoModel(ContributionRecord.java:250)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.processAddition(MenuManagerRenderer.java:546)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.generateContributions(MenuManagerRenderer.java:525)
      	 at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.processContributions(MenuManagerRenderer.java:493)
      	 at org.eclipse.ui.internal.PopupMenuExtender.addMenuContributions(PopupMenuExtender.java:410)
      	 at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:382)
      	 at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:339)
      	 at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:470)
      	 at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465)
      	 at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:497)
      	 at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:256)
      	 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	 at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5252)
      	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1348)
      	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1374)
      	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1353)
      	 at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:198)
      	 at org.eclipse.swt.widgets.Display.runPopups(Display.java:4564)
      	 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4097)
      	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
      	 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
      	 at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
      	 at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
      	 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
      	 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
      	 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	 at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
      	 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	 at java.lang.reflect.Method.invoke(Method.java:498)
      	 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
      	 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
      	 at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
      	 at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: