Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ad976eee2b8405aa333b4d7208412416587048a4 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.eclipse.papyrus.infra.psf.handler.ImportPSFHandler"
            description="Imports a Team Project Set File (Psf) in background"
            id="org.eclipse.papyrus.infra.psf.import"
            name="Import PSF (Background)">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions">
         <command
               commandId="org.eclipse.papyrus.infra.psf.import"
               style="push">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="selection">
                     <iterate
                           ifEmpty="false"
                           operator="and">
                        <adapt
                              type="org.eclipse.core.resources.IFile">
                           <test
                                 property="org.eclipse.core.resources.extension"
                                 value="psf">
                           </test>
                        </adapt>
                     </iterate>
                  </with>
               </visibleWhen>
         </command>
      </menuContribution>
   </extension>

</plugin>

Back to the top