]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.linking.ui/plugin.xml
Working towards multiple readers.
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4    <extension
5          point="org.eclipse.ui.views">
6       <category
7             id="org.simantics.document.linking.viewcategory"
8             name="Document linking">
9       </category>
10       <view
11             allowMultiple="false"
12             category="org.simantics.document.linking.viewcategory"
13             class="org.simantics.document.linking.views.SourceView"
14             icon="platform:/plugin/com.famfamfam.silk/icons/arrow_inout.png"
15             id="org.simantics.document.linking.views.SourceView"
16             name="Document Link View">
17       </view>
18    </extension>
19    <extension
20          point="org.eclipse.ui.menus">
21       <menuContribution
22             locationURI="popup:#SourcePropertyViewPopup">
23          <dynamic
24                class="org.simantics.modeling.ui.actions.ModeledActions:context=http://www.simantics.org/DocumentLink-1.0/SourcePropertyViewpointActionContext"
25                id="org.simantics.document.linking.modeledActions">
26          </dynamic>
27          <dynamic
28                class="org.simantics.structural.ui.menuContributions.ShowAllChildrenContribution"
29                id="org.simantics.document.linking.showall">
30          </dynamic>
31       </menuContribution>
32       <menuContribution
33             locationURI="popup:#SourceObjectViewPopup">
34          <dynamic
35                class="org.simantics.modeling.ui.actions.ModeledActions:context=http://www.simantics.org/DocumentLink-1.0/SourceObjectViewpointActionContext"
36                id="org.simantics.document.linking.modeledActions2">
37          </dynamic>
38          <dynamic
39                class="org.simantics.structural.ui.menuContributions.ShowAllChildrenContribution"
40                id="org.simantics.document.linking.showall2">
41          </dynamic>
42       </menuContribution>
43       <menuContribution
44             locationURI="popup:#SourceModelViewPopup">
45          <dynamic
46                class="org.simantics.modeling.ui.actions.ModeledActions:context=http://www.simantics.org/DocumentLink-1.0/ModelViewpointActionContext"
47                id="org.simantics.document.linking.modeledActions3">
48          </dynamic>
49          <dynamic
50                class="org.simantics.structural.ui.menuContributions.ShowAllChildrenContribution"
51                id="org.simantics.document.linking.showall3">
52          </dynamic>
53       </menuContribution>
54       <menuContribution
55             allPopups="false"
56             locationURI="popup:#GraphExplorerPopup?after=wbStart">
57          <command
58                commandId="org.simantics.document.linking.updatereferences"
59                icon="platform:/plugin/com.famfamfam.silk/icons/page_white_go.png"
60                label="Update References"
61                style="push">
62             <visibleWhen
63                   checkEnabled="true">
64                <with
65                      variable="selection">
66                   <and>
67                      <test
68                            args="http://www.simantics.org/Document-1.2/Document"
69                            property="org.simantics.graph.resourceType">
70                      </test>
71                      <test
72                            args="http://www.simantics.org/Document-1.2/HasNewerVersion"
73                            property="org.simantics.graph.hasStatement">
74                      </test>
75                   </and>
76                </with>
77             </visibleWhen>
78          </command>
79          <command
80                commandId="org.simantics.document.linking.searchlinks"
81                icon="platform:/plugin/com.famfamfam.silk/icons/magnifier.png"
82                label="Search Linked Objects"
83                style="push">
84             <visibleWhen
85                   checkEnabled="true">
86                <with
87                      variable="selection">
88                   <test
89                         args="http://www.simantics.org/Document-1.2/Document"
90                         property="org.simantics.graph.resourceType">
91                   </test>
92                </with>
93             </visibleWhen>
94          </command>
95          <!--
96          <command
97                commandId="org.simantics.document.linking.generatereport"
98                icon="platform:/plugin/com.famfamfam.silk/icons/page_white.png"
99                label="Generate Report"
100                style="push">
101             <visibleWhen
102                   checkEnabled="true">
103                <with
104                      variable="selection">
105                   <test
106                         args="http://www.simantics.org/Simulation-1.1/Model"
107                         property="org.simantics.graph.resourceType">
108                   </test>
109                </with>
110             </visibleWhen>
111          </command>
112          -->
113       </menuContribution>
114    </extension>
115    <extension
116          point="org.eclipse.ui.commands">
117       <command
118             id="org.simantics.document.linking.updatereferences"
119             name="Update References">
120       </command>
121       <command
122             id="org.simantics.document.linking.searchlinks"
123             name="Search Linked Objects">
124       </command>
125    </extension>
126    <extension
127          point="org.eclipse.ui.handlers">
128       <handler
129             class="org.simantics.document.linking.actions.UpdateReferencesHandler"
130             commandId="org.simantics.document.linking.updatereferences">
131       </handler>
132       <handler
133             class="org.simantics.document.linking.actions.SearchLinksHandler"
134             commandId="org.simantics.document.linking.searchlinks">
135       </handler>
136    </extension>
137    <extension
138          point="org.eclipse.ui.exportWizards">
139       <wizard
140             class="org.simantics.document.linking.wizard.ReportWizard"
141             icon="platform:/plugin/com.famfamfam.silk/icons/page_white.png"
142             id="org.simantics.document.linking.reportwizard"
143             name="Document Link Reports">
144       </wizard>
145    </extension>
146
147 </plugin>