Bug 517863 - Common use-alias support
Summary: Common use-alias support
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-06 09:49 EDT by Dawid Pakula CLA
Modified: 2020-05-14 10: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 Dawid Pakula CLA 2017-06-06 09:49:59 EDT
Most bigger libs and frameworks suggest to add one use statement and reuse in file via alias. For example:
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;

I think PDT Editor should do two things:
1. If alias already exists, use statement injector should reuse it, this will be huge improvement for common use cases.
2. User (and also maybe extensions) should be able to define default aliases, similar to JDT common "use static".
Comment 1 Dawid Pakula CLA 2020-01-21 11:40:20 EST
*** Bug 363705 has been marked as a duplicate of this bug. ***