Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342319

Summary: Show annotation is disabled in Mac
Product: [Eclipse Project] e4 Reporter: Lakshmi P Shanmugam <lshanmug>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Lakshmi P Shanmugam CLA 2011-04-08 13:18:54 EDT
Build id: I20110312-1300 - 4.1M6

When I right click on the editor margin, the "Show Annotation" item is disabled. 
But, in the history view's context menu, the show annotation menu item is enabled and works fine.
Comment 1 Remy Suen CLA 2011-04-12 09:43:42 EDT
The ShowAnnotationAction doesn't appear to have a selection set for them. 3.x trace as follows.

Thread [main] (Suspended (breakpoint at line 574 in TeamAction))	
	ShowAnnotationAction(TeamAction).updateSelection(IWorkbenchPart, ISelection) line: 574	
	ShowAnnotationAction(TeamAction).setEnabled(Object) line: 567	
	HandlerProxy.setEnabled(Object) line: 232	
	Command.setEnabled(Object) line: 857	
	CommandContributionItem.isEnabled() line: 977	
	CommandContributionItem.updateMenuItem() line: 628	
	CommandContributionItem.update(String) line: 580	
	CommandContributionItem.fill(Menu, int) line: 490	
	MenuManager.doItemFill(IContributionItem, int) line: 737	
	MenuManager.update(boolean, boolean) line: 818	
	MenuManager.handleAboutToShow() line: 470	
	MenuManager.access$1(MenuManager) line: 465	
	MenuManager$2.menuShown(MenuEvent) line: 491	
	TypedListener.handleEvent(Event) line: 247	
	EventTable.sendEvent(Event) line: 84	
	Menu(Widget).sendEvent(Event) line: 1053	
	Menu(Widget).sendEvent(int, Event, boolean) line: 1077	
	Menu(Widget).sendEvent(int) line: 1058	
	Shell(Control).WM_INITMENUPOPUP(int, int) line: 4864	
	Shell(Control).windowProc(int, int, int, int) line: 4540	
	Shell(Canvas).windowProc(int, int, int, int) line: 341	
	Shell(Decorations).windowProc(int, int, int, int) line: 1610	
	Shell.windowProc(int, int, int, int) line: 2059	
	Display.windowProc(int, int, int, int) line: 4967	
	OS.TrackPopupMenu(int, int, int, int, int, int, RECT) line: not available [native method]	
	Menu._setVisible(boolean) line: 256	
	Display.runPopups() line: 4201	
	Display.readAndDispatch() line: 3743
Comment 2 Remy Suen CLA 2011-06-21 14:30:04 EDT
Cannot reproduce with I20110620-1631 on Windows XP.

Lakshmi, please let me know if you still see this problem on a newer build of 4.1, thank you.
Comment 3 Remy Suen CLA 2011-06-21 14:30:14 EDT
Whoops.
Comment 4 Lakshmi P Shanmugam CLA 2011-06-22 07:09:01 EDT
Problem not reproducible with 4.1RC5a Cocoa build.