Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9875e752e9849c7ba8e67e146110f6474409821b (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.papyrus.views.properties.context">
      <context
            contextModel="model/properties/css.ctx">
      </context>
   </extension>
   <extension
         point="org.eclipse.papyrus.views.properties.environment">
      <environment
            environmentModel="model/Environment.xmi">
      </environment>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.papyrus.infra.gmfdiag.css.properties.handler.CSSFileHandler"
            commandId="org.eclipse.papyrus.infra.gmfdiag.css.theme.define">
         <enabledWhen>
            <with
                  variable="selection">
               <iterate>
                  <adapt
                        type="org.eclipse.core.resources.IResource">
                     <test
                           property="org.eclipse.core.resources.extension"
                           value="css">
                     </test>
                  </adapt>
               </iterate>
            </with>
         </enabledWhen>
      </handler>
      <handler
            class="org.eclipse.papyrus.infra.gmfdiag.css.properties.handler.CSSFileHandler"
            commandId="org.eclipse.papyrus.infra.gmfdiag.css.theme.edit">
         <enabledWhen>
            <with
                  variable="selection">
               <iterate>
                  <adapt
                        type="org.eclipse.core.resources.IResource">
                     <test
                           property="org.eclipse.core.resources.extension"
                           value="css">
                     </test>
                  </adapt>
               </iterate>
            </with>
         </enabledWhen>
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.papyrus.infra.gmfdiag.css.theme.category"
            id="org.eclipse.papyrus.infra.gmfdiag.css.theme.define"
            name="Define theme">
      </command>
      <command
            categoryId="org.eclipse.papyrus.infra.gmfdiag.css.theme.category"
            id="org.eclipse.papyrus.infra.gmfdiag.css.theme.edit"
            name="Edit theme">
      </command>
      <category
            id="org.eclipse.papyrus.infra.gmfdiag.css.theme.category"
            name="CSS Theme">
      </category>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <menu
               id="org.eclipse.papyrus.infra.gmfdiag.css.theme.menu"
               label="CSS Theme">
            <visibleWhen
                  checkEnabled="true">
               <with
                     variable="activePartId">
                  <equals
                        value="org.eclipse.ui.navigator.ProjectExplorer">
                  </equals>
               </with>
            </visibleWhen>
         </menu>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.papyrus.infra.gmfdiag.css.theme.menu">
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.css.theme.define"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.css.theme.edit"
               style="push">
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory"
            class="org.eclipse.papyrus.infra.gmfdiag.css.properties.preferences.ThemePreferencesPage"
            id="org.eclipse.papyrus.infra.gmfdiag.css.theme"
            name="CSS Theme">
      </page>
   </extension>
<extension
       point="org.eclipse.ui.propertyPages">
    <page
          category="org.eclipse.papyrus.infra.gmfdiag.preferences.properties.generalcategory"
          class="org.eclipse.papyrus.infra.gmfdiag.css.properties.property.StyleSheetsPropertyPage"
          id="org.eclipse.papyrus.infra.gmfdiag.css.stylesheets"
          name="Style sheets">
       <enabledWhen>
          <adapt
                type="org.eclipse.core.resources.IProject">
          </adapt>
       </enabledWhen>
    </page>
 </extension>
</plugin>

Back to the top