Bug 239963 - Unselecting Text as checkbox in preferences is not working for 'write' occurences
Summary: Unselecting Text as checkbox in preferences is not working for 'write' occure...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alon Peled CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2008-07-08 09:05 EDT by Sylvia Tancheva CLA
Modified: 2020-05-14 11:08 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 Sylvia Tancheva CLA 2008-07-08 09:05:27 EDT
1. Use the code bellow to observe it
2. Make sure Mark Occurrences is enabled (toggle button on the toolbar or
Window -> Preferences -> PHP ->Editor -> Mark Occurrences)
3. Go to Window -> Preferences -> General -> Editors -> Text Editors ->
Annotations -> PHP elements 'write' occurrences
4. Unselect the 'Text as' check-box -> Apply -> OK 
5. Click on $aaa (any)

Expected: The write occurrence on the 1st line is not highlighted
Actual: Still highlighted in orange

Note 1: The same performed on 'read' occurrences takes the expected effect
Note 2: Only when also 'read' occurrences 'Text as' is unselected, unselecting 'Text as' in 'write' occurrences will take effect.
Comment 1 Sylvia Tancheva CLA 2008-07-08 09:09:24 EDT
Sample code

<?php
$aaa="Hello";
function foo()
{
	global $aaa;
	echo $aaa;
}
foo();
?>
Comment 2 Alon Peled CLA 2008-09-09 08:46:49 EDT
fixed
Comment 3 Gadi Goldbarg CLA 2008-10-05 10:37:34 EDT
fixed