Project

General

Profile

« Previous | Next » 

Revision be5f1c58

Added by Patrick Plitzner over 6 years ago

ref #6568 Add perspective switcher

View differences:

eu.etaxonomy.taxeditor.application/Application.e4xmi
1 1
<?xml version="1.0" encoding="ASCII"?>
2
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmi:id="_8ht78MCfEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.application">
2
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_8ht78MCfEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.application">
3 3
  <children xsi:type="basic:TrimmedWindow" xmi:id="_-pVL4MCjEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.trimmedwindow.edittaxonomiceditor" selectedElement="_9JeQwMClEeeY5_oZn4Cc5g" label="EDIT Taxonomic Editor" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.application/icons/256color_16x16.gif">
4
    <children xsi:type="advanced:PerspectiveStack" xmi:id="_9JeQwMClEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.perspectivestack.0">
4
    <children xsi:type="advanced:PerspectiveStack" xmi:id="_9JeQwMClEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.perspectivestack.0" selectedElement="_9wi30MClEeeY5_oZn4Cc5g">
5 5
      <children xsi:type="advanced:Perspective" xmi:id="_9wi30MClEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.perspective.taxonomic" selectedElement="_-by0QMClEeeY5_oZn4Cc5g" label="Taxonomic">
6 6
        <children xsi:type="basic:PartSashContainer" xmi:id="_-by0QMClEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.partsashcontainer.main" selectedElement="_78NFAMCoEee1wcT3n47ovA" horizontal="true">
7 7
          <children xsi:type="basic:PartStack" xmi:id="_78NFAMCoEee1wcT3n47ovA" elementId="taxonomic.navigation"/>
......
15 15
          </children>
16 16
        </children>
17 17
      </children>
18
      <children xsi:type="advanced:Perspective" xmi:id="_ZcWQEMrkEeewfqnfrNoNfg" elementId="eu.etaxonomy.taxeditor.application.perspective.polytomous" label="Polytomous">
19
        <children xsi:type="basic:PartSashContainer" xmi:id="_dvQ2wMrkEeewfqnfrNoNfg" elementId="eu.etaxonomy.taxeditor.application.partsashcontainer.polytomous.main" selectedElement="_dvQ2wcrkEeewfqnfrNoNfg" horizontal="true">
20
          <children xsi:type="basic:PartStack" xmi:id="_dvQ2wcrkEeewfqnfrNoNfg" elementId="polytomous.navigation"/>
21
        </children>
22
      </children>
18 23
    </children>
19 24
    <mainMenu xmi:id="__eR6EMCnEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.menu.main"/>
20 25
    <trimBars xmi:id="_GyNiEMClEeeY5_oZn4Cc5g" elementId="eu.etaxonomy.taxeditor.application.trimbar.top"/>
21 26
    <trimBars xmi:id="_WpqYMMLwEee0N85Mii-Chg" elementId="eu.etaxonomy.taxeditor.application.trimbar.bottom" side="Bottom"/>
22 27
  </children>
28
  <trimContributions xmi:id="_L4iCkMrgEeewfqnfrNoNfg" elementId="eu.etaxonomy.taxeditor.application.trimcontribution.perspectiveSwitch" parentId="eu.etaxonomy.taxeditor.application.trimbar.top" positionInParent="">
29
    <children xsi:type="menu:ToolControl" xmi:id="__Jp_YMrjEeewfqnfrNoNfg" elementId="eu.etaxonomy.taxeditor.application.toolcontrol.perspective.space" contributionURI="bundleclass://eu.etaxonomy.taxeditor.application/eu.etaxonomy.taxeditor.perspective.SpacerControl">
30
      <tags>stretch</tags>
31
    </children>
32
    <children xsi:type="menu:ToolBar" xmi:id="_L4iCksrgEeewfqnfrNoNfg" elementId="eu.etaxonomy.taxeditor.application.toolbar.perspectiveSwitch">
