]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.issues.ui/plugin.xml
Fix selectPath returning true for nodes that haven't been loaded.
[simantics/platform.git] / bundles / org.simantics.issues.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>\r<!--
3     Copyright (c) 2007, 2011 Association for Decentralized Information Management
4     in Industry THTH ry.
5     All rights reserved. This program and the accompanying materials
6     are made available under the terms of the Eclipse Public License v1.0
7     which accompanies this distribution, and is available at
8     http://www.eclipse.org/legal/epl-v10.html
9    
10     Contributors:
11         VTT Technical Research Centre of Finland - initial API and implementation
12  -->
13
14 <plugin>
15
16    <extension
17          point="org.eclipse.ui.views">
18       <category
19             id="org.simantics.issues.category"
20             name="Issues">
21       </category>
22       <view
23             category="org.simantics.issues.category"
24             class="org.simantics.issues.ui.IssueView2"
25             icon="platform:/plugin/com.famfamfam.silk/icons/error.png"
26             id="org.simantics.issues.ui.issueview2"
27             name="Issues">
28       </view>
29    </extension>
30    <extension
31          point="org.eclipse.ui.preferencePages">
32       <page
33             class="org.simantics.issues.ui.preferences.IssuePreferencePage"
34             id="org.simantics.issues.ui.preferences"
35             name="Issues"/>
36    </extension>
37
38    <extension
39          point="org.eclipse.ui.commands">
40       <category
41             id="org.simantics.issues.category"
42             name="Issue Commands">
43       </category>
44       <command
45             categoryId="org.simantics.issues.category"
46             id="org.simantics.issues.toggleShowHiddenIssues"
47             name="Show Hidden Issues">
48       </command>
49       <command
50             categoryId="org.simantics.issues.category"
51             id="org.simantics.issues.toggleShowNormalIssues"
52             name="Show Normal Issues">
53       </command>
54       <command
55             categoryId="org.simantics.issues.category"
56             id="org.simantics.issues.toggleShowUserIssues"
57             name="Show User Issues">
58       </command>
59       <command
60             categoryId="org.simantics.issues.category"
61             id="org.simantics.issues.ui.export.csv"
62             name="Export Issues as CSV file">
63       </command>
64       <command
65             categoryId="org.simantics.issues.category"
66             id="org.simantics.issues.purgeResolvedIssues"
67             name="Purge Resolved Issues">
68       </command>
69       <command
70             categoryId="org.simantics.issues.category"
71             id="org.simantics.issues.configureIssueSources"
72             name="Configure Issue Sources">
73       </command>
74       <command
75             categoryId="org.simantics.issues.category"
76             id="org.simantics.issues.runActiveValidations"
77             name="Run Active Validations">
78       </command>
79       <command
80             categoryId="org.simantics.issues.category"
81             id="org.simantics.issues.updateIssuesForOpenDiagrams"
82             name="Update Issues For Open Diagrams">
83       </command>
84       <command
85             categoryId="org.simantics.issues.category"
86             id="org.simantics.issues.newUserIssue"
87             name="New User Issue">
88       </command>
89    </extension>
90    <extension
91          point="org.eclipse.ui.handlers">
92       <handler
93             commandId="org.simantics.issues.toggleShowHiddenIssues"
94             class="org.simantics.issues.ui.handler.ToggleShowHiddenIssues">
95       </handler>
96       <handler
97             commandId="org.simantics.issues.toggleShowNormalIssues"
98             class="org.simantics.issues.ui.handler.ToggleShowNormalIssues">
99       </handler>
100       <handler
101             commandId="org.simantics.issues.toggleShowUserIssues"
102             class="org.simantics.issues.ui.handler.ToggleShowUserIssues">
103       </handler>
104       <handler
105             class="org.simantics.issues.ui.handler.ExportIssuesAsCsv"
106             commandId="org.simantics.issues.ui.export.csv">
107       </handler>
108       <handler
109             commandId="org.simantics.issues.purgeResolvedIssues"
110             class="org.simantics.issues.ui.handler.PurgeResolvedIssues">
111       </handler>
112       <handler
113             commandId="org.simantics.issues.configureIssueSources"
114             class="org.simantics.issues.ui.handler.ConfigureIssueSources">
115       </handler>
116       <handler
117             commandId="org.eclipse.ui.edit.delete"
118             class="org.simantics.issues.ui.handler.Resolve">
119          <activeWhen>
120             <with
121                   variable="activePartId">
122                <equals
123                      value="org.simantics.issues.ui.issueview2">
124                </equals>
125             </with>
126          </activeWhen>
127       </handler>
128       <handler
129             commandId="org.simantics.issues.runActiveValidations"
130             class="org.simantics.issues.ui.handler.RunActiveValidations">
131       </handler>
132       <handler
133             commandId="org.simantics.issues.updateIssuesForOpenDiagrams"
134             class="org.simantics.issues.ui.handler.UpdateIssuesForOpenDiagrams">
135       </handler>
136       <handler
137             commandId="org.simantics.issues.newUserIssue"
138             class="org.simantics.issues.ui.handler.NewUserIssue">
139       </handler>
140    </extension>
141    <extension
142          point="org.eclipse.ui.menus">
143       <menuContribution
144             locationURI="popup:#GraphExplorerPopup?after=modelling.ext">
145           <dynamic
146                 class="org.simantics.issues.ui.handler.MenuActions"
147                 id="org.simantics.issues.actions">
148           </dynamic>
149           <dynamic
150                 class="org.simantics.modeling.ui.actions.ModeledActions:context=http://www.simantics.org/IssueUI-1.1/ActionContext"
151                 id="org.simantics.issues.actions2">
152           </dynamic>
153       </menuContribution>
154       <menuContribution
155             locationURI="toolbar:org.simantics.issues.ui.issueview2">
156          <command
157                commandId="org.simantics.issues.runActiveValidations"
158                icon="icons/control_play_blue.png"
159                label="Update All"
160                style="push"
161                tooltip="Update Issues for Active Model">
162              <visibleWhen
163                    checkEnabled="true">
164              </visibleWhen>
165          </command>
166          <command
167                commandId="org.simantics.issues.updateIssuesForOpenDiagrams"
168                icon="icons/control_repeat_blue.png"
169                label="Update Open"
170                style="push"
171                tooltip="Update Issues for Open Diagrams">
172              <visibleWhen
173                    checkEnabled="true">
174              </visibleWhen>
175          </command>
176          <command
177                commandId="org.simantics.issues.newUserIssue"
178                icon="icons/user_add.png"
179                label="New User Issue"
180                style="push"
181                tooltip="New User Issue">
182              <visibleWhen
183                    checkEnabled="true">
184              </visibleWhen>
185          </command>
186          <separator name="toggles" visible="true" />
187          <command
188                commandId="org.simantics.issues.toggleShowHiddenIssues"
189                icon="icons/hide.png"
190                label="Hidden"
191                style="toggle"
192                tooltip="Show Hidden Issues">
193              <visibleWhen
194                    checkEnabled="true">
195              </visibleWhen>
196          </command>
197          <command
198                commandId="org.simantics.issues.toggleShowNormalIssues"
199                icon="icons/information.png"
200                label="Normal"
201                style="toggle"
202                tooltip="Show Normal Issues">
203              <visibleWhen
204                    checkEnabled="true">
205              </visibleWhen>
206          </command>
207          <command
208                commandId="org.simantics.issues.toggleShowUserIssues"
209                icon="icons/user.png"
210                label="User"
211                style="toggle"
212                tooltip="Show User Issues">
213              <visibleWhen
214                    checkEnabled="true">
215              </visibleWhen>
216          </command>
217          <separator name="export" visible="true" />
218          <command
219                commandId="org.simantics.issues.ui.export.csv"
220                icon="icons/export.gif"
221                label="Export as CSV"
222                style="push"
223                tooltip="Export All Issues as CSV">
224              <visibleWhen
225                    checkEnabled="true">
226              </visibleWhen>
227          </command>
228          <separator name="clear" visible="true" />
229          <command
230                commandId="org.simantics.issues.purgeResolvedIssues"
231                icon="icons/purge.png"
232                label="Purge"
233                style="push"
234                tooltip="Purge Resolved Issues">
235              <visibleWhen
236                    checkEnabled="true">
237              </visibleWhen>
238          </command>
239          <command
240                commandId="org.simantics.issues.configureIssueSources"
241                icon="platform:/plugin/com.famfamfam.silk/icons/cog.png"
242                label="Configure"
243                style="push"
244                tooltip="Configure Issue Sources">
245              <visibleWhen
246                    checkEnabled="true">
247              </visibleWhen>
248          </command>
249          <separator name="additions" visible="false" />
250       </menuContribution>
251    </extension>
252
253    <extension point="org.simantics.scl.reflection.binding">
254       <namespace path="http://www.simantics.org/IssueUI-0.0/Functions">
255          <externalClass className="org.simantics.db.Resource"/>
256          <externalClass className="org.simantics.db.layer0.variable.Variable"/>
257          <externalClass className="org.simantics.db.ReadGraph"/>
258          <externalClass className="org.simantics.db.WriteGraph"/>
259          <class className="org.simantics.issues.ui.All"/>
260       </namespace>
261    </extension>
262    
263 </plugin>