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

Bug 333524

Summary: Enablement of "show in source" action is problematic
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: ling.hao
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-01-04 19:58:38 EST
After the fix for Bug #329105, the "show in source" action on content outline nodes has been changed such that it enables only when the associated model element has an xml node. The trouble is that there is no reliable way to listen for this state changing. Listening for model element's property changes approximates this in many cases, but it doesn't work with 100% reliability. Here is a failure case repro:

1. Integer -> Simple -> enter any number
2. Show in source
3. Delete just <simple></simple> block or clear Simple property. The show in
source action on Integer node should still be enabled.
4. Now delete <integer></integer> block. The show in source action remains
enabled. 
5. Go back to view, right click on Integer node, and "Show in source" is still
enabled. When selected, it switches to the source view and the entire source is
selected.