128d7830825fdc2fe35e0cac99e4cefe93e63b61
[simantics/platform.git] / bundles / org.simantics.desktop.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <plugin>
3
4    <extension
5          point="org.eclipse.ui.perspectives">
6       <perspective
7             name="Modelling"
8             fixed="false"
9             class="org.simantics.workbench.Perspective"
10             id="org.simantics.desktop.modelling.perspective">
11       </perspective>
12    </extension>
13    <extension
14          point="org.simantics.project.feature">
15       <feature
16             label="Desktop"
17             description="Desktop product project feature."
18             class="org.simantics.desktop.ui.internal.DesktopProjectFeature"
19             published="true"
20             id="org.simantics.desktop.ui">
21          <installGroup
22                version="[1.0.0,2.0.0)"
23                id="omnipresent">
24          </installGroup>
25       </feature>
26    </extension>
27    <extension
28          point="org.eclipse.ui.perspectiveExtensions">
29       <perspectiveExtension
30             targetID="org.simantics.desktop.modelling.perspective">
31          <view
32                minimized="true"
33                ratio="0.20"
34                relative="org.eclipse.ui.editorss"
35                closeable="true"
36                visible="true"
37                id="org.simantics.modeling.ui.browser"
38                relationship="left">
39          </view>
40          <view
41                minimized="false"
42                ratio="0.5"
43                relative="org.simantics.modeling.ui.browser"
44                closeable="true"
45                visible="true"
46                id="org.simantics.browsing.ui.graph.propertyView"
47                relationship="bottom">
48          </view>
49       </perspectiveExtension>
50    </extension>
51    <!--
52    <extension
53          point="org.eclipse.epp.mpc.ui.catalog">
54       <catalog
55             label="Simantics Marketplace"
56             url="http://dev.simantics.org:8070/marketplace/"
57             icon="icons/simantics32.png"
58             description="Marketplace for installing simulation components for Simantics.">
59       </catalog>
60    </extension>
61    -->
62    <extension
63          point="org.eclipse.ui.views">
64       <category
65             name="Modeling"
66             id="org.simantics.modeling.ui.category">
67       </category>
68       <view
69             name="Model Browser"
70             icon="platform:/plugin/com.famfamfam.silk/icons/chart_organisation.png"
71             category="org.simantics.modeling.category"
72             class="org.simantics.desktop.ui.internal.StandardModelledView:configurationURI=http://www.simantics.org/Modeling-1.2/PlainModelBrowser"
73             restorable="true"
74             id="org.simantics.modeling.ui.browser">
75       </view>
76    </extension>
77    <extension
78          point="org.simantics.ui.doubleClick">
79       <doubleClickAction
80             name="Modeled Double Click"
81             priority="1.0"
82             class="org.simantics.modeling.ui.actions.ModeledDoubleClickActions">
83       </doubleClickAction>
84    </extension>
85    <extension
86          point="org.eclipse.ui.menus">
87       <menuContribution
88             allPopups="false"
89             locationURI="menu:#FileNewMenu">
90          <dynamic
91                class="org.simantics.modeling.ui.actions.GlobalModeledActions:context=http://www.simantics.org/Project-1.2/ProjectFileMenuNewActionContext"
92                id="org.simantics.desktop.ui.fileMenuNew.modeledActions">
93          </dynamic>
94       </menuContribution>
95       <menuContribution
96             allPopups="false"
97             locationURI="menu:sFile">
98          <dynamic
99                class="org.simantics.modeling.ui.actions.GlobalModeledActions:context=http://www.simantics.org/Project-1.2/ProjectFileMenuActionContext"
100                id="org.simantics.desktop.ui.fileMenu.modeledActions">
101          </dynamic>
102       </menuContribution>
103       <menuContribution
104             locationURI="popup:#ModelBrowserPopup">
105          <separator
106                name="new.begin"
107                visible="false">
108          </separator>
109          <separator
110                name="new.ext"
111                visible="false">
112          </separator>
113          <separator
114                name="new.end"
115                visible="true">
116          </separator>
117          <dynamic
118                class="org.simantics.modeling.ui.actions.ModeledActions"
119                id="org.simantics.desktop.ui.modeledActions">
120          </dynamic>
121          <dynamic
122                class="org.simantics.ui.contribution.OpenWithMenuContribution"
123                id="openWith">
124          </dynamic>
125          <command
126                commandId="org.simantics.browsing.ui.common.collapseAll"
127                label="Collapse All"
128                icon="platform:/plugin/org.simantics.browsing.ui.common/icons/collapseall.png"
129                style="push"
130                tooltip="Collapse All">
131          </command>
132          <command
133                commandId="org.simantics.browsing.ui.common.collapseSelected"
134                label="Collapse Selected"
135                icon="platform:/plugin/org.simantics.browsing.ui.common/icons/collapse.png"
136                style="push"
137                tooltip="Collapse Selected">
138             <visibleWhen
139                   checkEnabled="false">
140                <with
141                      variable="selection">
142                    <count
143                          value="(0-">
144                    </count>
145                </with>
146             </visibleWhen>
147          </command>
148       </menuContribution>
149    </extension>
150    <extension
151          id="org.simantics.desktop.ui.fragment"
152          point="org.eclipse.e4.workbench.model">
153       <fragment
154             uri="fragment.e4xmi">
155       </fragment>
156    </extension>
157
158 </plugin>