33
      <children xsi:type="menu:ToolControl" xmi:id="_L4iCk8rgEeewfqnfrNoNfg" elementId="eu.etaxonomy.taxeditor.perspective.PerspectiveSwitch" contributionURI="bundleclass://eu.etaxonomy.taxeditor.application/eu.etaxonomy.taxeditor.perspective.PerspectiveSwitch"/>
34
    </children>
35
  </trimContributions>
23 36
  <addons xmi:id="_8ht78cCfEeeY5_oZn4Cc5g" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
24 37
  <addons xmi:id="_8ht78sCfEeeY5_oZn4Cc5g" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
25 38
  <addons xmi:id="_8ht788CfEeeY5_oZn4Cc5g" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
eu.etaxonomy.taxeditor.application/META-INF/MANIFEST.MF
37 37
 org.eclipse.e4.core.contexts,
38 38
 org.eclipse.e4.core.di,
39 39
 org.eclipse.e4.core.services,
40
 org.eclipse.e4.core.di.annotations
40
 org.eclipse.e4.core.di.annotations,
41
 eu.etaxonomy.taxeditor.cdmlib
41 42
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
42 43
Bundle-ActivationPolicy: lazy
43 44
Import-Package: eu.etaxonomy.cdm.database,
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/PerspectiveSwitch.java
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.perspective;
10

  
11
import java.util.List;
12

  
13
import javax.annotation.PostConstruct;
14

  
15
import org.eclipse.e4.ui.model.application.MApplication;
16
import org.eclipse.e4.ui.model.application.ui.advanced.MPerspective;
17
import org.eclipse.e4.ui.workbench.modeling.EModelService;
18
import org.eclipse.e4.ui.workbench.modeling.EPartService;
19
import org.eclipse.nebula.widgets.tablecombo.TableCombo;
20
import org.eclipse.swt.SWT;
21
import org.eclipse.swt.events.SelectionEvent;
22
import org.eclipse.swt.events.SelectionListener;
23
import org.eclipse.swt.graphics.Image;
24
import org.eclipse.swt.widgets.Composite;
25
import org.eclipse.swt.widgets.Display;
26
import org.eclipse.swt.widgets.TableItem;
27

  
28
/**
29
 * @author pplitzner
30
 * @since Nov 16, 2017
31
 *
32
 */
33
public class PerspectiveSwitch {
34

  
35
    @PostConstruct
36
    public void create(Composite parent, MApplication application, EModelService modelService,
37
            EPartService partService){
38
        TableCombo combo = new TableCombo(parent, SWT.BORDER | SWT.READ_ONLY | SWT.SINGLE);
39

  
40
        Image image = Display.getDefault().getSystemImage(SWT.ICON_ERROR);
41

  
42
        List<MPerspective> perspectives = modelService.findElements(application, null, MPerspective.class, null);
43

  
44
        for (MPerspective perspective : perspectives) {
45
            TableItem ti = new TableItem(combo.getTable(), SWT.NONE);
46
            ti.setText(perspective.getLabel());
47
            ti.setData(perspective);
48
//            ti.setImage(image);
49
        }
50

  
51
        combo.addSelectionListener(new SelectionListener() {
52

  
53
            @Override
54
            public void widgetSelected(SelectionEvent e) {
55
                TableItem item = combo.getTable().getSelection()[0];
56
                MPerspective perspective = (MPerspective) item.getData();
57
                partService.switchPerspective(perspective);
58
            }
59

  
60
            @Override
61
            public void widgetDefaultSelected(SelectionEvent e) {
62
                // TODO Auto-generated method stub
63

  
64
            }
65
        });
66

  
67
    }
68

  
69
}
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/perspective/SpacerControl.java
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.perspective;
10

  
11
import javax.annotation.PostConstruct;
12

  
13
import org.eclipse.swt.SWT;
14
import org.eclipse.swt.layout.FillLayout;
15
import org.eclipse.swt.widgets.Composite;
16

  
17
/**
18
 * @author pplitzner
19
 * @since Nov 16, 2017
20
 *
21
 */
