Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 62a916b8641ec03413df84b8b800bf4553116945 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                      
                                                               




                                                    
                                                                   



                                                     























                                                                                           











                                                                                





























                                                                             



















                                                                                
























                                                                                                     













                                                                                                   





                                                                                                   
         
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.papyrus.infra.properties.contexts">
      <context
            contextModel="model/properties/css.ctx">
      </context>
   </extension>
   <extension
         point="org.eclipse.papyrus.infra.properties.environments">
      <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">
               <and>
                  <with
                        variable="activePartId">
                     <equals
                           value="org.eclipse.ui.navigator.ProjectExplorer">
                     </equals>
                  </with>
                  <with
                        variable="selection">
                     <iterate>
                        <adapt
                              type="org.eclipse.core.resources.IResource">
                           <test
                                 property="org.eclipse.core.resources.extension"
                                 value="css">
                           </test>
                        </adapt>
                     </iterate>
                  </with>
               </and>
            </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>
   <extension
         point="org.eclipse.papyrus.infra.gmfdiag.dnd.dropStrategy">
      <strategy
            strategy="org.eclipse.papyrus.infra.gmfdiag.css.properties.dnd.StyleSheetDropStrategy">
      </strategy>
   </extension>
</plugin>

Back to the top