Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9c23d1c7c68152fa7e899022f56b2eb57dd74af9 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.plugins.AddProjectAboutFileHandler"
            id="org.eclipse.papyrus.dev.project.management.command.plugin.add.about"
            name="Add the file about.html to the project">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.features.AddFeatureLicenseFileHandler"
            description="Add the license file to the feature"
            id="org.eclipse.papyrus.dev.project.management.command.feature.add.license"
            name="Add License File">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.features.AddFEPLFileHandler"
            description="Add the EPL file to the feature"
            id="org.eclipse.papyrus.dev.project.management.command.feature.add.epl"
            name="Add EPL file">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.features.SetCopyrightNoticeHandler"
            description="Set Feature Copyright"
            id="org.eclipse.papyrus.dev.project.management.command.feature.set.copyright"
            name="Set Feature Copyright">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.plugins.UpdateDependencyRangesHandler"
            description="Update bundle/package dependency ranges according to the current PDE target"
            id="org.eclipse.papyrus.dev.project.management.command.updateDependencyRanges"
            name="Update Dependency Ranges">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.plugins.OptimizeDependenciesHandler"
            description="Optimize bundle dependencies by removing redundancies and adding re-exports to cover the API"
            id="org.eclipse.papyrus.dev.project.management.command.optimizeDependencies"
            name="Optimize Bundle Dependencies">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.SyncManifestAndPOMVersions"
            description="Ensure that POM versions match their plug-in/feature manifest"
            id="org.eclipse.papyrus.dev.project.management.command.syncPOMVersions"
            name="Synchronize POM Versions">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.EnsureAPIAnalysisHandler"
            description="Ensure that all projects under version management have API Analysis configured"
            id="org.eclipse.papyrus.dev.project.management.command.ensureAPIAnalysis"
            name="Ensure API Analysis">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.dev.project.management.handlers.plugins.OpenParentPOMHandler"
            description="Open the parent POM, even if not in the workspace"
            id="org.eclipse.papyrus.dev.project.management.command.openParentPOM"
            name="Open Parent POM">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="menu:org.eclipse.ui.main.menu?after=edit">
         <menu
               icon="icons/papyrus.png"
               label="Project management">
            <menu
                  icon="icons/feature_obj.gif"
                  label="Feature">
               <command
                     commandId="org.eclipse.papyrus.dev.project.management.command.feature.add.license"
                     icon="icons/html.gif"
                     label="Add License File (no undo)"
                     style="push">
               </command>
               <command
                     commandId="org.eclipse.papyrus.dev.project.management.command.feature.add.epl"
                     icon="icons/html.gif"
                     label="Add EPL File (no undo)"
                     style="push">
               </command>
               <command
                     commandId="org.eclipse.papyrus.dev.project.management.command.feature.set.copyright"
                     icon="icons/copyright_icon.png"
                     label="Set Copyright (doesn&apos;t erase existing value)"
                     style="push">
               </command>
            </menu>
            <menu
                  icon="icons/plugin_obj.gif"
                  label="Plugin">
               <command
                     commandId="org.eclipse.papyrus.dev.project.management.command.plugin.add.about"
                     icon="icons/html.gif"
                     label="Add about.html file (no undo)"
                     style="push">
               </command>
            </menu>
            <command
                  commandId="org.eclipse.papyrus.dev.project.management.command.syncPOMVersions"
                  icon="icons/version.png"
                  label="Synchronize POM Versions (no undo)"
                  style="push">
            </command>
            <command
                  commandId="org.eclipse.papyrus.dev.project.management.command.ensureAPIAnalysis"
                  label="Ensure API Analysis (no undo)"
                  style="push">
            </command>
         </menu>
      </menuContribution>
      <menuContribution
            locationURI="popup:org.eclipse.pde.ui.tools?after=additions">
         <command
               commandId="org.eclipse.papyrus.dev.project.management.command.updateDependencyRanges"
               icon="icons/version.png">
            <visibleWhen
                  checkEnabled="false">
               <iterate>
                  <reference
                        definitionId="org.eclipse.papyrus.dev.project.management.isPluginProjectOrManifest">
                  </reference>
               </iterate>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.dev.project.management.command.optimizeDependencies"
               icon="icons/plugin_mf_obj.gif">
            <visibleWhen
                  checkEnabled="false">
               <iterate>
                  <reference
                        definitionId="org.eclipse.papyrus.dev.project.management.isPluginProjectOrManifest">
                  </reference>
               </iterate>
            </visibleWhen>
         </command>
      </menuContribution>
      <menuContribution
            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <command
               commandId="org.eclipse.papyrus.dev.project.management.command.openParentPOM">
            <visibleWhen
                  checkEnabled="false">
               <iterate>
                  <adapt
	                    type="org.eclipse.core.resources.IFile">
	                 <or>
	                    <test
	                          property="org.eclipse.core.resources.name"
	                          value="pom.xml">
	                    </test>
                        <test
	                          property="org.eclipse.core.resources.contentTypeId"
	                          value="org.eclipse.m2e.core.pomFile">
	                    </test>
	                 </or>
	              </adapt>
	           </iterate>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>

   <extension
         point="org.eclipse.core.expressions.definitions">
      <definition
            id="org.eclipse.papyrus.dev.project.management.isPluginProjectOrManifest">
          <or>
             <adapt
                   type="org.eclipse.core.resources.IFile">
                <test
                      property="org.eclipse.core.resources.name"
                      value="MANIFEST.MF">
                </test>
             </adapt>
             <adapt
                   type="org.eclipse.core.resources.IProject">
                <test
                      property="org.eclipse.core.resources.projectNature"
                      value="org.eclipse.pde.PluginNature">
                </test>
             </adapt>
          </or>
      </definition>
   </extension>
</plugin>

Back to the top