22
public class SpacerControl {
23
    @PostConstruct
24
    public void postConstruct(final Composite parent) {
25
        Composite body = new Composite(parent, SWT.NONE);
26

  
27
        body.setLayout(new FillLayout());
28
    }
29
}
eu.etaxonomy.taxeditor.cdmlib/.classpath
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	<classpathentry exported="true" kind="lib" path="lib/org.eclipse.nebula.widgets.tablecombo_1.1.0.201711021145.jar"/>
3 4
	<classpathentry exported="true" kind="lib" path="lib/org.eclipse.nebula.widgets.compositetable_1.0.0.201711021145.jar"/>
4 5
	<classpathentry exported="true" kind="lib" path="lib/lucene-suggest-5.4.1.jar"/>
5 6
	<classpathentry exported="true" kind="lib" path="lib/lucene-sandbox-5.4.1.jar"/>
eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF
408 408
 org.apache.lucene.util.packed,
409 409
 org.apache.sanselan;uses:="org.apache.sanselan.common,org.apache.sanselan.common.byteSources",
410 410
 org.apache.xerces.dom,
411
 org.eclipse.nebula.jface.tablecomboviewer,
411 412
 org.eclipse.nebula.widgets.compositetable,
413
 org.eclipse.nebula.widgets.tablecombo,
412 414
 org.h2.jdbc,
413 415
 org.hamcrest,
414 416
 org.hibernate,
......
862 864
 lib/lucene-analyzers-common-5.4.1.jar,
863 865
 lib/lucene-sandbox-5.4.1.jar,
864 866
 lib/lucene-suggest-5.4.1.jar,
865
 lib/org.eclipse.nebula.widgets.compositetable_1.0.0.201711021145.jar
867
 lib/org.eclipse.nebula.widgets.compositetable_1.0.0.201711021145.jar,
868
 lib/org.eclipse.nebula.widgets.tablecombo_1.1.0.201711021145.jar
866 869
Import-Package: eu.etaxonomy.cdm.api.application
eu.etaxonomy.taxeditor.cdmlib/build.properties
221 221
               lib/lucene-analyzers-common-5.4.1.jar,\
222 222
               lib/lucene-sandbox-5.4.1.jar,\
223 223
               lib/lucene-suggest-5.4.1.jar,\
224
               lib/org.eclipse.nebula.widgets.compositetable_1.0.0.201711021145.jar
224
               lib/org.eclipse.nebula.widgets.compositetable_1.0.0.201711021145.jar,\
225
               lib/org.eclipse.nebula.widgets.tablecombo_1.1.0.201711021145.jar
225 226

  
226 227
jars.compile.order = .
227 228
output.. = bin/
eu.etaxonomy.taxeditor.navigation/fragment.e4xmi
18 18
  <imports xsi:type="commands:Command" xmi:id="_mOC30KqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsvPrint"/>
19 19
  <imports xsi:type="commands:Command" xmi:id="_n1FHEKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCdmLight"/>
20 20
  <imports xsi:type="commands:Command" xmi:id="_aN3BsL2gEeeyWfw0n8-ICQ" elementId="eu.etaxonomy.taxeditor.workbench.command.collapse"/>
21
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_oDvMsCTfEeeiN5lBIuqN3g" featurename="children" parentElementId="eu.etaxonomy.taxeditor.workbench.trimcontribution.mainToolbar">
22
    <elements xsi:type="menu:ToolControl" xmi:id="_7kZI4CTfEeeiN5lBIuqN3g" elementId="eu.etaxonomy.taxeditor.navigation.toolcontrol.search_bar" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.search.SearchBar"/>
23
  </fragments>
24 21
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_Z-4rwJIVEeeJAdt8ZUxyaw" featurename="descriptors" parentElementId="xpath:/">
25 22
    <elements xsi:type="basic:PartDescriptor" xmi:id="_gH5RYJIVEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.navigator" label="%view.name.2" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.navigation/icons/edit_16x16.gif" closeable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.navigator.e4.TaxonNavigatorE4"/>
26 23
    <elements xsi:type="basic:PartDescriptor" xmi:id="_AcycAKOkEee6lJH578buGg" elementId="eu.etaxonomy.taxeditor.navigation.search.e4.SearchResultViewE4" label="%view.name" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.navigation/icons/system-search.png" allowMultiple="true" closeable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.search.e4.SearchResultViewE4">
