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

Bug 327231

Summary: [Regression] Auto Activation of Content Assist is not working after '->'
Product: z_Archived Reporter: Petyo Tanchev <petyo_tanchev>
Component: PDTAssignee: Zhongwei Zhao <zhaozhongwei>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3 CC: ganoro, ilina.s, jacek.pospychala, pavel.galaton
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch jacek.pospychala: iplog+

Description Petyo Tanchev CLA 2010-10-07 09:33:23 EDT
Use a code like this:

<?php
class AAA{
	public function abc(){
		echo "123";
	}
}

class BBB{
	public $yyy;
	function __construct(){
		$this->yyy = new AAA();
	}
}

$zzz = new BBB();

$zzz->|  // Here wait for Auto activation of the Content assist (should be enabled in Preferences)

Expected result: To suggest $yyy (or automatically add it, if option is enabled)

OR:

$zzz->yyy->| // Not working here as well.

Expected: to suggest/add 'abc()' function

In both cases using Ctrl+Space brings the Content assist, or adds the only one option.
Comment 1 xu jiaxi CLA 2010-10-25 01:15:37 EDT
Created attachment 181609 [details]
patch
Comment 2 Zhongwei Zhao CLA 2010-10-25 01:32:28 EDT
fixed in head

Contributed by Xu,thanks!
Comment 3 Zhongwei Zhao CLA 2011-05-12 02:01:01 EDT
change status
Comment 4 Zhongwei Zhao CLA 2011-05-12 04:21:33 EDT
*** Bug 326488 has been marked as a duplicate of this bug. ***
Comment 5 Ilina Stefanova CLA 2011-07-27 08:37:51 EDT
Verified.