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

Bug 317569

Summary: open type/ open method - bad functionality
Product: z_Archived Reporter: Kalin <kalin.a>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: gadi, ganoro
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Kalin CLA 2010-06-22 08:48:23 EDT
Build Identifier: PDT 2.2.0.v20100621

Have php code with classes/methods, e.g.
<?php
class AAA{
	public function ff(){
		
	}
}

class BBB {
	public function jj(){
		
	}
}

Go to main menu | Navigate | Open Type
Type BBB, then double click on the matching result.
The class name BBB is highlighted in editor correctly.
Enter a few (10) new lines above class BBB body.
Save the changes.
Invoke again Open Type (Ctrl+Shift+T), type again BBB, then double click at the matched class BBB in the list of Open Type dialog.

Expected:
The class name BBB should be highlighted in editor.

Actual:
The editor is highlighted on a strange position.


The same problem if you execute the scenario for some method.

See the attachment.





Reproducible: Always
Comment 1 Kalin CLA 2010-06-22 08:49:36 EDT
Created attachment 172409 [details]
screenshot
Comment 2 Zhongwei Zhao CLA 2010-06-24 05:23:59 EDT
fixed in head
Comment 3 Zhongwei Zhao CLA 2010-06-24 05:25:24 EDT
fixed in head
Comment 4 Gadi Goldbarg CLA 2010-08-19 08:54:45 EDT
Verified fixed.
Kalin Yanev
kalin.a@zend.com