27 24
      <tags>nonRestore</tags>
28 25
    </elements>
29
    <elements xsi:type="basic:PartDescriptor" xmi:id="_FajhoKQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4" label="%view.name.1" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4">
30
      <handlers xmi:id="_qXpqEKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.NewPolytomousKeyHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.NewPolytomousKeyHandlerE4" command="_lAZG8KQUEeeTrq_CRrR-jg"/>
31
      <handlers xmi:id="_tvg9wKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingEditPolytomousKeyNodesHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingEditPolytomousKeyNodesHandlerE4" command="_BrgnkKQVEeeTrq_CRrR-jg"/>
32
      <handlers xmi:id="_xhc-UKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingUpdatePolytomousKeyAllNodesHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingUpdatePolytomousKeyAllNodesHandlerE4" command="_6S6M4KQVEeeTrq_CRrR-jg"/>
33
      <handlers xmi:id="_CoKnoKQWEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RefreshPolytomousKeyListHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RefreshPolytomousKeyListHandlerE4" command="_4BQ6YKQVEeeTrq_CRrR-jg"/>
34
      <handlers xmi:id="_GjyIoKQWEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingDeletePolytomousKeyHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingDeletePolytomousKeyHandlerE4" command="_8C8AEKQVEeeTrq_CRrR-jg"/>
35
      <menus xsi:type="menu:PopupMenu" xmi:id="_FajhpKQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.popupmenu.polytomouskeyview">
36
        <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_FajhpaQUEeeTrq_CRrR-jg" coreExpressionId="isCdmStoreConnected"/>
37
        <children xsi:type="menu:HandledMenuItem" xmi:id="_FajhpqQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.new" label="%command.label.15" command="_lAZG8KQUEeeTrq_CRrR-jg"/>
38
        <children xsi:type="menu:DynamicMenuContribution" xmi:id="_ot9k4KQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.polytomouskey.dynamicmenucontribution.cdmViewer" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.view.CdmViewerContextMenuE4"/>
39
        <children xsi:type="menu:HandledMenuItem" xmi:id="_Fajhp6QUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.edit" label="%command.label.16" command="_BrgnkKQVEeeTrq_CRrR-jg"/>
40
        <children xsi:type="menu:Menu" xmi:id="_IKePEKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.menu.polytomouskey.refresh" label="%menu.label.0">
41
          <children xsi:type="menu:HandledMenuItem" xmi:id="_JS0-QKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.refreshlist" label="%command.label.17" command="_4BQ6YKQVEeeTrq_CRrR-jg"/>
42
          <children xsi:type="menu:HandledMenuItem" xmi:id="_JsJdMKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.refreshnodes" label="%command.label.18" command="_6S6M4KQVEeeTrq_CRrR-jg"/>
43
        </children>
44
        <children xsi:type="menu:MenuSeparator" xmi:id="_FajhqKQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.editor.menuseparator.18"/>
45
        <children xsi:type="menu:HandledMenuItem" xmi:id="_FajhqaQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.refresh" label="%command.label.19" command="_8C8AEKQVEeeTrq_CRrR-jg"/>
46
      </menus>
47
    </elements>
26
    <elements xsi:type="basic:PartDescriptor" xmi:id="_FajhoKQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4" label="%view.name.1" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4"/>
48 27
  </fragments>
49 28
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_wITZ8JIVEeeJAdt8ZUxyaw" featurename="children" parentElementId="eu.etaxonomy.taxeditor.menu.showView" positionInList="before:eu.etaxonomy.taxeditor.workbench.menuseparator.navigation">
50 29
    <elements xsi:type="menu:HandledMenuItem" xmi:id="_X73BkLMmEeeMU61m8yqdaA" elementId="eu.etaxonomy.taxeditor.navigator.showViewMenu.polytomouskeys" label="%view.name.1" iconURI="" command="_zm9lYKkPEeejedk4mZQIGw">
