36732b0ffebd356220842af19d419cfc8f629a79
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4    <extension
5                  point="org.eclipse.ui.perspectives">
6           <perspective
7                         name="%perspectivePHP.name"
8                         icon="icons/obj16/php.png"
9                         class="net.sourceforge.phpeclipse.ui.PHPPerspectiveFactory"
10                         id="net.sourceforge.phpeclipse.ui.PHPPerspective">
11           </perspective>
12    </extension>
13
14    <extension
15          point="org.eclipse.core.runtime.preferences">
16       <initializer class="net.sourceforge.phpeclipse.xml.ui.internal.preferences.XMLPreferenceInitializer"/>
17    </extension>
18
19    <extension
20                  point="org.eclipse.ui.editors">
21           <editor
22                         name="%phpEditorName"
23                         default="true"
24                         icon="icons/obj16/phpedit.gif"
25                         contributorClass="net.sourceforge.phpeclipse.phpeditor.CompilationUnitEditorActionContributor"
26                         class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
27                         symbolicFontName="net.sourceforge.phpdt.ui.editors.textfont"
28                         id="net.sourceforge.phpeclipse.PHPUnitEditor">
29                         <contentTypeBinding
30                            contentTypeId="net.sourceforge.phpeclipse.phpSource"
31                         />
32           </editor>
33    </extension>
34
35    <extension
36                  id="net.sourceforge.phpeclipse.JavaDocumentSetupParticipant"
37                  name="%javaDocumentSetupParticipant"
38                  point="org.eclipse.core.filebuffers.documentSetup">
39           <participant
40                         contentTypeId="net.sourceforge.phpeclipse.phpSource"
41                         class="net.sourceforge.phpeclipse.phpeditor.JavaDocumentSetupParticipant">
42           </participant>
43    </extension>
44    <extension
45                  id="net.sourceforge.phpeclipse.JavaDocumentFactory"
46                  name="%javaDocumentFactory"
47                  point="org.eclipse.core.filebuffers.documentCreation">
48           <factory
49                         contentTypeId="net.sourceforge.phpeclipse.phpSource"
50                         class="net.sourceforge.phpeclipse.phpeditor.JavaDocumentFactory">
51           </factory>
52    </extension>
53
54 <extension
55           point="net.sourceforge.phpeclipse.phpEditorTextHovers">
56    <hover
57                  class="net.sourceforge.phpdt.internal.ui.text.java.hover.JavaSourceHover"
58                  id="net.sourceforge.phpdt.ui.JavaSourceHover"
59                  label="%sourceHover"
60                  description="%sourceHoverDescription">
61    </hover>
62    <hover
63                         label="%problemHover"
64                         description="%problemHoverDescription"
65                         class="net.sourceforge.phpdt.internal.ui.text.java.hover.ProblemHover"
66                         id="net.sourceforge.phpdt.ui.ProblemHover">
67    </hover>
68    <hover
69                  class="net.sourceforge.phpdt.internal.ui.text.java.hover.AnnotationHover"
70                  id="net.sourceforge.phpdt.ui.AnnotationHover"
71                  label="%annotationHover"
72                  description="%annotationHoverDescription">
73    </hover>
74    </extension>
75
76
77    <extension
78           point="net.sourceforge.phpeclipse.phpEditorTextHovers">
79    <hover
80                  class="net.sourceforge.phpdt.internal.ui.text.java.hover.BestMatchHover"
81                  id="net.sourceforge.phpdt.ui.BestMatchHover"
82                  label="%sequentialHover"
83                  description="%sequentialHoverDescription">
84    </hover>
85    </extension>
86
87    <extension
88                  point="org.eclipse.ui.perspectiveExtensions">
89           <perspectiveExtension
90                         targetID="net.sourceforge.phpeclipse.PHPPerspective">
91                            <showInPart id="net.sourceforge.phpeclipse.webbrowser.view" />
92                            <showInPart id="org.eclipse.ui.views.ResourceNavigator" />
93           </perspectiveExtension>
94    </extension>
95
96    <extension
97                  point="org.eclipse.ui.newWizards">
98           <category
99                         name="%newWizardCategory.name"
100                         id="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP">
101           </category>
102           <wizard
103                         name="%newWizardPHPProject.name"
104                         icon="icons/obj16/php.png"
105                         category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
106                         class="net.sourceforge.phpeclipse.wizards.NewProjectCreationWizard"
107                         project="true"
108                         id="net.sourceforge.phpeclipse.wizards.NewWizardProjectCreation">
109                  <description>
110                         Create a new PHP project.
111                  </description>
112           </wizard>
113
114           <wizard
115                         name="%newWizardPHPFile.name"
116                         icon="icons/obj16/phpedit.gif"
117                         category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
118                         class="net.sourceforge.phpeclipse.wizards.PHPFileWizard"
119                         id="net.sourceforge.phpeclipse.wizards.PHPFileWizard">
120                  <description>
121                         Create a basic PHP file.
122                  </description>
123           </wizard>
124           <wizard
125                         name="%newWizardHTMLFile.name"
126                         icon="icons/obj16/htmledit.gif"
127                         category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
128                         class="net.sourceforge.phpeclipse.wizards.HTMLFileWizard"
129                         id="net.sourceforge.phpeclipse.wizards.HTMLFileWizard">
130                  <description>
131                         Create a basic HTML file.
132                  </description>
133           </wizard>
134    </extension>
135
136    <extension
137                  point="org.eclipse.ui.actionSetPartAssociations">
138           <actionSetPartAssociation
139                         targetID="net.sourceforge.phpeclipse.ui.CodingActionSet">
140                  <part id="net.sourceforge.phpeclipse.PHPUnitEditor" />
141           </actionSetPartAssociation>
142    </extension>
143
144 <!-- =========================================================================== -->
145 <!-- PHP Editor Action Definition IDs -->
146 <!-- =========================================================================== -->
147
148         <!-- FIXME: there is too much duplication of contributions pointing to the same action. we should find a better way-->
149    <extension
150                  point="org.eclipse.ui.popupMenus">
151           <!-- php, phpc,php3,php4,php5,phpt-->
152           <objectContribution
153                         objectClass="org.eclipse.core.resources.IFile"
154                         nameFilter="*.php*"
155                         id="net.sourceforge.phpeclipse.actions.popupShowAction.phpS">
156                  <action
157                            label="Open PHP Browser"
158                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
159                            menubarPath="additions"
160                            id="net.sourceforge.phpeclipse.actions.showAction">
161                  </action>
162           </objectContribution>
163
164           <!-- cake PHP support -->
165           <objectContribution
166                         objectClass="org.eclipse.core.resources.IFile"
167                         nameFilter="*.ctp"
168                         id="net.sourceforge.phpeclipse.actions.popupShowAction.ctp">
169                  <action
170                            label="Open PHP Browser"
171                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
172                            menubarPath="additions"
173                            id="net.sourceforge.phpeclipse.actions.showAction">
174                  </action>
175           </objectContribution>
176           <objectContribution
177                         objectClass="org.eclipse.core.resources.IFile"
178                         nameFilter="*.module"
179                         id="net.sourceforge.phpeclipse.actions.popupShowAction.module">
180                  <action
181                            label="Open PHP Browser"
182                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
183                            menubarPath="additions"
184                            id="net.sourceforge.phpeclipse.actions.showAction">
185                  </action>
186           </objectContribution>
187           <objectContribution
188                         objectClass="org.eclipse.core.resources.IFile"
189                         nameFilter="*.inc"
190                         id="net.sourceforge.phpeclipse.actions.popupShowAction.inc">
191                  <action
192                            label="Open PHP Browser"
193                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
194                            menubarPath="additions"
195                            id="net.sourceforge.phpeclipse.actions.showAction">
196                  </action>
197           </objectContribution>
198           <objectContribution
199                         objectClass="org.eclipse.core.resources.IFile"
200                         nameFilter="*.phtml"
201                         id="net.sourceforge.phpeclipse.actions.popupShowAction.phtml">
202                  <action
203                            label="Open PHP Browser"
204                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
205                            menubarPath="additions"
206                            id="net.sourceforge.phpeclipse.actions.showAction">
207                  </action>
208           </objectContribution>
209           <objectContribution
210                         objectClass="org.eclipse.core.resources.IFile"
211                         nameFilter="*.htm*"
212                         id="net.sourceforge.phpeclipse.actions.popupShowAction.html">
213                  <action
214                            label="Open PHP Browser"
215                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
216                            menubarPath="additions"
217                            id="net.sourceforge.phpeclipse.actions.showAction">
218                  </action>
219           </objectContribution>
220           <objectContribution
221                         objectClass="org.eclipse.core.resources.IFile"
222                         nameFilter="*.xml"
223                         id="net.sourceforge.phpeclipse.actions.popupShowAction.xml">
224                  <action
225                            label="Open PHP Browser"
226                            class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
227                            menubarPath="additions"
228                            id="net.sourceforge.phpeclipse.actions.showAction">
229                  </action>
230           </objectContribution>
231
232           <!-- Viewers -->
233           <viewerContribution
234                         targetID="#PHPEditorContext"
235                         id="net.sourceforge.phpeclipse.actions.popupHTMLWizard">
236                  <action
237                            label="Insert HTML (dl,ul,ol,table)"
238                            class="net.sourceforge.phpeclipse.wizards.html.InsertHTMLElementAction"
239                            menubarPath="additions"
240                            id="net.sourceforge.phpeclipse.actions.wizards.html">
241                  </action>
242           </viewerContribution>
243           <viewerContribution
244                         targetID="#PHPEditorContext"
245                         id="net.sourceforge.phpeclipse.actions.popupOpenAllIncludes">
246                  <action
247                            label="Open Included Files List"
248                            class="net.sourceforge.phpeclipse.actions.PHPOpenAllIncludesEditorAction"
249                            menubarPath="additions"
250                            id="net.sourceforge.phpeclipse.actions.openallincludes">
251                  </action>
252           </viewerContribution>
253           <viewerContribution
254                         targetID="#PHPEditorContext"
255                         id="net.sourceforge.phpeclipse.actions.popupOpenDeclaration">
256                  <action
257                            label="%OpenDeclaration"
258                            class="net.sourceforge.phpeclipse.actions.PHPOpenDeclarationEditorAction"
259                            menubarPath="additions"
260                            definitionId="net.sourceforge.phpeclipse.actions.opendeclaration"
261                            id="net.sourceforge.phpeclipse.actions.PHPOpenDeclarationEditorAction">
262                  </action>
263           </viewerContribution>
264           <viewerContribution
265                         targetID="#PHPRulerContext"
266                         id="net.sourceforge.phpdt.ui.PHPEditorPopupActions">
267                  <action
268                            label="%AddTask.label"
269                            helpContextId="org.eclipse.ui.AddTask_action_context"
270                            class="org.eclipse.ui.texteditor.TaskRulerAction"
271                            menubarPath="add"
272                            id="org.eclipse.ui.texteditor.TaskRulerAction">
273                  </action>
274                  <action
275                            label="%AddBookmark.label"
276                            helpContextId="org.eclipse.ui.bookmark_action_context"
277                            class="org.eclipse.ui.texteditor.BookmarkRulerAction"
278                            menubarPath="add"
279                            id="org.eclipse.ui.texteditor.BookmarkRulerAction">
280                  </action>
281           </viewerContribution>
282    </extension>
283
284    <extension point="org.eclipse.ui.exportWizards">
285          <wizard name="%ExportWizards.Obfuscator"
286                          icon="icons/ctool16/exportdir_wiz.gif"
287                          class="net.sourceforge.phpeclipse.obfuscator.export.ObfuscatorExportWizard"
288                          id="net.sourceforge.phpeclipse.obfuscator.export.ObfuscatorExportWizard">
289          <description>%ExportWizards.ObfuscatorDescription</description>
290          <selection class="org.eclipse.core.resources.IResource" />
291          </wizard>
292   </extension>
293    <extension
294                  point="org.eclipse.ui.ide.projectNatureImages">
295           <image
296                         icon="icons/ovr16/php_ovr2.gif"
297                         natureId="net.sourceforge.phpeclipse.phpnature"
298                         id="net.sourceforge.phpeclipse.ProjectNatureImagePHP">
299           </image>
300    </extension>
301    <extension
302                  point="org.eclipse.ui.propertyPages">
303           <page
304          class="net.sourceforge.phpdt.internal.ui.preferences.TodoTaskPropertyPage"
305          icon="icons/obj16/php.png"
306          id="net.sourceforge.phpdt.ui.propertyPages.TodoTaskPropertyPage"
307          name="%todoPageName"
308          objectClass="org.eclipse.core.resources.IProject">
309                  <filter
310                            name="nature"
311                            value="net.sourceforge.phpeclipse.phpnature">
312                  </filter>
313           </page>
314           <page
315          class="net.sourceforge.phpdt.internal.ui.preferences.TodoTaskPropertyPage"
316          icon="icons/obj16/php.png"
317          id="net.sourceforge.phpdt.ui.propertyPages.TodoTaskPropertyPage"
318          name="%todoPageName"
319          objectClass="net.sourceforge.phpdt.core.IJavaProject">
320                  <filter
321                            name="nature"
322                            value="net.sourceforge.phpeclipse.phpnature">
323                  </filter>
324           </page>
325                         <page
326          class="net.sourceforge.phpdt.internal.ui.preferences.CompilerPropertyPage"
327          icon="icons/obj16/php.png"
328          id="net.sourceforge.phpdt.ui.propertyPages.CompilerPropertyPage"
329          name="%compilerPageName"
330          objectClass="org.eclipse.core.resources.IProject">
331                  <filter
332                            name="nature"
333                            value="net.sourceforge.phpeclipse.phpnature">
334                  </filter>
335           </page>
336           <page
337          class="net.sourceforge.phpdt.internal.ui.preferences.CompilerPropertyPage"
338          icon="icons/obj16/php.png"
339          id="net.sourceforge.phpdt.ui.propertyPages.CompilerPropertyPage"
340          name="%compilerPageName"
341          objectClass="net.sourceforge.phpdt.core.IJavaProject">
342                  <filter
343                            name="nature"
344                            value="net.sourceforge.phpeclipse.phpnature">
345                  </filter>
346           </page>
347    </extension>
348
349    <extension
350                  point="org.eclipse.ui.actionSets">
351           <actionSet
352                         label="%OpenActionSet.label"
353                         description="%OpenActionSet.description"
354                         visible="false"
355                         id="net.sourceforge.phpeclipse.ui.A_OpenActionSet">
356                  <action
357                            definitionId="net.sourceforge.phpeclipse.ui.edit.text.java.open.editor"
358                            label="%OpenDeclaration"
359                            tooltip="%OpenDeclaration"
360                            retarget="true"
361                            menubarPath="navigate/open.ext"
362                            allowLabelUpdate="true"
363                            id="net.sourceforge.phpeclipse.ui.actions.Open">
364                  </action>
365           </actionSet>
366    </extension>
367    <extension
368                  point="org.eclipse.ui.editorActions">
369           <editorContribution
370                         id="org.eclipse.ui.texteditor.ruler.actions"
371                         targetID="net.sourceforge.phpeclipse.PHPUnitEditor">
372                 <action
373                         id="org.eclipse.ui.texteditor.BookmarkRulerAction"
374                         actionID="RulerDoubleClick"
375                         label="%Dummy.label"
376                         helpContextId="org.eclipse.ui.bookmark_action_context"
377                         class="org.eclipse.ui.texteditor.BookmarkRulerAction">
378                 </action>
379                 <action
380                         label="%Dummy.label"
381                         class="net.sourceforge.phpeclipse.phpeditor.JavaSelectRulerAction"
382                         actionID="RulerClick"
383                         id="net.sourceforge.phpeclipse.phpeditor.JavaSelectRulerAction">
384                 </action>
385           </editorContribution>
386           <editorContribution
387                         id="net.sourceforge.phpdt.editor.actions"
388                         targetID="net.sourceforge.phpeclipse.PHPUnitEditor">
389                  <action
390                            definitionId="net.sourceforge.phpeclipse.actions.opendeclaration"
391                            label="%OpenDeclaration"
392                            class="net.sourceforge.phpeclipse.actions.PHPOpenDeclarationEditorAction"
393                            id="net.sourceforge.phpeclipse.actions.PHPOpenDeclarationEditorAction">
394                  </action>
395           </editorContribution>
396    </extension>
397    <extension
398                  point="org.eclipse.ui.popupMenus">
399           <viewerContribution
400                         targetID="#CompilationUnitRulerContext"
401                         id="net.sourceforge.phpeclipse.phpeditor.QuickFixRulerMenuAction">
402                  <action
403                            label="%Dummy.label"
404                            helpContextId="net.sourceforge.phpeclipse.quick_fix_action"
405                            class="net.sourceforge.phpeclipse.phpeditor.JavaSelectRulerAction"
406                            menubarPath="additions"
407                            id="net.sourceforge.phpeclipse.phpeditor.JavaSelectRulerMenuAction">
408                  </action>
409           </viewerContribution>
410    </extension>
411    <extension
412                  point="org.eclipse.ui.popupMenus">
413           <viewerContribution
414                         targetID="#CompilationUnitRulerContext"
415                         id="net.sourceforge.phpdt.ui.CompilationUnitEditorPopupActions">
416                  <action
417                            label="%AddTask.label"
418                            helpContextId="org.eclipse.ui.AddTask_action_context"
419                            tooltip="%AddTask.tooltip"
420                            class="org.eclipse.ui.texteditor.TaskRulerAction"
421                            menubarPath="add"
422                            id="org.eclipse.ui.texteditor.TaskRulerAction">
423                  </action>
424                  <action
425                            label="%AddBookmark.label"
426                            helpContextId="org.eclipse.ui.bookmark_action_context"
427                            tooltip="%AddBookmark.tooltip"
428                            class="org.eclipse.ui.texteditor.BookmarkRulerAction"
429                            menubarPath="add"
430                            id="org.eclipse.ui.texteditor.BookmarkRulerAction">
431                  </action>
432                  <menu
433                         id="projection"
434                         label="%Folding.label"
435                         path="rest">
436                  </menu>
437                  <action
438                            label="%Dummy.label"
439                            tooltip="%Dummy.label"
440                            class="net.sourceforge.phpdt.internal.ui.actions.FoldingExpandAllRulerAction"
441                            menubarPath="projection/additions"
442                            definitionId="org.eclipse.ui.edit.text.folding.expand_all"
443                            id="net.sourceforge.phpdt.ui.folding.expandAll">
444                  </action>
445                  <action
446                            label="%Dummy.label"
447                            tooltip="%Dummy.label"
448                            class="net.sourceforge.phpdt.internal.ui.actions.FoldingToggleRulerAction"
449                            menubarPath="projection/additions"
450                            definitionId="org.eclipse.ui.edit.text.folding.toggle"
451                            id="net.sourceforge.phpdt.ui.folding.toggle">
452                  </action>
453           </viewerContribution>
454    </extension>
455
456
457
458  <!-- =========================================================================== -->
459 <!-- PHPDT/UI command definitions                                                   -->
460 <!-- =========================================================================== -->
461    <extension point="org.eclipse.ui.contexts">
462           <context name="%context.editingPHPSource.name"
463            description="%context.editingPHPSource.description"
464            parentId="org.eclipse.ui.textEditorScope"
465            id="net.sourceforge.phpdt.ui.phpEditorScope" />
466    </extension>
467    <extension
468                  point="org.eclipse.ui.commands">
469           <category
470                         name="%category.source.name"
471                         description="%category.source.description"
472                         id="net.sourceforge.phpeclipse.ui.category.source">
473           </category>
474
475  <!-- source -->
476           <command
477                         name="%ActionDefinition.comment.name"
478                         description="%ActionDefinition.comment.description"
479                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
480                         id="net.sourceforge.phpeclipse.phpeditor.comment">
481           </command>
482           <command
483                         name="%ActionDefinition.uncomment.name"
484                         description="%ActionDefinition.uncomment.description"
485                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
486                         id="net.sourceforge.phpeclipse.phpeditor.uncomment">
487           </command>
488           <command
489                         name="%ActionDefinition.toggleComment.name"
490                         description="%ActionDefinition.toggleComment.description"
491                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
492                         id="net.sourceforge.phpeclipse.phpeditor.toggle.comment">
493           </command>
494
495           <command
496                         name="%ActionDefinition.addBlockComment.name"
497                         description="%ActionDefinition.addBlockComment.description"
498                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
499                         id="net.sourceforge.phpeclipse.phpeditor.add.block.comment">
500           </command>
501           <command
502                         name="%ActionDefinition.removeBlockComment.name"
503                         description="%ActionDefinition.removeBlockComment.description"
504                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
505                         id="net.sourceforge.phpeclipse.phpeditor.remove.block.comment">
506           </command>
507           <command
508                         name="%ActionDefinition.indent.name"
509                         description="%ActionDefinition.indent.description"
510                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
511                         id="net.sourceforge.phpeclipse.phpeditor.indent">
512           </command>
513           <command
514                         name="%ActionDefinition.format.name"
515                         description="%ActionDefinition.format.description"
516                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
517                         id="net.sourceforge.phpeclipse.phpeditor.format">
518           </command>
519
520           <!-- navigate -->
521           <command
522                         name="%ActionDefinition.gotoNextMember.name"
523                         description="%ActionDefinition.gotoNextMember.description"
524                         categoryId="org.eclipse.ui.category.navigate"
525                         id="net.sourceforge.phpeclipse.ui.edit.text.php.goto.next.member">
526           </command>
527           <command
528                         name="%ActionDefinition.gotoPreviousMember.name"
529                         description="%ActionDefinition.gotoPreviousMember.description"
530                         categoryId="org.eclipse.ui.category.navigate"
531                         id="net.sourceforge.phpeclipse.ui.edit.text.php.goto.previous.member">
532           </command>
533           <command
534                         name="%ActionDefinition.gotoMatchingBracket.name"
535                         description="%ActionDefinition.gotoMatchingBracket.description"
536                         categoryId="org.eclipse.ui.category.navigate"
537                         id="net.sourceforge.phpeclipse.ui.edit.text.php.goto.matching.bracket">
538           </command>
539           <command
540                         name="%OpenDeclaration"
541                         description="%OpenDeclaration"
542                         categoryId="net.sourceforge.phpeclipse.ui.category.source"
543                         id="net.sourceforge.phpeclipse.actions.opendeclaration">
544           </command>
545    </extension>
546
547
548    <extension
549                  point="org.eclipse.ui.preferencePages">
550           <page name="PHP"
551                         category="net.sourceforge.phpeclipse.ui.preferencePage"
552                         class="net.sourceforge.phpdt.internal.ui.preferences.JavaEditorPreferencePage"
553                         id="net.sourceforge.phpeclipse.preferences.PHPPreferencePage">
554           </page>
555           <page
556                         name="Code Templates"
557                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
558                         class="net.sourceforge.phpdt.internal.ui.preferences.CodeTemplatePreferencePage"
559                         id="net.sourceforge.phpeclipse.preference.CodeTemplatePreferencePage">
560           </page>
561           <page
562                         name="%compilerOptionsPrefName"
563                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
564                         class="net.sourceforge.phpdt.internal.ui.preferences.CompilerPreferencePage"
565                         id="net.sourceforge.phpeclipse.preference.CompilerPreferencePage">
566           </page>
567           <page
568                         name="%todoTaskPrefName"
569                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
570                         class="net.sourceforge.phpdt.internal.ui.preferences.TodoTaskPreferencePage"
571                         id="net.sourceforge.phpeclipse.preference.TodoTaskPreferencePage">
572           </page>
573           <page
574                         name="Formatter"
575                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
576                         class="net.sourceforge.phpdt.internal.ui.preferences.CodeFormatterPreferencePage"
577                         id="net.sourceforge.phpeclipse.preference.CodeFormatterPreferencePage">
578           </page>
579           <page name="%codeAssistPageName"
580                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
581                         class="net.sourceforge.phpdt.internal.ui.preferences.CodeAssistPreferencePage"
582                         id="net.sourceforge.phpdt.internal.ui.preferences.CodeAssistPreferencePage">
583           </page>
584       <page name="%editorPageName"
585             category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
586             class="net.sourceforge.phpdt.internal.ui.preferences.EditorPreferencePage"
587             id="net.sourceforge.phpdt.internal.ui.preferences.EditorPreferencePage">
588       </page>
589       <page
590                         name="%templatePageName"
591                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
592                         class="net.sourceforge.phpdt.internal.ui.preferences.JavaTemplatePreferencePage"
593                         id="net.sourceforge.phpeclipse.preference.TemplatePreferencePage">
594           </page>
595           <page
596                         name="%spellingPrefName"
597                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
598                         class="net.sourceforge.phpdt.internal.ui.preferences.SpellingPreferencePage"
599                         id = "net.sourceforge.phpdt.internal.ui.preferences.SpellingPreferencePage">
600           </page>
601           <page
602                         name="%editorMarkOccurrencesPage"
603                         category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
604                         class="net.sourceforge.phpdt.internal.ui.preferences.MarkOccurrencesPreferencePage"
605                         id="net.sourceforge.phpdt.internal.ui.preferences.MarkOccurrencesPreferencePage">
606           </page>
607    </extension>
608
609
610
611 <!-- Extensions -->
612
613         <extension
614                 point= "net.sourceforge.phpeclipse.foldingStructureProviders">
615                 <provider
616                         id="net.sourceforge.phpdt.ui.text.defaultFoldingProvider"
617                         name= "%defaultFoldingStructureProviderName"
618                         class="net.sourceforge.phpdt.internal.ui.text.folding.DefaultJavaFoldingStructureProvider"
619                         preferencesClass="net.sourceforge.phpdt.internal.ui.text.folding.DefaultJavaFoldingPreferenceBlock">
620                 </provider>
621         </extension>
622
623 <!-- =========================================================================== -->
624 <!-- Filter Support                                                              -->
625 <!-- =========================================================================== -->
626    <extension
627                  point="net.sourceforge.phpeclipse.phpElementFilters">
628 <!-- Outline Page -->
629           <filter
630                         targetId="net.sourceforge.phpeclipse.JavaOutlinePage"
631                         name="%HideImportDeclaration.label"
632                         enabled="false"
633                         description="%HideImportDeclaration.description"
634                         class="net.sourceforge.phpdt.internal.ui.filters.ImportDeclarationFilter"
635                         id="net.sourceforge.phpeclipse.JavaOutlinePage.ImportDeclarationFilter">
636           </filter>
637    </extension>
638
639 <!-- =========================================================================== -->
640 <!-- Templates                                                                   -->
641 <!-- =========================================================================== -->
642    <extension
643                  point="org.eclipse.ui.editors.templates">
644           <contextType
645                         name="%templates.php.contextType.name"
646                         class="net.sourceforge.phpdt.internal.corext.template.php.JavaContextType"
647                         id="java">
648           </contextType>
649           <contextType
650                         name="%templates.phpdoc.contextType.name"
651                         class="net.sourceforge.phpdt.internal.corext.template.php.JavaDocContextType"
652                         id="javadoc">
653           </contextType>
654           <contextType
655                         name="%templates.html.contextType.name"
656                         class="net.sourceforge.phpdt.internal.corext.template.php.HTMLContextType"
657                         id="javadoc">
658           </contextType>
659           <include
660                           file="templates/default-templates.xml"
661                           translations="templates/default-templates.properties">
662           </include>
663           <include
664                           file="templates/default-codetemplates.xml"
665                           translations="templates/default-templates.properties">
666           </include>
667    </extension>
668    <extension
669                  point="org.eclipse.ui.bindings">
670           <key
671                         sequence="Ctrl+Shift+C"
672                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
673                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
674                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
675           </key>
676           <key
677                         sequence="Ctrl+/"
678                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
679                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
680                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
681           </key>
682           <key
683                            sequence="Ctrl+7"
684                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
685                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
686                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
687           </key>
688           <key
689                         platform="carbon"
690                         sequence="Ctrl+Shift+C"
691                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
692                         commandId=""
693                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
694           </key>
695           <key
696                         platform="carbon"
697                         sequence="Command+Shift+C"
698                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
699                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
700                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
701           </key>
702           <key
703                         platform="carbon"
704                         sequence="Ctrl+/"
705                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
706                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
707                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
708           </key>
709           <key
710                         platform="carbon"
711                         sequence="Command+/"
712                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
713                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
714                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
715           </key>
716           <key
717                         platform="carbon"
718                         sequence="Ctrl+7"
719                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
720                         commandId=""
721                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
722           </key>
723           <key
724                         platform="carbon"
725                         sequence="Command+7"
726                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
727                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
728                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
729           </key>
730           <key
731                         platform="gtk"
732                         sequence="Ctrl+Shift+C"
733                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
734                         commandId=""
735                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
736           </key>
737           <key
738                         platform="gtk"
739                         sequence="Esc Ctrl+C"
740                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
741                         commandId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
742                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
743           </key>
744           <key
745                         sequence="Ctrl+Shift+/"
746                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
747                         commandId="net.sourceforge.phpeclipse.phpeditor.add.block.comment"
748                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
749           </key>
750           <key
751                         platform="carbon"
752                         sequence="Ctrl+Shift+/"
753                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
754                         commandId=""
755                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
756           </key>
757           <key
758                         platform="carbon"
759                         sequence="Command+Shift+/"
760                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
761                         commandId="net.sourceforge.phpeclipse.phpeditor.add.block.comment"
762                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
763           </key>
764           <key
765                         sequence="Ctrl+Shift+\"
766                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
767                         commandId="net.sourceforge.phpeclipse.phpeditor.remove.block.comment"
768                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
769           </key>
770           <key
771                         platform="carbon"
772                         sequence="Ctrl+Shift+\"
773                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
774                         commandId=""
775                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
776           </key>
777           <key
778                         platform="carbon"
779                         sequence="Command+Shift+\"
780                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
781                         commandId="net.sourceforge.phpeclipse.phpeditor.remove.block.comment"
782                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
783           </key>
784           <key
785                         sequence="Ctrl+I"
786                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
787                         commandId="net.sourceforge.phpeclipse.phpeditor.indent"
788                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
789           </key>
790           <key
791                         sequence="Ctrl+Shift+F"
792                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
793                         commandId="net.sourceforge.phpeclipse.phpeditor.format"
794                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
795           </key>
796           <key
797                         platform="carbon"
798                         sequence="Ctrl+Shift+F"
799                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
800                         commandId=""
801                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
802           </key>
803           <key
804                         platform="carbon"
805                         sequence="Command+Shift+F"
806                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
807                         commandId="net.sourceforge.phpeclipse.phpeditor.format"
808                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
809           </key>
810           <key
811                         platform="gtk"
812                         sequence="Ctrl+Shift+F"
813                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
814                         commandId=""
815                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
816           </key>
817           <key
818                         platform="gtk"
819                         sequence="Esc Ctrl+F"
820                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
821                         commandId="net.sourceforge.phpeclipse.phpeditor.format"
822                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
823           </key>
824           <key
825                         sequence="Ctrl+Shift+ARROW_DOWN"
826                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
827                         commandId="net.sourceforge.phpeclipse.ui.edit.text.php.goto.next.member"
828                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
829           </key>
830           <key
831                         platform="carbon"
832                         sequence="Ctrl+Shift+ARROW_DOWN"
833                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
834                         commandId=""
835                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
836           </key>
837           <key
838                         platform="carbon"
839                         sequence="Command+Shift+ARROW_DOWN"
840                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
841                         commandId="net.sourceforge.phpeclipse.ui.edit.text.php.goto.next.member"
842                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
843           </key>
844           <key
845                         sequence="Ctrl+Shift+ARROW_UP"
846                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
847                         commandId="net.sourceforge.phpeclipse.ui.edit.text.php.goto.previous.member"
848                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
849           </key>
850           <key
851                         platform="carbon"
852                         sequence="Ctrl+Shift+ARROW_UP"
853                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
854                         commandId=""
855                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
856           </key>
857           <key
858                         platform="carbon"
859                         sequence="Command+Shift+ARROW_UP"
860                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
861                         commandId="net.sourceforge.phpeclipse.ui.edit.text.php.goto.previous.member"
862                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
863           </key>
864           <key
865                         sequence="Ctrl+Shift+P"
866                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
867                         commandId="net.sourceforge.phpeclipse.ui.edit.text.php.goto.matching.bracket"
868                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
869           </key>
870           <key
871                         platform="carbon"
872                         sequence="Ctrl+Shift+P"
873                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
874                         commandId=""
875                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
876           </key>
877           <key
878                         platform="carbon"
879                         sequence="Command+Shift+P"
880                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
881                         commandId="net.sourceforge.phpeclipse.ui.edit.text.php.goto.matching.bracket"
882                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
883           </key>
884           <key
885                         sequence="F3"
886                         contextId="net.sourceforge.phpdt.ui.phpEditorScope"
887                         commandId="net.sourceforge.phpeclipse.actions.opendeclaration"
888                         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
889           </key>
890    </extension>
891
892
893
894           <extension
895                  point="org.eclipse.ui.fontDefinitions">
896           <fontDefinition
897                         label="%phpEditorFontDefiniton.label"
898                         defaultsTo="org.eclipse.jface.textfont"
899                         id="net.sourceforge.phpdt.ui.editors.textfont">
900                  <description>
901                         %phpEditorFontDefintion.description
902                  </description>
903           </fontDefinition>
904    </extension>
905    <extension
906                  point="org.eclipse.ui.editors.annotationTypes">
907           <type
908                  name="net.sourceforge.phpdt.ui.error"
909                  super="org.eclipse.ui.workbench.texteditor.error"
910                  markerType="net.sourceforge.phpeclipse.problem"
911                  markerSeverity="2">
912           </type>
913           <type
914                  name="net.sourceforge.phpdt.ui.warning"
915                  super="org.eclipse.ui.workbench.texteditor.warning"
916                  markerType="net.sourceforge.phpeclipse.problem"
917                  markerSeverity="1">
918           </type>
919           <type
920                  name="net.sourceforge.phpdt.ui.info"
921                  super="org.eclipse.ui.workbench.texteditor.info"
922                  markerType="net.sourceforge.phpeclipse.problem"
923                  markerSeverity="0">
924           </type>
925           <type
926                  name="net.sourceforge.phpdt.ui.occurrences">
927           </type>
928    </extension>
929    <extension
930                  point="org.eclipse.ui.editors.markerAnnotationSpecification">
931           <specification
932                         annotationType="net.sourceforge.phpdt.ui.error"
933                         annotationImageProvider="net.sourceforge.phpeclipse.phpeditor.JavaAnnotationImageProvider">
934           </specification>
935           <specification
936                         annotationType="net.sourceforge.phpdt.ui.warning"
937                         annotationImageProvider="net.sourceforge.phpeclipse.phpeditor.JavaAnnotationImageProvider">
938           </specification>
939           <specification
940                         annotationType="net.sourceforge.phpdt.ui.info"
941                         annotationImageProvider="net.sourceforge.phpeclipse.phpeditor.JavaAnnotationImageProvider">
942           </specification>
943           <specification
944                         annotationType="org.eclipse.debug.core.breakpoint"
945                         icon="icons/full/obj16/brkp_obj.gif"
946                         annotationImageProvider="net.sourceforge.phpeclipse.phpeditor.BreakpointImageProvider">
947           </specification>
948           <specification
949                         annotationType="net.sourceforge.phpdt.ui.occurrences"
950                         label="%OccurrenceAnnotation.label"
951                         icon="icons/obj16/searchm_obj.gif"
952                         textPreferenceKey="occurrenceIndication"
953                         textPreferenceValue="false"
954                         highlightPreferenceKey="occurrenceHighlighting"
955                         highlightPreferenceValue="true"
956                         overviewRulerPreferenceKey="occurrenceIndicationInOverviewRuler"
957                         overviewRulerPreferenceValue="true"
958                         verticalRulerPreferenceKey="occurrenceIndicationInVerticalRuler"
959                         verticalRulerPreferenceValue="false"
960                         colorPreferenceKey="occurrenceIndicationColor"
961                         colorPreferenceValue="180,207,205"
962                         presentationLayer="3"
963                         showInNextPrevDropdownToolbarActionKey="showOccurrenceInNextPrevDropdownToolbarAction"
964                         showInNextPrevDropdownToolbarAction="true"
965                         isGoToNextNavigationTargetKey="isOccurrenceGoToNextNavigationTarget"
966                         isGoToNextNavigationTarget="false"
967                         isGoToPreviousNavigationTargetKey="isOccurrenceGoToPreviousNavigationTarget"
968                         isGoToPreviousNavigationTarget="false">
969           </specification>
970         </extension>
971
972
973
974   <extension
975         point="org.eclipse.ui.decorators">
976         <decorator
977                 label="%ProblemsLabelDecorator.label"
978                 state="true"
979                 lightweight="true"
980                 location="BOTTOM_LEFT"
981                 class="net.sourceforge.phpdt.ui.ProblemsLabelDecorator"
982                 id="net.sourceforge.phpdt.ui.problem.decorator">
983                 <description>
984                         %ProblemsLabelDecorator.description
985                 </description>
986                 <enablement>
987                         <or>
988                                 <objectClass
989                                         name="org.eclipse.core.resources.IResource">
990                                 </objectClass>
991                                 <objectClass
992                                         name="net.sourceforge.phpdt.core.IJavaElement">
993                                 </objectClass>
994                         </or>
995                 </enablement>
996         </decorator>
997         <decorator
998                 label="%OverrideIndicatorLabelDecorator.label"
999                 lightweight="true"
1000                 location="BOTTOM_RIGHT"
1001                 state="true"
1002                 class="net.sourceforge.phpdt.ui.OverrideIndicatorLabelDecorator"
1003                 id="net.sourceforge.phpdt.ui.override.decorator">
1004                 <description>
1005                         %OverrideIndicatorLabelDecorator.description
1006                 </description>
1007                 <enablement>
1008                         <objectClass
1009                                 name="net.sourceforge.phpdt.core.IMethod">
1010                         </objectClass>
1011                 </enablement>
1012         </decorator>
1013   </extension>
1014
1015
1016
1017
1018
1019
1020
1021
1022    <extension
1023                  point="org.eclipse.ui.actionSets">
1024           <actionSet
1025                         label="%CodingActionSet.label"
1026                         description="%CodingActionSet.description"
1027                         visible="false"
1028                         id="net.sourceforge.phpeclipse.ui.CodingActionSet">
1029 <!-- =========================================================================== -->
1030 <!-- Source Menu                                                                 -->
1031 <!-- =========================================================================== -->
1032                  <menu
1033                            label="%SourceMenu.label"
1034                            path="edit/editEnd"
1035                            id="net.sourceforge.phpeclipse.ui.source.menu">
1036                          <separator
1037                                    name="editGroup">
1038                          </separator>
1039                  </menu>
1040                  <action
1041                            definitionId="net.sourceforge.phpeclipse.phpeditor.format"
1042                            label="%FormatAction.label"
1043                            retarget="true"
1044                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1045                            id="net.sourceforge.phpeclipse.phpeditor.Format">
1046                  </action>
1047                  <action
1048                            label="%ShiftLeftAction.label"
1049                            retarget="true"
1050                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1051                            id="net.sourceforge.phpeclipse.phpeditor.ShiftLeft">
1052                  </action>
1053                  <action
1054                            label="%ShiftRightAction.label"
1055                            retarget="true"
1056                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1057                            id="net.sourceforge.phpeclipse.phpeditor.ShiftRight">
1058                  </action>
1059                  <action
1060                            definitionId="net.sourceforge.phpeclipse.phpeditor.remove.block.comment"
1061                            label="%RemoveBlockCommentAction.label"
1062                            retarget="true"
1063                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1064                            id="net.sourceforge.phpeclipse.ui.actions.RemoveBlockComment">
1065                  </action>
1066                  <action
1067                            definitionId="net.sourceforge.phpeclipse.phpeditor.add.block.comment"
1068                            label="%AddBlockCommentAction.label"
1069                            retarget="true"
1070                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1071                            id="net.sourceforge.phpeclipse.ui.actions.AddBlockComment">
1072                  </action>
1073                  <action
1074                            definitionId="net.sourceforge.phpeclipse.phpeditor.toggle.comment"
1075                            label="%ToggleCommentAction.label"
1076                            retarget="true"
1077                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1078                            id="net.sourceforge.phpeclipse.ui.actions.ToggleComment">
1079                  </action>
1080                  <action
1081                            definitionId="net.sourceforge.phpeclipse.phpeditor.uncomment"
1082                            label="%UncommentAction.label"
1083                            retarget="true"
1084                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1085                            id="net.sourceforge.phpeclipse.phpeditor.Uncomment">
1086                  </action>
1087                  <action
1088                            definitionId="net.sourceforge.phpeclipse.phpeditor.comment"
1089                            label="%CommentAction.label"
1090                            retarget="true"
1091                            menubarPath="edit/net.sourceforge.phpeclipse.ui.source.menu/editGroup"
1092                            id="net.sourceforge.phpeclipse.phpeditor.Comment">
1093                  </action>
1094           </actionSet>
1095    </extension>
1096
1097
1098
1099
1100
1101
1102
1103    <extension
1104                  point="org.eclipse.ui.popupMenus">
1105          <viewerContribution
1106                 targetID="#PHPEditorContext"
1107                 id="net.sourceforge.phpdt.ltk.renameLocalVariable">
1108                 <action label="Rename Local Variable in Functions/Methods"
1109                                 class="net.sourceforge.phpdt.ltk.ui.actions.RenameLocalVariable"
1110                                 menubarPath="additions"
1111                                 id="net.sourceforge.phpdt.ltk.ui.actions.RenameLocalVariable"/>
1112           </viewerContribution>
1113    </extension>
1114
1115
1116    <extension
1117          point="org.eclipse.ui.preferencePages">
1118       <page
1119             name="%preferencePageName"
1120             class="net.sourceforge.phpeclipse.ui.preferences.EmptyPreferencePage"
1121             id="net.sourceforge.phpeclipse.ui.preferencePage">
1122       </page>
1123       <page
1124             category="net.sourceforge.phpeclipse.ui.preferencePage"
1125             name="Project Defaults"
1126             class="net.sourceforge.phpeclipse.ui.preferences.PHPMiscProjectPreferences"
1127             id="net.sourceforge.phpeclipse.ui.preferences.PHPMiscProjectPreferences">
1128       </page>
1129       <page
1130             category="net.sourceforge.phpeclipse.ui.preferencePage"
1131             name="Browser Preview Defaults"
1132             class="net.sourceforge.phpeclipse.ui.preferences.PHPPreviewProjectPreferences"
1133             id="net.sourceforge.phpeclipse.ui.preferences.PHPPreviewProjectPreferences">
1134       </page>
1135    </extension>
1136       <extension
1137          point="org.eclipse.ui.propertyPages">
1138       <page
1139             class="net.sourceforge.phpeclipse.ui.preferences.PHPMiscProjectPreferences"
1140             icon="icons/full/obj16/php.png"
1141             id="net.sourceforge.phpeclipse.ui.preferences.project.PHPMiscProjectPreferences"
1142             name="PHP Project Settings"
1143             objectClass="org.eclipse.core.resources.IProject">
1144          <filter
1145                name="nature"
1146                value="net.sourceforge.phpeclipse.phpnature">
1147          </filter>
1148       </page>
1149       <page
1150             class="net.sourceforge.phpeclipse.ui.preferences.PHPPreviewProjectPreferences"
1151             id="net.sourceforge.phpeclipse.ui.preferences.PHPPreviewProjectPreferences"
1152             name="PHP Browser Preview"
1153             objectClass="org.eclipse.core.resources.IFile">
1154       </page>
1155    </extension>
1156
1157    <extension
1158          point="org.eclipse.ui.editors.templates">
1159       <contextType
1160             name="%templates.contextType.xml"
1161             class="net.sourceforge.phpeclipse.ui.templates.template.XMLTemplateContextType"
1162             id="xml">
1163       </contextType>
1164       <contextType
1165             name="%templates.contextType.html"
1166             class="net.sourceforge.phpeclipse.ui.templates.template.HTMLTemplateContextType"
1167             id="html">
1168       </contextType>
1169       <contextType
1170             name="%templates.contextType.javascript"
1171             class="net.sourceforge.phpeclipse.ui.templates.template.JSTemplateContextType"
1172             id="javascript">
1173       </contextType>
1174       <contextType
1175             name="%templates.contextType.smarty"
1176             class="net.sourceforge.phpeclipse.ui.templates.template.SmartyTemplateContextType"
1177             id="smarty">
1178       </contextType>
1179       <include
1180                 file="templates/default-templates.xml"
1181                 translations="templates/default-templates.properties">
1182       </include>
1183    </extension>
1184 </plugin>