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

Bug 331952

Summary: Annotations context menu has been registered globally
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: UIAssignee: Project Inbox <tigerstripe.ui-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
331952 patch
none
331952 empty selection patch none

Description Navid Mehregani CLA 2010-12-06 15:49:17 EST
Build Identifier: 

At the moment when you right click on anything in TS explorer, the annotation context menu is displayed.  These context menu actions should only be displayed on items that you can add an annotation to.

As an example, try right clicking on a Java project in TS explorer.  Notice that annotation context menu actions are displayed.

Reproducible: Always
Comment 1 Anton Salnik CLA 2010-12-16 00:42:41 EST
Created attachment 185290 [details]
331952 patch

Patch attached.
Comment 2 Yuri Strot CLA 2010-12-17 08:21:22 EST
Patch from Anton applied.
Comment 3 Navid Mehregani CLA 2010-12-21 09:52:48 EST
I'm still seeing this issue.  Launched in a new workspace > Right click in problems view (without selecting anything) > Notice annotation contribution is there.
Comment 4 Anton Salnik CLA 2010-12-21 10:40:34 EST
Created attachment 185642 [details]
331952 empty selection patch

Empty selection case was missed. Patch attached.
Comment 5 Yuri Strot CLA 2010-12-21 10:47:53 EST
Applied patch with empty selection handling.
Comment 6 Navid Mehregani CLA 2010-12-21 13:25:00 EST
Looks good. Thanks!