Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312733 - Add choise for autocompleting namespace elements
Summary: Add choise for autocompleting namespace elements
Status: CLOSED FIXED
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 Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 20:22 EDT by Zhongwei Zhao CLA
Modified: 2020-05-14 11:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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