Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323030 - unexpected area in editor was highlighted in case of double click on constant in PHP project outline view
Summary: unexpected area in editor was highlighted in case of double click on constant...
Status: REOPENED
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: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 10:17 EDT by Kalin CLA
Modified: 2020-05-14 10:17 EDT (History)
2 users (show)

See Also:


Attachments
screenshot (127.13 KB, image/jpeg)
2010-08-18 10:18 EDT, Kalin CLA
no flags Details
patch (1.99 KB, patch)
2010-09-27 23:13 EDT, Toshihiro Izumi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kalin CLA 2010-08-18 10:17:46 EDT
Build Identifier: 2.2.0.v20100621

Precondition:
PHP project outline view is not opened in PHP Perspective.


Have the following code in php file:

<?php
class A {
    public function example() {
    }
    const test = "free string";
}

class B extends A {
    public function example() {
    
    }
}

Open PHP Project outline view.
Go to Constants node and double click on test

Expected:
the constant test only should be highlighted in editor.

Actual:
Unexpectedly big area of code was highlighted.
See the attached screenshot.

Reproducible: Always
Comment 1 Kalin CLA 2010-08-18 10:18:09 EDT
Created attachment 176893 [details]
screenshot
Comment 2 Zhongwei Zhao CLA 2010-08-18 10:37:13 EDT
could not reproduce this bug in latest pdt code.
Comment 3 Gadi Goldbarg CLA 2010-08-26 04:06:57 EDT
[Petyo Tanchev]

Reproduced on 
PDT Core Plug-in 2.2.1v20100823-1000
PDT UI Plug-in  2.2.1v20100822-1700
Comment 4 Toshihiro Izumi CLA 2010-09-27 23:13:47 EDT
Created attachment 179704 [details]
patch