Revision 6d460ad2
Added by Patrick Plitzner over 10 years ago
- added context menu property testers for "Create new..." command
eu.etaxonomy.taxeditor.editor/plugin.xml | ||
---|---|---|
544 | 544 |
</menuContribution> |
545 | 545 |
<menuContribution |
546 | 546 |
locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"> |
547 |
<command |
|
548 |
commandId="eu.etaxonomy.taxeditor.description.commands.adddescrip" |
|
549 |
label="New DerivedUni" |
|
550 |
style="push"> |
|
551 |
</command> |
|
547 |
<menu |
|
548 |
label="New"> |
|
549 |
<dynamic |
|
550 |
class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu" |
|
551 |
id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu"> |
|
552 |
</dynamic> |
|
553 |
<visibleWhen |
|
554 |
checkEnabled="true"> |
|
555 |
<or> |
|
556 |
<reference |
|
557 |
definitionId="isFieldUnit"> |
|
558 |
</reference> |
|
559 |
<reference |
|
560 |
definitionId="isDerivedUnit"> |
|
561 |
</reference> |
|
562 |
</or> |
|
563 |
</visibleWhen> |
|
564 |
</menu> |
|
552 | 565 |
<separator |
553 | 566 |
name="eu.etaxonomy.taxeditor.editor.separator1" |
554 | 567 |
visible="true"> |
... | ... | |
557 | 570 |
class="eu.etaxonomy.taxeditor.editor.view.derivate.CreateDerivateContextMenu" |
558 | 571 |
id="eu.etaxonomy.taxeditor.editor.view.derivate.CreateDerivateContextMenu"> |
559 | 572 |
</dynamic> |
560 |
<command |
|
561 |
commandId="eu.etaxonomy.taxeditor.editor.command1" |
|
562 |
label="bla" |
|
563 |
style="push" |
|
564 |
tooltip="bla"> |
|
565 |
</command> |
|
566 | 573 |
</menuContribution> |
567 | 574 |
|
568 | 575 |
|
... | ... | |
1207 | 1214 |
</test> |
1208 | 1215 |
</with> |
1209 | 1216 |
</definition> |
1217 |
<definition |
|
1218 |
id="isFieldUnit"> |
|
1219 |
<with |
|
1220 |
variable="selection"> |
|
1221 |
<test |
|
1222 |
property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester.isFieldUnit"> |
|
1223 |
</test> |
|
1224 |
</with> |
|
1225 |
</definition> |
|
1226 |
<definition |
|
1227 |
id="isDerivedUnit"> |
|
1228 |
<with |
|
1229 |
variable="selection"> |
|
1230 |
<test |
|
1231 |
property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester.isSpecimen"> |
|
1232 |
</test> |
|
1233 |
</with> |
|
1234 |
</definition> |
|
1210 | 1235 |
</extension> |
1211 | 1236 |
<extension |
1212 | 1237 |
point="org.eclipse.core.expressions.propertyTesters"> |
... | ... | |
1231 | 1256 |
properties="isGroup" |
1232 | 1257 |
type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor"> |
1233 | 1258 |
</propertyTester> |
1259 |
<propertyTester |
|
1260 |
class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester" |
|
1261 |
id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester" |
|
1262 |
namespace="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester" |
|
1263 |
properties="isFieldUnit,isSpecimen" |
|
1264 |
type="org.eclipse.jface.viewers.TreeSelection"> |
|
1265 |
</propertyTester> |
|
1234 | 1266 |
</extension> |
1235 | 1267 |
<extension |
1236 | 1268 |
point="org.eclipse.ui.bindings"> |
Also available in: Unified diff