Revision cf9586f2
Added by Alexander Oppermann over 9 years ago
eu.etaxonomy.taxeditor.navigation/plugin.xml | ||
---|---|---|
98 | 98 |
label="%command.label.3" |
99 | 99 |
style="push"> |
100 | 100 |
</command> |
101 |
<visibleWhen |
|
102 |
checkEnabled="true"> |
|
103 |
<reference |
|
104 |
definitionId="isCdmStoreConnected"> |
|
105 |
</reference> |
|
106 |
</visibleWhen> |
|
101 | 107 |
</menu> |
102 | 108 |
<command |
103 | 109 |
commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler" |
... | ... | |
147 | 153 |
style="push"> |
148 | 154 |
<visibleWhen |
149 | 155 |
checkEnabled="true"> |
150 |
<reference |
|
151 |
definitionId="isTaxonNode"> |
|
152 |
</reference> |
|
156 |
<and> |
|
157 |
<reference |
|
158 |
definitionId="isCdmStoreConnected"> |
|
159 |
</reference> |
|
160 |
<reference |
|
161 |
definitionId="isTaxonNode"> |
|
162 |
</reference> |
|
163 |
</and> |
|
153 | 164 |
</visibleWhen> |
154 | 165 |
</command> |
155 | 166 |
<command |
... | ... | |
181 | 192 |
commandId="org.eclipse.ui.file.import" |
182 | 193 |
label="%command.label.8" |
183 | 194 |
style="push"> |
195 |
<visibleWhen |
|
196 |
checkEnabled="true"> |
|
197 |
<reference |
|
198 |
definitionId="isCdmStoreConnected"> |
|
199 |
</reference> |
|
200 |
</visibleWhen> |
|
184 | 201 |
</command> |
185 | 202 |
<command |
186 | 203 |
commandId="org.eclipse.ui.file.export" |
187 | 204 |
label="%command.label.9" |
188 | 205 |
style="push"> |
206 |
<visibleWhen |
|
207 |
checkEnabled="true"> |
|
208 |
<reference |
|
209 |
definitionId="isCdmStoreConnected"> |
|
210 |
</reference> |
|
211 |
</visibleWhen> |
|
189 | 212 |
</command> |
190 | 213 |
<separator |
191 | 214 |
name="taxeditor-navigation.separator4" |
... | ... | |
195 | 218 |
commandId="org.eclipse.ui.edit.delete" |
196 | 219 |
label="%command.label.10" |
197 | 220 |
style="push"> |
198 |
<visibleWhen> |
|
199 |
<not> |
|
221 |
<visibleWhen |
|
222 |
checkEnabled="true"> |
|
223 |
<and> |
|
200 | 224 |
<reference |
201 |
definitionId="isSynonymNode">
|
|
225 |
definitionId="isCdmStoreConnected">
|
|
202 | 226 |
</reference> |
203 |
</not> |
|
227 |
<not> |
|
228 |
<reference |
|
229 |
definitionId="isSynonymNode"> |
|
230 |
</reference> |
|
231 |
</not> |
|
232 |
</and> |
|
204 | 233 |
</visibleWhen> |
205 | 234 |
</command> |
206 | 235 |
<separator |
... | ... | |
211 | 240 |
commandId="org.eclipse.ui.file.refresh" |
212 | 241 |
label="%command.label.11" |
213 | 242 |
style="push"> |
243 |
<visibleWhen |
|
244 |
checkEnabled="true"> |
|
245 |
<reference |
|
246 |
definitionId="isCdmStoreConnected"> |
|
247 |
</reference> |
|
248 |
</visibleWhen> |
|
214 | 249 |
</command> |
215 | 250 |
<command |
216 | 251 |
commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName" |
217 | 252 |
label="%command.label.12" |
218 | 253 |
style="push"> |
254 |
<visibleWhen |
|
255 |
checkEnabled="true"> |
|
256 |
<reference |
|
257 |
definitionId="isCdmStoreConnected"> |
|
258 |
</reference> |
|
259 |
</visibleWhen> |
|
219 | 260 |
</command> |
220 | 261 |
</menuContribution> |
221 | 262 |
<menuContribution |
... | ... | |
601 | 642 |
properties="isChecklistEditorEnabled" |
602 | 643 |
type="org.eclipse.jface.viewers.IStructuredSelection"> |
603 | 644 |
</propertyTester> |
645 |
<propertyTester |
|
646 |
class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester" |
|
647 |
id="eu.etaxonomy.taxeditor.preferences.propertyTester" |
|
648 |
namespace="eu.etaxonomy.taxeditor.preferences.propertyTester" |
|
649 |
properties="isCdmStoreConnected" |
|
650 |
type="org.eclipse.jface.viewers.IStructuredSelection"> |
|
651 |
</propertyTester> |
|
604 | 652 |
</extension> |
605 | 653 |
<extension |
606 | 654 |
point="org.eclipse.core.expressions.definitions"> |
... | ... | |
649 | 697 |
</test> |
650 | 698 |
</with> |
651 | 699 |
</definition> |
700 |
<definition |
|
701 |
id="isCdmStoreConnected"> |
|
702 |
<with |
|
703 |
variable="selection"> |
|
704 |
<test |
|
705 |
property="eu.etaxonomy.taxeditor.preferences.propertyTester.isCdmStoreConnected"> |
|
706 |
</test> |
|
707 |
</with> |
|
708 |
</definition> |
|
652 | 709 |
</extension> |
653 | 710 |
</plugin> |
Also available in: Unified diff
added a new propertytester to check if the editor is connected to database
hide popupmenu in taxon navigator view if not connected to database