Revision cc975ee6
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/fragment.e4xmi | ||
---|---|---|
4 | 4 |
<imports xsi:type="commands:Command" xmi:id="_Qz6EMD62EeekvPZafWEv7w" elementId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"/> |
5 | 5 |
<imports xsi:type="commands:Command" xmi:id="_majwMEaQEeeXMc6kSYO7Xg" elementId="org.eclipse.ui.file.save"/> |
6 | 6 |
<imports xsi:type="commands:Command" xmi:id="_oBEz8GhvEee3K4uKJljEYg" elementId="eu.etaxonomy.taxeditor.store.command.featureTree.removeFeature"/> |
7 |
<imports xsi:type="commands:Command" xmi:id="_0WYQcL2lEeeyWfw0n8-ICQ" elementId="eu.etaxonomy.taxeditor.workbench.command.collapse"/> |
|
7 | 8 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_gSpRsDQDEeeTNOFVGI4q2w" featurename="descriptors" parentElementId="xpath:/"> |
8 | 9 |
<elements xsi:type="basic:PartDescriptor" xmi:id="_gSpRsTQDEeeTNOFVGI4q2w" elementId="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView" label="%command.label.DERIVATIVE_EDITOR" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.editor/icons/derivate_view-16x16-32.png" tooltip="%command.label.DERIVATIVE_EDITOR" allowMultiple="true" category="" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.editor/eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"> |
9 | 10 |
<tags>View</tags> |
... | ... | |
114 | 115 |
</menus> |
115 | 116 |
<toolbar xmi:id="_sfp2sL2jEeeyWfw0n8-ICQ" elementId="eu.etaxonomy.taxeditor.editor.toolbar.0"> |
116 | 117 |
<children xsi:type="menu:HandledToolItem" xmi:id="_t7kbEL2jEeeyWfw0n8-ICQ" elementId="eu.etaxonomy.taxeditor.editor.handledtoolitem.commandname41" label="%command.name.41" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.editor/icons/link_obj.gif" type="Check" command="_4eDWoIy0EeeQaL4TL8oz7Q"/> |
118 |
<children xsi:type="menu:HandledToolItem" xmi:id="_1ltxYL2lEeeyWfw0n8-ICQ" elementId="eu.etaxonomy.taxeditor.editor.handledtoolitem.collapse" label="Collapse" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.store/icons/collapseall.gif" command="_0WYQcL2lEeeyWfw0n8-ICQ"/> |
|
117 | 119 |
</toolbar> |
118 | 120 |
</elements> |
119 | 121 |
<elements xsi:type="basic:PartDescriptor" xmi:id="_KJxRIIZ4EeeOc9DZcjNN7g" elementId="eu.etaxonomy.taxeditor.editor.view.concept.e4.ConceptViewPartE4" label="%view.name.2" iconURI="" closeable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.editor/eu.etaxonomy.taxeditor.editor.view.concept.e4.ConceptViewPartE4"> |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java | ||
---|---|---|
66 | 66 |
import eu.etaxonomy.taxeditor.view.e4.AbstractCdmEditorPartE4; |
67 | 67 |
import eu.etaxonomy.taxeditor.view.e4.details.DetailsPartE4; |
68 | 68 |
import eu.etaxonomy.taxeditor.view.e4.supplementaldata.SupplementalDataPartE4; |
69 |
import eu.etaxonomy.taxeditor.workbench.part.ICollapsable; |
|
69 | 70 |
|
70 | 71 |
/** |
71 | 72 |
* @author pplitzner |
... | ... | |
73 | 74 |
* |
74 | 75 |
*/ |
75 | 76 |
public class FactualDataPartE4 extends AbstractCdmEditorPartE4 |
76 |
implements IPartContentHasDetails, IPartContentHasSupplementalData, ICdmEntitySessionEnabled { |
|
77 |
implements IPartContentHasDetails, IPartContentHasSupplementalData, ICdmEntitySessionEnabled, |
|
78 |
ICollapsable { |
|
77 | 79 |
|
78 | 80 |
/** |
79 | 81 |
* Maps {@link FeatureNodeContainerTree} to their corresponding {@link TaxonDescritpion}.<br> |
... | ... | |
272 | 274 |
super.changed(object); |
273 | 275 |
} |
274 | 276 |
|
277 |
/** |
|
278 |
* {@inheritDoc} |
|
279 |
*/ |
|
280 |
@Override |
|
281 |
public void collapse() { |
|
282 |
if(viewer instanceof TreeViewer) { |
|
283 |
((TreeViewer) viewer).collapseAll(); |
|
284 |
} |
|
285 |
} |
|
286 |
|
|
275 | 287 |
public void toggleShowOnlyIndividualAssociations(){ |
276 | 288 |
//FIXME E4 migrate toggle menu icon |
277 | 289 |
provider.toggleShowOnlyIndividualAssociations(); |
Also available in: Unified diff
ref #6907 Add "collapse" item to factual data part