......
164 143
        <children xsi:type="menu:DynamicMenuContribution" xmi:id="_tVmTQKOkEee6lJH578buGg" elementId="eu.etaxonomy.taxeditor.navigation.dynamicmenucontribution.searchResult.cdmViewer" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.view.CdmViewerContextMenuE4"/>
165 144
      </menus>
166 145
    </elements>
146
    <elements xsi:type="basic_1:Part" xmi:id="_3rvxcMrlEeeYpp5eKCnHGg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4" label="%view.name.1">
147
      <handlers xmi:id="_qXpqEKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.NewPolytomousKeyHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.NewPolytomousKeyHandlerE4" command="_lAZG8KQUEeeTrq_CRrR-jg"/>
148
      <handlers xmi:id="_tvg9wKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingEditPolytomousKeyNodesHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingEditPolytomousKeyNodesHandlerE4" command="_BrgnkKQVEeeTrq_CRrR-jg"/>
149
      <handlers xmi:id="_xhc-UKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingUpdatePolytomousKeyAllNodesHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingUpdatePolytomousKeyAllNodesHandlerE4" command="_6S6M4KQVEeeTrq_CRrR-jg"/>
150
      <handlers xmi:id="_CoKnoKQWEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RefreshPolytomousKeyListHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RefreshPolytomousKeyListHandlerE4" command="_4BQ6YKQVEeeTrq_CRrR-jg"/>
151
      <handlers xmi:id="_GjyIoKQWEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingDeletePolytomousKeyHandlerE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler.RemotingDeletePolytomousKeyHandlerE4" command="_8C8AEKQVEeeTrq_CRrR-jg"/>
152
      <menus xsi:type="menu:PopupMenu" xmi:id="_FajhpKQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.popupmenu.polytomouskeyview">
153
        <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_FajhpaQUEeeTrq_CRrR-jg" coreExpressionId="isCdmStoreConnected"/>
154
        <children xsi:type="menu:HandledMenuItem" xmi:id="_FajhpqQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.new" label="%command.label.15" command="_lAZG8KQUEeeTrq_CRrR-jg"/>
155
        <children xsi:type="menu:DynamicMenuContribution" xmi:id="_ot9k4KQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.polytomouskey.dynamicmenucontribution.cdmViewer" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.view.CdmViewerContextMenuE4"/>
156
        <children xsi:type="menu:HandledMenuItem" xmi:id="_Fajhp6QUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.edit" label="%command.label.16" command="_BrgnkKQVEeeTrq_CRrR-jg"/>
157
        <children xsi:type="menu:Menu" xmi:id="_IKePEKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.menu.polytomouskey.refresh" label="%menu.label.0">
158
          <children xsi:type="menu:HandledMenuItem" xmi:id="_JS0-QKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.refreshlist" label="%command.label.17" command="_4BQ6YKQVEeeTrq_CRrR-jg"/>
159
          <children xsi:type="menu:HandledMenuItem" xmi:id="_JsJdMKQVEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.refreshnodes" label="%command.label.18" command="_6S6M4KQVEeeTrq_CRrR-jg"/>
160
        </children>
161
        <children xsi:type="menu:MenuSeparator" xmi:id="_FajhqKQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.editor.menuseparator.18"/>
162
        <children xsi:type="menu:HandledMenuItem" xmi:id="_FajhqaQUEeeTrq_CRrR-jg" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.polytomouskey.refresh" label="%command.label.19" command="_8C8AEKQVEeeTrq_CRrR-jg"/>
163
      </menus>
164
    </elements>
165
  </fragments>
166
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_KEPdoMrkEeewfqnfrNoNfg" featurename="children" parentElementId="eu.etaxonomy.taxeditor.application.trimcontribution.perspectiveSwitch" positionInList="after:eu.etaxonomy.taxeditor.workbench.menu.toolbar.0">
167
    <elements xsi:type="menu:ToolControl" xmi:id="_7kZI4CTfEeeiN5lBIuqN3g" elementId="eu.etaxonomy.taxeditor.navigation.toolcontrol.search_bar" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.search.SearchBar"/>
