Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 4447c221d866f9b8dea2364371cbf5c10d4236e4 (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.0"?>

<!--
 Copyright (c) 2016 CEA LIST.
 
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License 2.0
  which accompanies this distribution, and is available at
  https://www.eclipse.org/legal/epl-2.0/

  SPDX-License-Identifier: EPL-2.0
  
  Contributors:
  Laurent Wouters laurent.wouters@cea.fr - Initial API and implementation
  
 
-->

<plugin>

   <extension point="org.eclipse.ui.newWizards">
      <!-- @generated NOT Architecture -->
      <wizard
            id="org.eclipse.papyrus.infra.ui.architecture.ArchitectureModelWizardID"
            name="%_UI_ArchitectureModelWizard_label"
            class="org.eclipse.papyrus.infra.ui.architecture.editor.ArchitectureModelWizard"
            category="org.eclipse.papyrus.wizards.category/org.eclipse.papyrus.wizards.addons.category"
            icon="icons/full/obj16/ArchitectureModelFile.gif">
         <description>%_UI_ArchitectureModelWizard_description</description>
         <selection class="org.eclipse.core.resources.IResource"/>
      </wizard>
   </extension>

   <extension point="org.eclipse.ui.editors">
      <!-- @generated Architecture -->
      <editor
            id="org.eclipse.papyrus.infra.ui.architecture.ArchitectureEditorID"
            name="%_UI_ArchitectureEditor_label"
            icon="icons/full/obj16/ArchitectureModelFile.gif"
            extensions="architecture"
            class="org.eclipse.papyrus.infra.ui.architecture.editor.ArchitectureEditor"
            contributorClass="org.eclipse.papyrus.infra.ui.architecture.editor.ArchitectureActionBarContributor">
      </editor>
   </extension>

   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory"
            class="org.eclipse.papyrus.infra.ui.architecture.preferences.ArchitectureContextPreferencePage"
            id="org.eclipse.papyrus.infra.ui.architecture.preferences.ArchitecturesPreferencePage"
            name="Architecture Contexts">
      </page>
   </extension>
   
   <extension
        point="org.eclipse.ui.commands">
	  <command
	        defaultHandler="org.eclipse.papyrus.infra.ui.architecture.handlers.ChangeArchitectureContextHandler"
	        id="org.eclipse.papyrus.infra.ui.architecture.commands.ChangeArchitectureContext"
	        name="Change Architecture Context">
	  </command>
   </extension>
 
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
          allPopups="false"
          locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?after=tools">
        <command
              commandId="org.eclipse.papyrus.infra.ui.architecture.commands.ChangeArchitectureContext"
              icon="icons/full/obj16/ArchitectureContext.gif"
              id="org.eclipse.papyrus.infra.ui.architecture.commands.ChangeArchitectureContext"
              label="%Switch_Architecture_Context"
              mnemonic="C"
              style="push">
           <visibleWhen
                checkEnabled="false">
             <with
                   variable="selection">
                <iterate
                      ifEmpty="false"
                      operator="and">
                   <adapt
                         type="org.eclipse.emf.ecore.EObject">
                   </adapt>
                </iterate>
             </with>
           </visibleWhen>
        </command>
        <menu
              icon="icons/full/obj16/ArchitectureViewpoint.gif"
              id="org.eclipse.papyrus.infra.ui.architecture.menus.ChangeArchitectureViewpoints"
              label="%Switch_Architecture_Viewpoints">
          <dynamic
               class="org.eclipse.papyrus.infra.ui.architecture.handlers.ChangeArchitectureViewpointsHandler"
               id="org.eclipse.papyrus.infra.ui.architecture.menus.ChangeArchitectureViewpoints">
          </dynamic>
        </menu>
     </menuContribution>
   </extension>   

   <extension point="org.eclipse.ui.navigator.navigatorContent">
      <commonFilter
            activeByDefault="true"
            description="Filters diagrams/tables that are unsupported by the selected viewpoints in the Papyrus model"
            class="org.eclipse.papyrus.infra.ui.architecture.navigator.ViewpointFilter"
            id="org.eclipse.papyrus.infra.ui.architecture.viewpointFilter"
            name="Unsupported Diagrams/Tables"
            visibleInUI="true">
      </commonFilter>
   </extension>   

   <extension
         point="org.eclipse.ui.navigator.viewer">
      <viewerContentBinding
            viewerId="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
         <includes>
            <contentExtension
                  pattern="org.eclipse.papyrus.infra.ui.architecture.*">
            </contentExtension>
         </includes>
      </viewerContentBinding>
   </extension>
    
</plugin>

Back to the top