]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.g3d.shapeeditor/plugin.xml
git-svn-id: https://www.simantics.org/svn/simantics/3d/trunk@22283 ac1ea38d-2e2b...
[simantics/3d.git] / org.simantics.g3d.shapeeditor / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <?eclipse version="3.2"?>\r
3 <plugin>\r
4    <extension\r
5          point="org.eclipse.ui.commands">\r
6       <command\r
7             categoryId="org.simantics.proconf.shapeeditor.commands"\r
8             description="New CSG-Model"\r
9             id="org.simantics.proconf.shapeeditor.commands.newCSG"\r
10             name="New CSG-Model">\r
11       </command>\r
12    </extension>\r
13    <extension\r
14          point="org.eclipse.ui.handlers">\r
15       <handler\r
16             class="org.simantics.proconf.g3d.shapeeditor.handlers.NewCSGModelHandler"\r
17             commandId="org.simantics.proconf.shapeeditor.commands.newCSG">\r
18       </handler>\r
19    </extension>\r
20    <extension\r
21          point="org.eclipse.ui.menus">\r
22       <menuContribution\r
23             locationURI="popup:#OEPopup?after=additions">\r
24          <command\r
25                commandId="org.simantics.proconf.shapeeditor.commands.newCSG"\r
26                icon="icons/union.png"\r
27                id="org.simantics.proconf.shapeeditor.popups.newCSG"\r
28                label="New CSG-Model"\r
29                style="push">\r
30             <visibleWhen>\r
31                <and>\r
32                   <with\r
33                         variable="activeContexts">\r
34                      <iterate\r
35                            ifEmpty="false"\r
36                            operator="or">\r
37                         <equals\r
38                               value="org.simantics.proconf.shapeeditor.csg">\r
39                         </equals>\r
40                      </iterate>\r
41                   </with>\r
42                   <with\r
43                         variable="selection">\r
44                      <and>\r
45                         <test\r
46                               args="http://www.vtt.fi/Simantics/Layer0/1.0/Types#Library"\r
47                               property="org.simantics.graph.resourceType">\r
48                         </test>\r
49                      </and>\r
50                   </with>\r
51                </and>\r
52             </visibleWhen>\r
53          </command>\r
54       </menuContribution>\r
55    </extension>\r
56    <extension\r
57          point="org.simantics.proconf.ui.resourceEditorAdapter">\r
58       <adapterClass\r
59             class="org.simantics.proconf.g3d.shapeeditor.handlers.ResourceEditorAdapter1"\r
60             id="org.simantics.proconf.shapeeditor.ResourceEditorDescription1">\r
61       </adapterClass>\r
62       <adapterClass\r
63             class="org.simantics.proconf.g3d.shapeeditor.handlers.ResourceEditorAdapter3"\r
64             id="org.simantics.proconf.shapeeditor.ResourceEditorDescription3">\r
65       </adapterClass>\r
66    </extension>\r
67    <extension\r
68          point="org.eclipse.ui.editors">\r
69       <editor\r
70             class="org.simantics.proconf.g3d.shapeeditor.views.ShapeEditorView"\r
71             icon="icons/union.png"\r
72             id="org.simantics.proconf.shapeeditor.editor1"\r
73             name="ShapeEditor">\r
74       </editor>\r
75       <editor\r
76             class="org.simantics.proconf.g3d.shapeeditor.views.ParameterizationEditor"\r
77             icon="icons/unlink.png"\r
78             id="org.simantics.proconf.shapeeditor.editor3"\r
79             name="ParameterizationEditor">\r
80       </editor>\r
81    </extension>\r
82    <extension\r
83          point="org.eclipse.ui.views">\r
84       <view\r
85             class="org.simantics.proconf.g3d.shapeeditor.views.StructureView"\r
86             icon="icons/union.png"\r
87             id="org.simantics.shapeeditor.views.structure"\r
88             name="Structure View">\r
89       </view>\r
90       <view\r
91             class="org.simantics.proconf.g3d.shapeeditor.views.CSGModellingView"\r
92             icon="icons/union.png"\r
93             id="org.simantics.proconf.shapeeditor.views.modelling"\r
94             name="CSG Modelling View">\r
95       </view>\r
96    </extension>\r
97    <extension\r
98          point="org.simantics.db.resourceAdapter">\r
99       <resource_adapter\r
100             adapter_class="org.simantics.proconf.g3d.shapeeditor.handlers.CSGProjectAdapter"\r
101             operation="http://www.vtt.fi/Simantics/Layer0/1.0/Relations#HasProjectTypeAdapter"\r
102             type_uri="http://www.vtt.fi/Simantics/CSG/1.0/Types#CSGProjectType">\r
103       </resource_adapter>\r
104    </extension>\r
105    <extension\r
106          point="org.eclipse.ui.perspectives">\r
107       <perspective\r
108             class="org.simantics.proconf.g3d.shapeeditor.perspectives.CSGModellingPerspective"\r
109             icon="icons/union.png"\r
110             id="org.simantics.proconf.shapeeditor.perspectives.csg"\r
111             name="CSG Modelling">\r
112       </perspective>\r
113    </extension>\r
114    <extension\r
115          point="org.eclipse.ui.perspectiveExtensions">\r
116       <perspectiveExtension\r
117             targetID="org.simantics.proconf.shapeeditor.perspectives.csg">\r
118          <view\r
119                id="org.simantics.proconf.shapeeditor.views.modelling"\r
120                ratio="0.3"\r
121                relationship="left"\r
122                relative="org.eclipse.ui.editorss"\r
123                visible="true">\r
124          </view>\r
125          <view\r
126                id="org.simantics.proconf.browsing.views.property"\r
127                ratio="0.7"\r
128                relationship="bottom"\r
129                relative="org.simantics.proconf.shapeeditor.views.modelling"\r
130                visible="true">\r
131          </view>\r
132          <view\r
133                id="org.eclipse.pde.runtime.LogView"\r
134                relationship="fast"\r
135                relative="fi.vtt.proconf.ui.views.property"\r
136                visible="false">\r
137          </view>\r
138          <view\r
139                id="org.simantics.shapeeditor.views.structure"\r
140                relationship="stack"\r
141                relative="org.simantics.proconf.shapeeditor.views.modelling">\r
142          </view>\r
143          <view\r
144                id="org.simantics.g3d.views.scenegraph"\r
145                ratio="0.3"\r
146                relationship="right"\r
147                relative="org.eclipse.ui.editorss"\r
148                visible="true">\r
149          </view>\r
150       </perspectiveExtension>\r
151    </extension>\r
152    <extension\r
153          point="org.eclipse.ui.contexts">\r
154       <context\r
155             id="org.simantics.proconf.shapeeditor.csg"\r
156             name="name">\r
157       </context>\r
158    </extension>\r
159    <extension\r
160          point="org.simantics.proconf.ui.perspectiveContextBinding">\r
161       <binding\r
162             contextIds="org.simantics.proconf.shapeeditor.csg"\r
163             perspectiveId="org.simantics.proconf.shapeeditor.perspectives.csg">\r
164       </binding>\r
165    </extension>\r
166 \r
167 </plugin>\r