Bug 203789 - [Markers] ShowIn menu has no sub entries
Summary: [Markers] ShowIn menu has no sub entries
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: 3.4   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 182018
Blocks:
  Show dependency tree
 
Reported: 2007-09-18 10:39 EDT by Tod Creasey CLA
Modified: 2008-03-31 09:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2007-09-18 10:39:43 EDT
The ShowIn menu has no sub entries and so it is an enabled item that does nothing
Comment 1 Tod Creasey CLA 2007-09-18 10:42:05 EDT
Here is a stack trace that appears to be related

!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
	at org.eclipse.ui.internal.util.Util.getAdapter(Util.java:109)
	at org.eclipse.ui.internal.ShowInMenu.getShowInSource(ShowInMenu.java:212)
	at org.eclipse.ui.internal.ShowInMenu.getContext(ShowInMenu.java:239)
	at org.eclipse.ui.internal.ShowInMenu.fillMenu(ShowInMenu.java:123)
	at org.eclipse.ui.internal.ShowInMenu.fill(ShowInMenu.java:98)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:712)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:442)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:437)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:463)
	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:3991)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3700)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:370)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1555)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1826)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4422)
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:230)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:3768)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3347)
	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:169)
	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:515)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
Comment 2 Tod Creasey CLA 2007-10-18 16:19:32 EDT
This now works but it is goofy as we really want the command in Bug 206815 not the pop up command we are forced to use now.
Comment 3 Markus Keller CLA 2008-01-11 06:00:52 EST
In I20080108-1320, the action has no submenu, is always enabled, and always opens an empty menu (at least for Java problems, where 'Show In > Package Explorer' used to work).
Comment 4 Tod Creasey CLA 2008-03-31 09:22:53 EDT
The fix for 182018 fixed this in M6.
Comment 5 Tod Creasey CLA 2008-03-31 09:23:51 EDT
Verified in I20080327-0100