168
  </fragments>
169
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_kn9-gMrlEeewfqnfrNoNfg" featurename="children" parentElementId="polytomous.navigation">
170
    <elements xsi:type="advanced:Placeholder" xmi:id="_1cLikMrlEeeYpp5eKCnHGg" elementId="eu.etaxonomy.taxeditor.navigation.placeholder.0" ref="_3rvxcMrlEeeYpp5eKCnHGg"/>
167 171
  </fragments>
168 172
</fragment:ModelFragments>
eu.etaxonomy.taxeditor.workbench/fragment.e4xmi
69 69
      </children>
70 70
    </elements>
71 71
  </fragments>
72
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_nOhPoB9zEeeIA_2gwq7JKg" featurename="trimContributions" parentElementId="xpath:/">
73
    <elements xsi:type="menu:TrimContribution" xmi:id="_FIbzwB92EeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.workbench.trimcontribution.mainToolbar" parentId="eu.etaxonomy.taxeditor.application.trimbar.top" positionInParent="">
74
      <children xsi:type="menu:ToolBar" xmi:id="_KDVngB92EeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.workbench.menu.toolbar.0">
75
        <children xsi:type="menu:HandledToolItem" xmi:id="_KvxPsB92EeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.workbench.menu.toolbar.new" label="%command.label.21" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/new_wiz.png" command="_hooiQB7QEeeC-JvycL9ysA"/>
76
        <children xsi:type="menu:HandledToolItem" xmi:id="_hnQUcFp0Eee4PsIXei-TMg" elementId="eu.etaxonomy.taxeditor.workbench.menu.toolbar.save" label="%command.label.22" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.store/icons/save_edit.gif" command="_X-56IFp0Eee4PsIXei-TMg"/>
77
      </children>
78
    </elements>
79
  </fragments>
80 72
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_1jM6sB4JEeehWtOSgLepjA" featurename="commands" parentElementId="xpath:/">
81 73
    <elements xsi:type="commands:Command" xmi:id="_dlo3oB60EeePLJ5to5QrXQ" elementId="org.eclipse.ui.file.import" commandName="%command.label.3"/>
82 74
    <elements xsi:type="commands:Command" xmi:id="_CYHrgB62EeePLJ5to5QrXQ" elementId="org.eclipse.ui.file.export" commandName="%command.label.4"/>
......
127 119
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_lRtmsMLwEee0N85Mii-Chg" featurename="children" parentElementId="eu.etaxonomy.taxeditor.application.trimbar.bottom">
128 120
    <elements xsi:type="menu:ToolControl" xmi:id="_oKE68MLwEee0N85Mii-Chg" elementId="eu.etaxonomy.taxeditor.workbench.StatusBar" contributionURI="bundleclass://eu.etaxonomy.taxeditor.workbench/eu.etaxonomy.taxeditor.workbench.StatusBar"/>
129 121
  </fragments>
122
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_2ZfKQMrjEeewfqnfrNoNfg" featurename="children" parentElementId="eu.etaxonomy.taxeditor.application.trimcontribution.perspectiveSwitch" positionInList="first">
123
    <elements xsi:type="menu:ToolBar" xmi:id="_KDVngB92EeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.workbench.menu.toolbar.0">
124
      <children xsi:type="menu:HandledToolItem" xmi:id="_KvxPsB92EeeIA_2gwq7JKg" elementId="eu.etaxonomy.taxeditor.workbench.menu.toolbar.new" label="%command.label.21" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/new_wiz.png" command="_hooiQB7QEeeC-JvycL9ysA"/>
125
      <children xsi:type="menu:HandledToolItem" xmi:id="_hnQUcFp0Eee4PsIXei-TMg" elementId="eu.etaxonomy.taxeditor.workbench.menu.toolbar.save" label="%command.label.22" iconURI="platform:/plugin/eu.etaxonomy.taxeditor.store/icons/save_edit.gif" command="_X-56IFp0Eee4PsIXei-TMg"/>
126
    </elements>
127
  </fragments>
130 128
</fragment:ModelFragments>

Also available in: Unified diff