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

Bug 323030

Summary: unexpected area in editor was highlighted in case of double click on constant in PHP project outline view
Product: z_Archived Reporter: Kalin <kalin.a>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: P3 CC: gadi, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot
none
patch none

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