Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2438b009889a68ce4caa9b7a998dc87ab75a81dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>

<!-- =========================================================================== -->
<!-- Java Editor Example                                                         -->
<!-- =========================================================================== -->

   <extension
         point="org.eclipse.ui.editors">
      <editor
            name="%javaEditorName"
            icon="icons/obj16/java.png"
            extensions="jav"
            contributorClass="org.eclipse.ui.examples.javaeditor.JavaActionContributor"
            class="org.eclipse.ui.examples.javaeditor.JavaEditor"
            id="org.eclipse.ui.JavaEditor">
      </editor>
   </extension>

   <extension
         id="ExampleJavaDocumentSetupParticipant"
         name="%documentSetupParticipantName"
         point="org.eclipse.core.filebuffers.documentSetup">
      <participant
            extensions="jav"
            class="org.eclipse.ui.examples.javaeditor.JavaDocumentSetupParticipant">
      </participant>
   </extension>

<!-- =========================================================================== -->
<!-- Template Editor Example                                                     -->
<!-- =========================================================================== -->

   <extension
         point="org.eclipse.ui.editors">
      <editor
            name="%xml.editor.name"
            icon="icons/sample.png"
            extensions="xml"
            contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
            class="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor"
            id="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor">
      </editor>
   </extension>

   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            name="%xml.editor.preferencePage.label"
            class="org.eclipse.ui.examples.templateeditor.preferences.TemplatesPreferencePage"
            id="org.eclipse.ui.examples.templateeditor.preferencepage">
      </page>
   </extension>

   <extension
         point="org.eclipse.ui.editors.templates">
      <contextType
            name="%xml.contextType.name"
            class="org.eclipse.ui.examples.templateeditor.template.XMLContextType"
            id="org.eclipse.ui.examples.templateeditor.xml">
      </contextType>
      <template
            name="%ant.tasks.copy.name"
            icon="icons/template.png"
            description="%ant.tasks.copy.description"
            contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
            id="org.eclipse.ui.examples.templateeditor.ant.copy">
         <pattern>&lt;copy todir=&quot;${dst}&quot;&gt;
	&lt;fileset dir=&quot;${src}&quot;/&gt;
&lt;/copy&gt;</pattern>
      </template>
      <resolver
            name="%ant.resolvers.src"
            type="src"
            icon="icons/resolver.png"
            description="%ant.resolvers.src.description"
            contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
            class="org.eclipse.ui.examples.templateeditor.template.AntVariableResolver">
      </resolver>
      <resolver
            name="%ant.resolvers.dst"
            type="dst"
            icon="icons/resolver.png"
            description="%ant.resolvers.dst.description"
            contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
            class="org.eclipse.ui.examples.templateeditor.template.AntVariableResolver">
      </resolver>
      <include
      		file="templates/ant.xml"
      		translations="$nl$/templates/ant.properties">
      </include>
   </extension>

</plugin>

Back to the top