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

Bug 312581

Summary: Duplicate templates entries
Product: z_Archived Reporter: Teodor Kirkov <teodor.k>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P1 CC: gadi, ganoro, kalin.a, qiangsheng.w, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
duplicate entries at code templates
none
EclipsePdt-2.2.0.v20100517.JPG
none
EclipsePdt-2.2.0.v20100504.JPG none

Description Teodor Kirkov CLA 2010-05-12 06:56:03 EDT
Build Identifier: 2.2.0.v20100504

At Preferences - PHP - Code Style - Code Templates have duplicate entries for three code templates

Reproducible: Always

Steps to Reproduce:
1. Open Preferences page
2. Go to PHP->Code Style->Code Templates
3. Look at tree in Code 

Expected result:
To haven`t a duplicate entries

Actual result:
Have tree duplicate entries there with no differences at it - see attachment
Comment 1 Teodor Kirkov CLA 2010-05-12 06:58:24 EDT
Created attachment 168116 [details]
duplicate entries at code templates
Comment 2 Zhongwei Zhao CLA 2010-05-12 09:54:16 EDT
Hi Teo

Do you install other plugins except pdt and the required plugins for pdt?

I launch pdt from source code,and what I see is far away from your attachment:(
Comment 3 Zhongwei Zhao CLA 2010-05-12 10:06:19 EDT
By the way,QS has changed something about the template,so I am not sure if this bug still exists:)
Comment 4 Zhongwei Zhao CLA 2010-05-18 23:25:52 EDT
there is no duplicate templates in rc1
Comment 5 Zhongwei Zhao CLA 2010-05-18 23:26:14 EDT
mark as fixed
Comment 6 Gadi Goldbarg CLA 2010-05-20 07:36:58 EDT
Re-tested in EclipsePdt-2.2.0.v20100517
The situation is worse.
A small part of Code templates only exist under Code node in Code templates preferences page.
See the new attachment.
Reopening...
Kalin Yanev
kalin.a@zend.com
Comment 7 Gadi Goldbarg CLA 2010-05-20 07:38:09 EDT
Created attachment 169314 [details]
EclipsePdt-2.2.0.v20100517.JPG
Comment 8 Gadi Goldbarg CLA 2010-05-20 07:38:42 EDT
Created attachment 169315 [details]
EclipsePdt-2.2.0.v20100504.JPG
Comment 9 Zhongwei Zhao CLA 2010-07-12 04:00:18 EDT
fixed already
Comment 10 Gadi Goldbarg CLA 2010-08-23 09:03:51 EDT
[Petyo Tanchev]

Tested on 2.2.0 from 13.08.2010
Issue from Comment 6 is still present.
Comment 11 Zhongwei Zhao CLA 2010-08-25 07:59:21 EDT
Hi Roy

Is not it intentional for comment 6?
Comment 12 Q.S. Wang CLA 2010-09-06 06:21:37 EDT
The comment #6 is refer to the old templates which is wrong. The old templates mixed the code templates with editor templates.
There should be 2 different type of templates:
1. The code templates which is at PHP->Code Style->Code Templates
2. The editor templates which is at php-> editor -> templates.
Comment 13 Kalin CLA 2011-07-22 08:14:22 EDT
Tested in PDT 3.0 - Verified.
Comment 12 was taken into consideration.