Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Top Window Trim(Dragging a toolbar.)
Top Window Trim [message #1790774] Sat, 16 June 2018 10:14
Philippe Monté is currently offline Philippe MontéFriend
Messages: 2
Registered: July 2012
Junior Member
I have a TrimmedWindow with a top trimbar including one toolbar.

When I drag the tool bar, i can only drop it into left or right trimbars. When the toolbar is moved, the top trimbar disappears as it contains no tollbar else.

Then it's impossible to drag and drop back the toolbar in the top trimbar.
Same problem with the bottom timbar.

What am i doing wrong?

<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:ui="http://www.eclipse.org/ui/2010/UIModel/application/ui" xmi:id="_6wlLcMgZEeSyMNYR5xypkQ" elementId="TousCousins.application" bindingContexts="_6wlLecgZEeSyMNYR5xypkQ">
  <children xsi:type="basic:TrimmedWindow" xmi:id="_6wlLccgZEeSyMNYR5xypkQ" elementId="TousCousins.window.main" label="Tous Cousins" width="500" height="400">
    <children xsi:type="advanced:PerspectiveStack" xmi:id="_4QxHkGEmEeiTCs45mLrXaw" elementId="touscousins.perspectivestack.0">
      <children xsi:type="advanced:Perspective" xmi:id="_5YPF8GEmEeiTCs45mLrXaw" elementId="touscousins.perspective.0">
        <children xsi:type="basic:PartSashContainer" xmi:id="_GdIHUGEhEeiTCs45mLrXaw" elementId="touscousins.partsashcontainer.0">
          <children xsi:type="basic:PartSashContainer" xmi:id="_6wlLksgZEeSyMNYR5xypkQ" elementId="touscousins.sashcontainer.0" selectedElement="_AYwtUCH4EeiwUNdB11rENw" horizontal="true">
            <children xsi:type="basic:PartStack" xmi:id="_AYwtUCH4EeiwUNdB11rENw" elementId="touscousins.partstack.topLeft" containerData="2500" selectedElement="_nO4GsCIWEeiwUNdB11rENw">
              <children xsi:type="advanced:Placeholder" xmi:id="_nO4GsCIWEeiwUNdB11rENw" elementId="touscousins.placeholder.3" ref="_6wlLlMgZEeSyMNYR5xypkQ"/>
            </children>
            <children xsi:type="basic:PartStack" xmi:id="_Rj4hECHuEeiS2pIAf4fJew" elementId="touscousins.partstack.topRight" selectedElement="_Sa-W0CO_EeiYR6mkgalDuw">
              <children xsi:type="advanced:Placeholder" xmi:id="_Sa-W0CO_EeiYR6mkgalDuw" elementId="touscousins.placeholder.0" ref="_xSy1ACO-EeiYR6mkgalDuw"/>
              <children xsi:type="advanced:Placeholder" xmi:id="_iDhuICPBEeiYR6mkgalDuw" elementId="touscousins.placeholder.1" ref="_Z0CkMCPBEeiYR6mkgalDuw"/>
            </children>
          </children>
        </children>
      </children>
    </children>
    <mainMenu xmi:id="_6wlLicgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.menu">
      <children xsi:type="menu:Menu" xmi:id="_6wlLisgZEeSyMNYR5xypkQ" elementId="file" label="File">
        <children xsi:type="menu:HandledMenuItem" xmi:id="_cEkQgCefEeiunr7UEzaBnQ" elementId="TousCousins.handleditem.file.new" label="Nouveau" iconURI="platform:/plugin/TousCousins/images/genj/edit/images/New.png" command="_26CN8CqbEeiMCtnRlx-CIQ"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="TousCousins.handleditem.file.open" label="Ouvrir..." iconURI="platform:/plugin/TousCousins/images/genj/app/images/Open.png" command="_6wlLgMgZEeSyMNYR5xypkQ">
          <parameters xmi:id="_G6YlMCe0Eeiunr7UEzaBnQ" elementId="touscousins.parameter.filename" name="touscousins.commandparameter.filename"/>
        </children>
        <children xsi:type="menu:MenuSeparator" xmi:id="_buigsCegEeiunr7UEzaBnQ" elementId="touscousins.menuseparator.0"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="TousCousins.handleditem.file.save" label="Enregistrer" iconURI="platform:/plugin/TousCousins/images/genj/app/images/Save.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_JjaiICeiEeiunr7UEzaBnQ" elementId="touscousins.handledmenuitem.file.saveas" label="Enregistrer sous..." iconURI="platform:/plugin/TousCousins/images/genj/app/images/Save.png" command="_7WYBMCn9EeiGUsU9VBDofg"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_XnPpQCeiEeiunr7UEzaBnQ" elementId="touscousins.handledmenuitem.file.close" label="Fermer" iconURI="platform:/plugin/TousCousins/images/genj/app/images/Close.png" command="_ZMfvwChmEeiglvGtbnF8SA"/>
        <children xsi:type="menu:MenuSeparator" xmi:id="_gKRsMCegEeiunr7UEzaBnQ" elementId="touscousins.menuseparator.1"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjcgZEeSyMNYR5xypkQ" elementId="TousCousins.handleditem.quit" label="Quit" iconURI="platform:/plugin/TousCousins/images/genj/app/images/Exit.png" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
        <children xsi:type="menu:DynamicMenuContribution" xmi:id="_3iA8wCeiEeiunr7UEzaBnQ" elementId="touscousins.dynamicmenucontribution.file.reopen" label="Liste fichiers" contributionURI="bundleclass://TousCousins/touscousins.gui.command.ReopenFileItem"/>
      </children>
      <children xsi:type="menu:Menu" xmi:id="_MiLckCRxEeiGlfQ00gxSlQ" elementId="touscousins.menu.edition" label="Edition">
        <children xsi:type="menu:HandledMenuItem" xmi:id="_-LBl0CnLEei2VYfoLY_b4w" elementId="touscousins.handledmenuitem.edit.modify" label="Modifie le modèle" command="_MNjscCnMEei2VYfoLY_b4w"/>
      </children>
      <children xsi:type="menu:Menu" xmi:id="_R1FOgCROEeiGlfQ00gxSlQ" elementId="touscousins.menu.affichage" label="Affichage">
        <children xsi:type="menu:DynamicMenuContribution" xmi:id="_V_XvkCRMEeiGlfQ00gxSlQ" elementId="touscousins.dynamicmenucontribution.0" label="Affichage" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.ShowWindowsMenuProvider"/>
        <children xsi:type="menu:MenuSeparator" xmi:id="_Xv6g8C3gEeiZf-szhOlfdQ" elementId="touscousins.menuseparator.2"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_ZJY1UC3gEeiZf-szhOlfdQ" elementId="touscousins.handledmenuitem.window.properties" label="Préférences" command="_B3Lz8CaqEei2t9QM9WiJsA"/>
      </children>
      <children xsi:type="menu:Menu" xmi:id="_6wlLjsgZEeSyMNYR5xypkQ" elementId="help" label="Help">
        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLj8gZEeSyMNYR5xypkQ" elementId="TousCousins.handleditem.about" label="About" iconURI="platform:/plugin/TousCousins/images/genj/app/images/About.png" command="_6wlLhsgZEeSyMNYR5xypkQ">
          <visibleWhen xsi:type="ui:ImperativeExpression" xmi:id="_zQWpACwxEei-udFGXyd9wg" contributionURI="bundleclass://TousCousins/touscousins.gui.command.ImperativeExpression"/>
        </children>
      </children>
    </mainMenu>
    <sharedElements xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="TousCousins.part.individu" contributionURI="bundleclass://TousCousins/touscousins.gui.parts.SamplePart" label="Individus"/>
    <sharedElements xsi:type="basic:Part" xmi:id="_xSy1ACO-EeiYR6mkgalDuw" elementId="touscousins.part.famille" contributionURI="bundleclass://TousCousins/touscousins.gui.parts.SamplePart" label="Familles" closeable="true"/>
    <sharedElements xsi:type="basic:Part" xmi:id="_Z0CkMCPBEeiYR6mkgalDuw" elementId="touscousins.part.mapview" contributionURI="bundleclass://TousCousins/touscousins.gui.parts.SimpleMapView" label="Géographie" closeable="true"/>
    <trimBars xmi:id="_6wlLlcgZEeSyMNYR5xypkQ" elementId="touscousins.trimbar.top">
      <children xsi:type="menu:ToolBar" xmi:id="_6wlLlsgZEeSyMNYR5xypkQ" elementId="test.main.toolbar">
        <tags>NO_MOVE</tags>
        <children xsi:type="menu:HandledToolItem" xmi:id="_6wlLl8gZEeSyMNYR5xypkQ" elementId="TousCousins.handleditem.trimbar.top.open" iconURI="platform:/plugin/TousCousins/images/genj/app/images/Open.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
        <children xsi:type="menu:HandledToolItem" xmi:id="_6wlLmMgZEeSyMNYR5xypkQ" elementId="TousCousins.handleditem.trimbar.top.save" iconURI="platform:/plugin/TousCousins/images/genj/app/images/Save.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
      </children>
    </trimBars>
  </children>
  <handlers xmi:id="_6wlLfcgZEeSyMNYR5xypkQ" elementId="kerzu.touscousins.handler.quitCommand" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.QuitHandler" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
  <handlers xmi:id="_6wlLgcgZEeSyMNYR5xypkQ" elementId="touscousins.handler.openCommand" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.OpenGedcomFileHandler" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
  <handlers xmi:id="_6wlLhMgZEeSyMNYR5xypkQ" elementId="kerzu.touscousins.handler.saveCommand" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.SaveHandler" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
  <handlers xmi:id="_6wlLh8gZEeSyMNYR5xypkQ" elementId="kerzu.touscousins.handler.aboutCommand" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.AboutHandler" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
  <handlers xmi:id="_POpNYCRyEeiGlfQ00gxSlQ" elementId="touscousins.handler.showView" contributionURI="bundleclass://TousCousins/touscousins.gui.command.ShowViewCommand" command="_HO_2QCRyEeiGlfQ00gxSlQ"/>
  <handlers xmi:id="_mwdo0CaqEei2t9QM9WiJsA" elementId="touscousins.handler.0" contributionURI="bundleclass://com.opcoach.e4.preferences/com.opcoach.e4.preferences.handlers.E4PreferencesHandler" command="_B3Lz8CaqEei2t9QM9WiJsA"/>
  <handlers xmi:id="_QyphMChsEeiglvGtbnF8SA" elementId="touscousins.handler.file.close" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.CloseFileHandler" command="_ZMfvwChmEeiglvGtbnF8SA"/>
  <handlers xmi:id="_WZ1TMCnMEei2VYfoLY_b4w" elementId="touscousins.handler.modifyModel" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.ModifyModelHandler" command="_MNjscCnMEei2VYfoLY_b4w"/>
  <handlers xmi:id="_Dx2YsCn-EeiGUsU9VBDofg" elementId="touscousins.handler.file.saveas" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.SaveAsHandler" command="_7WYBMCn9EeiGUsU9VBDofg"/>
  <handlers xmi:id="_8fXewCqbEeiMCtnRlx-CIQ" elementId="touscousins.handler.file.new" contributionURI="bundleclass://TousCousins/touscousins.gui.handlers.NewHandler" command="_26CN8CqbEeiMCtnRlx-CIQ"/>
  <bindingTables xmi:id="_6wlLfsgZEeSyMNYR5xypkQ" elementId="TousCousins.bindingtable" bindingContext="_6wlLecgZEeSyMNYR5xypkQ">
    <bindings xmi:id="_6wlLf8gZEeSyMNYR5xypkQ" elementId="TousCousins.keybinding.m1q" keySequence="M1+Q" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
    <bindings xmi:id="_6wlLgsgZEeSyMNYR5xypkQ" elementId="TousCousins.keybinding.m1o" keySequence="M1+O" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
    <bindings xmi:id="_6wlLhcgZEeSyMNYR5xypkQ" elementId="TousCousins.keybinding.m1s" keySequence="M1+S" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
    <bindings xmi:id="_6wlLiMgZEeSyMNYR5xypkQ" elementId="TousCousins.keybinding.m1a" keySequence="M1+A" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
  </bindingTables>
  <rootContext xmi:id="_6wlLecgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows">
    <children xmi:id="_6wlLesgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.window" name="In Windows"/>
    <children xmi:id="_6wlLe8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
  </rootContext>
  <commands xmi:id="_6wlLfMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.exit" commandName="quitCommand"/>
  <commands xmi:id="_6wlLgMgZEeSyMNYR5xypkQ" elementId="touscousins.command.file.open" commandName="openCommand" description="Ouverture d'un fichier">
    <parameters xmi:id="_4rkk0CetEeiunr7UEzaBnQ" elementId="touscousins.commandparameter.filename" name="filename"/>
  </commands>
  <commands xmi:id="_6wlLg8gZEeSyMNYR5xypkQ" elementId="touscousins.command.file.save" commandName="saveCommand"/>
  <commands xmi:id="_6wlLhsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.help.aboutAction" commandName="aboutCommand"/>
  <commands xmi:id="_HO_2QCRyEeiGlfQ00gxSlQ" elementId="touscousins.command.showView" commandName="Show View">
    <parameters xmi:id="_n_ai4CRzEeiGlfQ00gxSlQ" elementId="touscousins.commandparameter.partId" name="partId" optional="false"/>
  </commands>
  <commands xmi:id="_B3Lz8CaqEei2t9QM9WiJsA" elementId="org.eclipse.ui.window.preferences" commandName="Préférences"/>
  <commands xmi:id="_ZMfvwChmEeiglvGtbnF8SA" elementId="touscousins.command.file.close" commandName="closeCommand"/>
  <commands xmi:id="_MNjscCnMEei2VYfoLY_b4w" elementId="touscousins.command.edit.modify" commandName="modifyCommand"/>
  <commands xmi:id="_7WYBMCn9EeiGUsU9VBDofg" elementId="touscousins.command.file.saveas" commandName="saveAsCommand"/>
  <commands xmi:id="_26CN8CqbEeiMCtnRlx-CIQ" elementId="touscousins.command.file.new" commandName="newCommand"/>
  <addons xmi:id="_6wlLcsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
  <addons xmi:id="_6wlLc8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
  <addons xmi:id="_6wlLdMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
  <addons xmi:id="_6wlLdcgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
  <addons xmi:id="_6wlLdsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
  <addons xmi:id="_6wlLd8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
  <addons xmi:id="_6wlLeMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
  <addons xmi:id="_B-384GEtEeiTCs45mLrXaw" elementId="touscousins.addon.0" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon"/>
</application:Application>
Previous Topic:How "hide" disabled handled menu items in (sub menu of) popup menu?
Next Topic:how to add python perspective in rcp
Goto Forum:
  


Current Time: Tue Nov 20 11:27:58 GMT 2018

Powered by FUDForum. Page generated in 0.02273 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top