Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Toolbar Item layout Problem on Perspective Switch (comp layer)(I have a layout Problem with Toolbar Items using compatibility layer when switching the Perspective. There are gaps occuring in the Toolbar.)
icon7.gif  Toolbar Item layout Problem on Perspective Switch (comp layer) [message #1719825] Tue, 12 January 2016 11:03 Go to next message
Sebastian Fincke is currently offline Sebastian FinckeFriend
Messages: 3
Registered: July 2009
Junior Member
Hi out there,

I'm migrating an eclipse 3.x app to Mars (3.5.1) using comp layer. Almost everything is fine exept the toolbar icons in the toolbar. I'm using different toolbar icon sets in different perspectives (as usual for the perspective paradigm). When switching the perspective, icons are disappearing and occuring, so this is ok as intended. But the auto layout is not working. Gaps are occuring at the place where icons disappear. See screenshot. It seems that "packing" the toolbar ist not triggererd. Or perhaps I am missing a required plugin. I'm NOT using the E4Application class to start the app, it is an own implementation of IApplication. Also I'm NOT using css styling. Its just the plain old 3.x app on comp layer.

Here are my loaded Eclipse RCP plugins in the app:
org.eclipse.ant.core (3.4.0.v20150428-1928) "Ant Build Tool Core" [Starting]
org.eclipse.core.commands (3.7.0.v20150422-0725) "Commands" [Resolved]
org.eclipse.core.contenttype (3.5.0.v20150421-2214) "Eclipse Content Mechanism" [Active]
org.eclipse.core.databinding (1.5.0.v20150422-0725) "JFace Data Binding" [Starting]
org.eclipse.core.databinding.observable (1.5.0.v20150422-0725) "JFace Data Binding Observables" [Active] (1.5.0.v20150422-0725) "JFace Data Binding Properties" [Starting]
org.eclipse.core.expressions (3.5.0.v20150421-2214) "Expression Language" [Active]
org.eclipse.core.filebuffers (3.5.500.v20140723-1040) "File Buffers" [Starting]
org.eclipse.core.filesystem (1.5.0.v20150725-1910) "Core File Systems" [Active]
org.eclipse.core.filesystem.win32.x86 (1.4.0.v20140124-1940) "Core File System for Windows" [Resolved] (3.7.0.v20150330-2103) "Eclipse Jobs Mechanism" [Active] (1.2.300.v20141118-1725) "Internet Connection Management" [Starting] (1.0.100.v20140124-2013) "Proxy for Windows" [Resolved]
org.eclipse.core.resources (3.10.1.v20150725-1910) "Core Resource Management" [Active]
org.eclipse.core.resources.win32.x86 (3.5.100.v20140124-1940) "Core Resource Management Win32 Fragment" [Resolved]
org.eclipse.core.runtime (3.11.1.v20150903-1804) "Core Runtime" [Active]
org.eclipse.core.runtime.compatibility.registry (3.6.0.v20150318-1505) "Eclipse Registry Compatibility Fragment" [Resolved]
org.eclipse.core.variables (3.2.800.v20130819-1716) "Core Variables" [Starting]
org.eclipse.e4.core.commands (0.11.0.v20150422-0725) "Eclipse e4 core commands" [Active]
org.eclipse.e4.core.contexts (1.4.0.v20150828-0818) "Eclipse Contexts" [Active]
org.eclipse.e4.core.di (1.5.0.v20150421-2214) "Eclipse Dependency Injection" [Active]
org.eclipse.e4.core.di.annotations (1.4.0.v20150528-1451) "Eclipse Dependency Injection Annotations" [Resolved]
org.eclipse.e4.core.di.extensions (0.13.0.v20150421-2214) "Eclipse Dependency Injection Extensions" [Active] (2.0.0.v20150403-1912) "Eclipse Application Services" [Active]
org.eclipse.e4.emf.xpath (0.1.100.v20150513-0856) "Eclipse Model Xpath" [Resolved]
org.eclipse.e4.ui.bindings (0.11.0.v20150422-0725) "Eclipse Bindings Support" [Active]
org.eclipse.e4.ui.css.core (0.11.0.v20150511-1937) "Eclipse CSS Core Support" [Resolved]
org.eclipse.e4.ui.css.swt (0.12.0.v20150511-1003) "Eclipse CSS SWT Support" [Active]
org.eclipse.e4.ui.css.swt.theme (0.10.0.v20150422-0725) "Eclipse CSS SWT Theme Support" [Active]
org.eclipse.e4.ui.di (1.1.0.v20150422-0725) "Eclipse UI Dependency Injection" [Active]
org.eclipse.e4.ui.model.workbench (1.1.100.v20150407-1430) "Eclipse Workbench Model" [Active] (1.2.0.v20150422-0725) "Eclipse UI Application Services" [Active]
org.eclipse.e4.ui.widgets (1.1.0.v20150427-1751) "Eclipse UI Custom widgets" [Resolved]
org.eclipse.e4.ui.workbench (1.3.0.v20150531-1948) "Eclipse e4 Workbench" [Active]
org.eclipse.e4.ui.workbench.addons.swt (1.2.0.v20150512-1414) "Eclipse e4 Workbench Add-ons" [Active]
org.eclipse.e4.ui.workbench.renderers.swt (0.13.0.v20150901-1347) "Eclipse e4 Workbench SWT Renderer" [Active]
org.eclipse.e4.ui.workbench.swt (0.13.0.v20150504-0621) "Eclipse e4 Workbench SWT" [Active]
org.eclipse.e4.ui.workbench3 (0.13.0.v20150422-0725) "Bundle for Workbench APIs available in e4" [Resolved]
org.eclipse.ecf (3.5.0.v20150810-1719) "ECF Core API" [Starting]
org.eclipse.ecf.filetransfer (5.0.0.v20150810-1719) "ECF Filetransfer API" [Starting]
org.eclipse.ecf.identity (3.6.0.v20150810-1719) "ECF Identity Core API" [Starting]
org.eclipse.ecf.provider.filetransfer (3.2.200.v20150810-1719) "ECF Filetransfer Provider" [Starting]
org.eclipse.emf.common (2.11.0.v20150805-0538) "EMF Common" [Active]
org.eclipse.emf.ecore (2.11.1.v20150805-0538) "EMF Ecore" [Active]
org.eclipse.emf.ecore.change (2.11.0.v20150805-0538) "EMF Change Model" [Starting]
org.eclipse.emf.ecore.xmi (2.11.1.v20150805-0538) "EMF XML/XMI Persistence" [Active] (1.3.300.v20150423-1356) "Equinox Application Container" [Active]
org.eclipse.equinox.common (3.7.0.v20150402-1709) "Common Eclipse Runtime" [Active]
org.eclipse.equinox.ds (1.4.300.v20150423-1356) "Declarative Services" [Active]
org.eclipse.equinox.event (1.3.100.v20140115-1647) "Event Admin" [Active]
org.eclipse.equinox.frameworkadmin (2.0.200.v20150423-1455) "Equinox Framework Admin" [Starting]
org.eclipse.equinox.frameworkadmin.equinox (1.0.600.v20150522-2234) "Equinox Framework Admin for Equinox" [Starting]
org.eclipse.equinox.http.jetty (3.1.1.v20150818-2108) "Jetty Http Service" [Starting]
org.eclipse.equinox.http.registry (1.1.300.v20130402-1529) "Http Service Registry Extensions" [Resolved]
org.eclipse.equinox.http.servlet (1.2.1.v20150828-1818) "Http Services Servlet" [Starting]
org.eclipse.equinox.jsp.jasper (1.0.500.v20150119-1358) "Jasper Jsp Support Bundle" [Starting]
org.eclipse.equinox.jsp.jasper.registry (1.0.300.v20130327-1442) "Jasper Jsp Registry Support Plug-in" [Starting]
org.eclipse.equinox.launcher (1.3.100.v20150511-1540) "Equinox Launcher" [Resolved]
org.eclipse.equinox.launcher.win32.win32.x86 (1.1.300.v20150602-1417) "Equinox Launcher Win32 X86 Fragment" [Resolved]
org.eclipse.equinox.p2.artifact.repository (1.1.400.v20150513-2116) "Equinox Provisioning Artifact Repository Support" [Starting]
org.eclipse.equinox.p2.core (2.4.0.v20150527-1706) "Equinox Provisioning Core" [Active]
org.eclipse.equinox.p2.director (2.3.200.v20150423-1455) "Equinox Provisioning Director" [Starting]
org.eclipse.equinox.p2.directorywatcher (1.1.100.v20150423-1455) "Equinox Provisioning Directory Watcher" [Starting]
org.eclipse.equinox.p2.engine (2.4.0.v20150511-1532) "Equinox Provisioning Engine" [Active]
org.eclipse.equinox.p2.extensionlocation (1.2.200.v20150423-1455) "Equinox Provisioning Extension Location Repository Support" [Starting]
org.eclipse.equinox.p2.garbagecollector (1.0.200.v20131115-1210) "Equinox Provisioning Garbage Collector" [Starting]
org.eclipse.equinox.p2.jarprocessor (1.0.400.v20150430-1836) "Equinox Provisioning JAR Processor" [Resolved]
org.eclipse.equinox.p2.metadata (2.3.0.v20150511-1532) "Equinox Provisioning Metadata" [Active]
org.eclipse.equinox.p2.metadata.repository (1.2.200.v20150428-1613) "Equinox Provisioning Metadata Repository" [Active]
org.eclipse.equinox.p2.operations (2.4.100.v20150423-1455) "Equinox Provisioning Operations API" [Active]
org.eclipse.equinox.p2.publisher (1.4.0.v20141117-0929) "Equinox Provisioning Publisher Infrastructure" [Starting]
org.eclipse.equinox.p2.publisher.eclipse (1.2.0.v20150601-1708) "Equinox Provisioning Publisher for Eclipse" [Starting]
org.eclipse.equinox.p2.repository (2.3.100.v20150428-1613) "Equinox Provisioning Repository" [Active] (2.1.100.v20150423-1455) "Equinox Provisioning Repository Tools" [Starting]
org.eclipse.equinox.p2.touchpoint.eclipse (2.1.300.v20150423-1455) "Equinox Provisioning Eclipse Touchpoint" [Starting]
org.eclipse.equinox.p2.touchpoint.natives (1.2.0.v20150519-1136) "Equinox Provisioning Native Touchpoint" [Starting]
org.eclipse.equinox.p2.transport.ecf (1.1.100.v20150521-1342) "Equinox Provisioning ECF based Transport" [Starting]
org.eclipse.equinox.p2.updatesite (1.0.500.v20150423-1455) "Equinox Provisioning Legacy Update Site Support" [Starting]
org.eclipse.equinox.preferences (3.5.300.v20150408-1437) "Eclipse Preferences Mechanism" [Active]
org.eclipse.equinox.registry (3.6.0.v20150318-1503) "Extension Registry Support" [Active] (1.2.100.v20150423-1356) "Equinox Java Authentication and Authorization Service (JAAS)" [Starting] (1.0.300.v20130327-1442) "Windows Data Protection services integration" [Resolved]
org.eclipse.equinox.simpleconfigurator (1.1.100.v20150423-1455) "Simple Configurator" [Starting]
org.eclipse.equinox.simpleconfigurator.manipulator (2.0.100.v20150423-1455) "Simple Configurator Manipulator" [Starting]
org.eclipse.equinox.util (1.0.500.v20130404-1337) "Equinox Util Bundle" [Active] (3.6.0.v20130326-1254) "Help System Core" [Active] (4.0.300.v20150904-0015) "Help System Base" [Starting] (4.0.100.v20140401-0608) "Help System UI" [Starting] (3.7.0.v20150425-0643) "Help System Webapp" [Starting]
org.eclipse.jetty.http (9.2.13.v20150730) "Jetty :: Http Utility" [Resolved] (9.2.13.v20150730) "Jetty :: IO Utility" [Resolved] (9.2.13.v20150730) "Jetty :: Security" [Resolved]
org.eclipse.jetty.server (9.2.13.v20150730) "Jetty :: Server Core" [Resolved]
org.eclipse.jetty.servlet (9.2.13.v20150730) "Jetty :: Servlet Handling" [Resolved]
org.eclipse.jetty.util (9.2.13.v20150730) "Jetty :: Utilities" [Resolved]
org.eclipse.jface (3.11.0.v20150602-1400) "JFace" [Active]
org.eclipse.jface.databinding (1.7.0.v20150406-2148) "JFace Data Binding for SWT and JFace" [Resolved]
org.eclipse.jface.text (3.10.0.v20150603-1752) "JFace Text" [Resolved]
org.eclipse.osgi (3.10.101.v20150820-1432) "OSGi System Bundle" [Active] (3.5.0.v20150519-2006) "OSGi Release 4.2.0 Services" [Active]
org.eclipse.swt (3.104.1.v20150825-0743) "Standard Widget Toolkit" [Resolved]
org.eclipse.swt.win32.win32.x86 (3.104.1.v20150825-0743) "Standard Widget Toolkit for Windows" [Resolved]
org.eclipse.text (3.5.400.v20150505-1044) "Text" [Resolved]
org.eclipse.ui (3.107.0.v20150507-1945) "Eclipse UI" [Active]
org.eclipse.ui.forms (3.6.200.v20150506-2029) "Eclipse Forms" [Active]
org.eclipse.ui.intro (3.4.300.v20141007-1449) "Welcome Framework" [Starting]
org.eclipse.ui.workbench (3.107.0.v20150825-2206) "Eclipse Workbench" [Active]

Do you hace any hints?

  • Attachment: gaps1.png
    (Size: 25.95KB, Downloaded 209 times)
  • Attachment: gaps2.png
    (Size: 26.29KB, Downloaded 178 times)
Re: Toolbar Item layout Problem on Perspective Switch (comp layer) [message #1719851 is a reply to message #1719825] Tue, 12 January 2016 15:15 Go to previous messageGo to next message
Eclipse UserFriend
It would be really helpful if you could come up with a small example to demonstrate the problem.
Re: Toolbar Item layout Problem on Perspective Switch (comp layer) [message #1719934 is a reply to message #1719851] Wed, 13 January 2016 10:31 Go to previous messageGo to next message
Sebastian Fincke is currently offline Sebastian FinckeFriend
Messages: 3
Registered: July 2009
Junior Member
I added a demo project. I used eclipse mars rcp 4.5.1 as IDE and target platform. I made toolbar contributions via actionSet and commands. It seems that commands dont produce gaps in the toolbar. The demo project can also be obtained at github:

Screenshot is attached. The gap is marked with a red square.


[Updated on: Wed, 13 January 2016 10:33]

Report message to a moderator

Re: Toolbar Item layout Problem on Perspective Switch (comp layer) [message #1721811 is a reply to message #1719934] Sun, 31 January 2016 09:33 Go to previous message
Sebastian Fincke is currently offline Sebastian FinckeFriend
Messages: 3
Registered: July 2009
Junior Member
I decided to migrate from actionsets to commands. Without deprecated actionsets the gaps in the toolbar disappeared. So as a part on migrating to E4 you should replace actionsets with commands. Sebastian
Previous Topic:[Eclipse Mars/Eclipse Neon] Eclipse resetting preferences on startup
Next Topic:Configure PartStack to be displayed minimized
Goto Forum:

Current Time: Fri Jun 09 12:47:02 GMT 2023

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

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

Back to the top