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

Bug 312733

Summary: Add choise for autocompleting namespace elements
Product: z_Archived Reporter: Zhongwei Zhao <zhaozhongwei>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Zhongwei Zhao CLA 2010-05-12 20:22:52 EDT
Now when we use content assist to aotocomplete a class which belong to a namespace,then the code will be:
namespace mine

{

            use com\example;

 

            class Example

            {

                        public function __construct (example\Class $class)

                        {

                                    ;

                        }

            }

}

But some users prefer:

namespace mine

{

            use com\example\Class;

 

            class Example 

            {

                        public function __construct (Class $class)

                        {

                                    ;

                        }

            }

}


So it is better to add options to let user choose what they prefer in the preference page.
Comment 1 Zhongwei Zhao CLA 2010-05-14 04:38:42 EDT
Now we set the following style(Aliasing a class name) as default:
namespace mine

{

use com\example\Class;

class Example

{

public function __construct (Class $class)

{

;

}

}

}

but user can change this through preference page:PHP->Editor->Content Assist,then uncheck "Insert full qualified name for use statement" checkbox.
Comment 2 Gadi Goldbarg CLA 2010-05-17 09:24:08 EDT
Verified at PDT-2.2.0.v20100517

After unchecked "Insert full qualified name for use statement" checkbox full name is not used at use statement

Closing this issue...

Verified by
Teodor Kirkov
teodor.k@zend.com