Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » TrimBar not visible in compatbility mode
TrimBar not visible in compatbility mode [message #1064659] Thu, 20 June 2013 12:58 Go to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

I just changed my pure e4 RCP to run as an e3 application. Most things work as they did before. But one thing dows not:

The RCP has a TrimmedWindow which has one TrimBar which has one ToolBar. The TrimBar is only shown, if I set its side as left, right or bottom. But it isn't shown, if it is on top (but it has to be Smile ). It worked fine, when it was a pure e4 RCP. Is that a known issue or does anybody have any idea what could be the reason?

My e4xmi is pretty much the LegacyIDE.e4xmi with a TrimmedWindow and a TrimBar. All other perspectives and view are imported via fragments.

Also I wanted to ask, if I observed it correctly that key bindings don't overwrite standard key bindings. Like CTRL + S doesn't work in compat mode, but self defined bindings still work.

Best regards
Bastian
Re: TrimBar not visible in compatbility mode [message #1064879 is a reply to message #1064659] Fri, 21 June 2013 13:56 Go to previous messageGo to next message
Eric Moffatt is currently offline Eric MoffattFriend
Messages: 118
Registered: July 2009
Senior Member
Is the top trim bar visible at all (i.e. is the top TrimBar's 'toBeRendered' true) ?

How is the ToolBar contributed?
Re: TrimBar not visible in compatbility mode [message #1065046 is a reply to message #1064879] Mon, 24 June 2013 05:23 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

yes, to be rendered and visible are both checked.

Here is the LegacyIDE.e4xmi:

<?xml version="1.0" encoding="ASCII"?>
<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="_Cm9B4IfaEeKgbvDUAFRONA" elementId="de.cmp.test.main.application">
  <children xsi:type="basic:TrimmedWindow" xmi:id="_VS_i4IfdEeKgbvDUAFRONA" elementId="de.cmp.test.main.trimmedwindow." label="test" iconURI="platform:/plugin/de.cmp.test.services/icons/a350.png" bindingContexts="_8ERaMIfoEeKgbvDUAFRONA" width="1024" height="800">
    <children xsi:type="advanced:PerspectiveStack" xmi:id="_YaKHIIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.perspectivestack.perspectiveStack"/>
    <mainMenu xmi:id="_KU7EEIfjEeKgbvDUAFRONA" elementId="de.cmp.test.main.menu.mainMenu">
      <children xsi:type="menu:Menu" xmi:id="_LQwaMIfjEeKgbvDUAFRONA" elementId="de.cmp.test.main.menu.start" label="Start">
        <children xsi:type="menu:HandledMenuItem" xmi:id="_SIGsgIfjEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.Save" label="Save" iconURI="platform:/plugin/de.cmp.test.services/icons/save.png" tooltip="Saves all changes" command="_mFvGUIfoEeKgbvDUAFRONA"/>
        <children xsi:type="menu:MenuSeparator" xmi:id="_SsaTcIfjEeKgbvDUAFRONA" elementId="de.cmp.test.main.menuseparator.0"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_TAUt8IfjEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.restart" label="Restart" iconURI="platform:/plugin/de.cmp.test.services/icons/restart.16.png" tooltip="Restarts test" command="_pirHQIfoEeKgbvDUAFRONA"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_TazDcIfjEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.exit" label="Exit" iconURI="platform:/plugin/de.cmp.test.services/icons/exit.16.png" tooltip="Exits test" command="_tU8fAIfoEeKgbvDUAFRONA"/>
      </children>
      <children xsi:type="menu:Menu" xmi:id="_zYTFYIfkEeKgbvDUAFRONA" elementId="de.cmp.test.main.menu.edit" label="Edit">
        <children xsi:type="menu:HandledMenuItem" xmi:id="_4pkxwIfkEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.copy" label="Copy" iconURI="platform:/plugin/de.cmp.test.services/icons/copy.png" tooltip="Copy the selected element" command="_vJXC8IfoEeKgbvDUAFRONA"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_6wh3MIfkEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.paste" label="Paste" iconURI="platform:/plugin/de.cmp.test.services/icons/paste.png" tooltip="Paste an element to the selected position" command="_wzBvcIfoEeKgbvDUAFRONA"/>
        <children xsi:type="menu:MenuSeparator" xmi:id="_8hrEsIfkEeKgbvDUAFRONA" elementId="de.cmp.test.main.menuseparator.0"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_9E1cIIfkEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.undo" label="Undo" iconURI="platform:/plugin/de.cmp.test.services/icons/undo.png" tooltip="Undo the last action" command="_yLTxAIfoEeKgbvDUAFRONA"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_-UQcoIfkEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.redo" label="Redo" iconURI="platform:/plugin/de.cmp.test.services/icons/redo.png" tooltip="Redo the last action" command="_zY0tAIfoEeKgbvDUAFRONA"/>
        <children xsi:type="menu:MenuSeparator" xmi:id="_7fC70JLhEeKoApID_4VLyA" elementId="de.cmp.test.main.menuseparator.0"/>
        <children xsi:type="menu:HandledMenuItem" xmi:id="_748CgJLhEeKoApID_4VLyA" elementId="de.cmp.test.main.handledmenuitem.refresh" label="Refresh" iconURI="platform:/plugin/de.cmp.test.services/icons/refresh.16.png" command="_BzVkYJLiEeKoApID_4VLyA"/>
      </children>
      <children xsi:type="menu:Menu" xmi:id="_OCJm8IfnEeKgbvDUAFRONA" elementId="de.cmp.test.main.menu.appearance" visible="false" label="Appearance">
        <children xsi:type="menu:Menu" xmi:id="_UEXoEIfnEeKgbvDUAFRONA" elementId="de.cmp.test.main.menu.style" label="Style" iconURI="platform:/plugin/de.cmp.test.services/icons/style.png" tooltip="Select a style for test">
          <children xsi:type="menu:HandledMenuItem" xmi:id="_cz2gsIfnEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.default" label="Default" tooltip="The default style" selected="true" type="Radio" command="_u_dOIIfqEeKgbvDUAFRONA">
            <parameters xmi:id="_gFCgcIfuEeKgbvDUAFRONA" elementId="de.cmp.test.main.parameter.default" name="de.cmp.test.main.commandparameter.switchStyle" value="Default"/>
          </children>
          <children xsi:type="menu:HandledMenuItem" xmi:id="_gUUWwIfnEeKgbvDUAFRONA" elementId="de.cmp.test.main.handledmenuitem.test" label="Test" type="Radio" command="_u_dOIIfqEeKgbvDUAFRONA">
            <parameters xmi:id="_isHQYIfuEeKgbvDUAFRONA" elementId="de.cmp.test.main.parameter.test" name="de.cmp.test.main.commandparameter.switchStyle" value="Test"/>
          </children>
        </children>
      </children>
    </mainMenu>
    <trimBars xmi:id="_uXU-gIfnEeKgbvDUAFRONA" elementId="de.cmp.test.main.trimbar.topTrimBar" side="Bottom">
      <children xsi:type="menu:ToolBar" xmi:id="_BKXmwIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.toolbar.perspectiveToolbar">
        <children xsi:type="menu:ToolControl" xmi:id="_NmLx4JxaEeK7r8FfNSBQFg" elementId="a1de.cmp.test.amain.toolcontrol.first">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_NmLx4JxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.0">
          <tags>stretch</tags>
        </children>
        <children xsi:type="menu:ToolControl" xmi:id="_e-W-oJxaEeK7r8FfNSBQFg" elementId="ade.cmp.test.amain.toolcontrol.last">
          <tags>stretch</tags>
        </children>
      </children>
    </trimBars>
  </children>
  <handlers xmi:id="_FARE0IfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.save" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.SaveHandler" command="_mFvGUIfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_G-r5UIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.restart" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.RestartHandler" command="_pirHQIfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_Ic6K0IfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.exit" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.ExitHandler" command="_tU8fAIfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_KG5AYIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.copy" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.CopyHandler" command="_vJXC8IfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_LtH-YIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.paste" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.PasteHandler" command="_wzBvcIfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_Ni7CYIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.undo" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.UndoHandler" command="_yLTxAIfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_PJn6cIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.redo" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.RedoHandler" command="_zY0tAIfoEeKgbvDUAFRONA"/>
  <handlers xmi:id="_-3Cx4IfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.switchStyle" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.SwitchStyleHandler" command="_u_dOIIfqEeKgbvDUAFRONA"/>
  <handlers xmi:id="_Ay8d4IfrEeKgbvDUAFRONA" elementId="de.cmp.test.main.handler.switchPerspective" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.SwitchPerspectiveHandler" command="_7uwyUIfqEeKgbvDUAFRONA"/>
  <handlers xmi:id="_D_3GUJLiEeKoApID_4VLyA" elementId="de.cmp.test.main.handler.refresh" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.RefreshHandler" command="_BzVkYJLiEeKoApID_4VLyA"/>
  <bindingTables xmi:id="_UEVg8IfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.bindingtable.contextGlobal" bindingContext="_8ERaMIfoEeKgbvDUAFRONA">
    <bindings xmi:id="_mV07UIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.save" keySequence="M1+S" command="_mFvGUIfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_vvTMIIfpEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.restart" keySequence="M1+M2+Q" command="_pirHQIfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_BY-_oIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.quit" keySequence="CTRL+Q" command="_tU8fAIfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_DsEckIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.copy" keySequence="M1+C" command="_vJXC8IfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_IFbCcIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.paste" keySequence="M1+V" command="_wzBvcIfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_R9t9QIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.undo" keySequence="M1+Z" command="_yLTxAIfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_UpC7EIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.keybinding.contextglobal.redo" keySequence="M1+Y" command="_zY0tAIfoEeKgbvDUAFRONA"/>
    <bindings xmi:id="_O979cJLiEeKoApID_4VLyA" elementId="de.cmp.test.main.keybinding.contextglobal.refresh" keySequence="F5" command="_BzVkYJLiEeKoApID_4VLyA"/>
  </bindingTables>
  <rootContext xmi:id="_8ERaMIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.bindingcontext.contextGlobal" name="ContextGlobal"/>
  <commands xmi:id="_mFvGUIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.save" commandName="Save"/>
  <commands xmi:id="_pirHQIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.restart" commandName="Restart"/>
  <commands xmi:id="_tU8fAIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.exit" commandName="Exit"/>
  <commands xmi:id="_vJXC8IfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.copy" commandName="Copy"/>
  <commands xmi:id="_wzBvcIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.paste" commandName="Paste"/>
  <commands xmi:id="_yLTxAIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.undo" commandName="Undo"/>
  <commands xmi:id="_zY0tAIfoEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.redo" commandName="Redo"/>
  <commands xmi:id="_u_dOIIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.switchStyle" commandName="SwitchStyle">
    <parameters xmi:id="_V6NrMIfuEeKgbvDUAFRONA" elementId="de.cmp.test.main.commandparameter.switchStyle" name="SwitchStyle"/>
  </commands>
  <commands xmi:id="_7uwyUIfqEeKgbvDUAFRONA" elementId="de.cmp.test.main.command.switchPerspective" commandName="SwitchPerspective">
    <parameters xmi:id="_Q4WT0IfuEeKgbvDUAFRONA" elementId="de.cmp.test.main.commandparameter.switchPerspective" name="SwitchPerspective"/>
  </commands>
  <commands xmi:id="_BzVkYJLiEeKoApID_4VLyA" elementId="de.cmp.test.main.command.refresh" commandName="Refresh"/>
  <addons xmi:id="_Cm9B4YfaEeKgbvDUAFRONA" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
  <addons xmi:id="_Cm9B4ofaEeKgbvDUAFRONA" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
  <addons xmi:id="_Cm9B44faEeKgbvDUAFRONA" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
  <addons xmi:id="_Cm9B5IfaEeKgbvDUAFRONA" 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="_Cm9B5YfaEeKgbvDUAFRONA" 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="_Cm9B5ofaEeKgbvDUAFRONA" 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="_wcTbYKi_EeK5b7uS18-APg" elementId="de.cmp.test.main.addon.errorHandler" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.ErrorHandler"/>
  <addons xmi:id="_IASuIMhREeKHx6YIgAySJA" elementId="de.cmp.test.main.addon.0" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.MergeHandler"/>
  <addons xmi:id="_qG_Y8NJdEeKMcusTIa3--Q" elementId="de.cmp.test.main.addon.ServerConnection" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.ServerConnectionHandler"/>
  <addons xmi:id="_naOwUNMkEeKahdFzwVfygA" elementId="de.cmp.test.main.addon.ClientFolderHandler" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.ClientFolderHandler"/>
  <addons xmi:id="_ZilZENjMEeK4YPjD9Lu5pA" elementId="de.cmp.test.main.addon.activation" contributionURI="bundleclass://de.cmp.test.main/de.cmp.test.main.handler.ActivationHandler"/>
  <addons xmi:id="_00yosOXqEeGugqEu_OWUGQ" elementId="org.eclipse.ui.workbench.addon.0" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
  <addons xmi:id="_XwQYkE2EEd-DfN2vYY4Lew" elementId="Cleanup Addon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon"/>
  <addons xmi:id="_bqcWME2EEd-DfN2vYY4Lew" elementId="DnD Addon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon"/>
  <addons xmi:id="_7GC6sGp-Ed-QyNZjH9g15Q" elementId="MinMax Addon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon"/>
</application:Application>


Best regards
Bastian
Re: TrimBar not visible in compatbility mode [message #1066331 is a reply to message #1064659] Tue, 02 July 2013 08:28 Go to previous messageGo to next message
Mirko Liebender is currently offline Mirko LiebenderFriend
Messages: 3
Registered: July 2013
Junior Member
Hi,

I have the same problem and couldn't figure out how to solve it. But there was one thing I discovered. By using the live model editor I saw that the trimbar is not checked visible anymore...if you check it during runtime it will be visible and working correctly but after restarting it is invisible again, even if the LegacyIDE.e4xmi says otherwise before running.
Any ideas why that might be?
Re: TrimBar not visible in compatbility mode [message #1066346 is a reply to message #1066331] Tue, 02 July 2013 09:02 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

thank you Mirko. I checked the visibility, but I did that in a processor. There it was visible, but seems to be set invisible afterwards. So I now set it visible in an addon after application start.

Thanks Smile
Bastian
Re: TrimBar not visible in compatbility mode [message #1066747 is a reply to message #1064659] Thu, 04 July 2013 08:31 Go to previous messageGo to next message
Mirko Liebender is currently offline Mirko LiebenderFriend
Messages: 3
Registered: July 2013
Junior Member
Hi,

could you post your solution? I'm not really familiar with addons yet.
Thx.

Mirko
Re: TrimBar not visible in compatbility mode [message #1066758 is a reply to message #1066747] Thu, 04 July 2013 09:01 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi Mirko,

it's quite simple. You just have to create an Addon in your Legacy.e4xmi pointing to a class containing this code:

@Inject
	@Optional
	private void closeHandler(
			@UIEventTopic(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE) Event event, MApplication app) {
		isActivated = true;
		MTrimmedWindow window = (MTrimmedWindow) app.getChildren().get(0);
		window.getTrimBars().get(0).setVisible(true);
}


This, of course, only works, if the TrimBar is the first TrimBar of the first Window of the Application.

Best regards
Bastian
Re: TrimBar not visible in compatbility mode [message #1066765 is a reply to message #1064659] Thu, 04 July 2013 09:31 Go to previous messageGo to next message
Mirko Liebender is currently offline Mirko LiebenderFriend
Messages: 3
Registered: July 2013
Junior Member
Hello Bastian,

thx for the quick answer. I already tried sth. like this, but for me it is not working...the event is never called.
When I use other events like
@UIEventTopic(UIEvents.UILifeCycle.ACTIVATE)

it is working fine though. Do you have any ideas why that might be?

Mirko
Re: TrimBar not visible in compatbility mode [message #1066890 is a reply to message #1066765] Fri, 05 July 2013 05:19 Go to previous message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi Mirko,

I'm sorry, but I don't know, when exactly this event is sent. So I think I can't help you Sad

But if it works this way... Smile

Best regards
Bastian
Previous Topic:Showing properties of e4 view selection in 3.x Properties view
Next Topic:E4 demos exist?
Goto Forum:
  


Current Time: Thu Mar 28 15:53:41 GMT 2024

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

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

Back to the top