Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333524 - Enablement of "show in source" action is problematic
Summary: Enablement of "show in source" action is problematic
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 19:58 EST by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:21 EST (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 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.