aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-09 01:22:30 (EDT)
committerzzhongwei2012-08-09 01:22:30 (EDT)
commit9d55a560730054e52e7dd841a753535ac6bb8de5 (patch)
treebb67eda5a79ab767d496e0b43023de6370a551f6
parent121d0b8a8326d10ae8111df487567d0dbadd5bb6 (diff)
downloadorg.eclipse.pdt-9d55a560730054e52e7dd841a753535ac6bb8de5.zip
org.eclipse.pdt-9d55a560730054e52e7dd841a753535ac6bb8de5.tar.gz
org.eclipse.pdt-9d55a560730054e52e7dd841a753535ac6bb8de5.tar.bz2
386902: Missing function template for methods that does not belong to a
class. https://bugs.eclipse.org/bugs/show_bug.cgi?id=386902
-rw-r--r--plugins/org.eclipse.php.ui/templates/phpdefault-templates.xml26
1 files changed, 2 insertions, 24 deletions
diff --git a/plugins/org.eclipse.php.ui/templates/phpdefault-templates.xml b/plugins/org.eclipse.php.ui/templates/phpdefault-templates.xml
index 6bd14af..656f7a6 100644
--- a/plugins/org.eclipse.php.ui/templates/phpdefault-templates.xml
+++ b/plugins/org.eclipse.php.ui/templates/phpdefault-templates.xml
@@ -277,29 +277,7 @@ ${cursor}</template>
<template
name="fnc"
description="%description.php.functionStatement"
- id="org.eclipse.php.ui.editor.templates.php.fnc"
- context="php-global-members"
- enabled="true"
- autoinsert="false">function ${function_name}(${dollar}${param}) {
- ${cursor};
-}
-</template>
-
-<template
- name="function"
- description="%description.php.functionStatement"
- id="org.eclipse.php.ui.editor.templates.php.function"
- context="php-global-members"
- enabled="true"
- autoinsert="false">function ${function_name}(${dollar}${param}) {
- ${cursor};
-}
-</template>
-
-<template
- name="fnc"
- description="%description.php.functionStatement"
- id="org.eclipse.php.ui.editor.templates.php.fnc"
+ id="org.eclipse.php.ui.editor.templates.php.fnc1"
context="php-global-members"
enabled="true"
autoinsert="false">function ${function_name}(${dollar}${param}) {
@@ -310,7 +288,7 @@ ${cursor}</template>
<template
name="function"
description="%description.php.functionStatement"
- id="org.eclipse.php.ui.editor.templates.php.function"
+ id="org.eclipse.php.ui.editor.templates.php.function1"
context="php-global-members"
enabled="true"
autoinsert="false">function ${function_name}(${dollar}${param}) {