Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Toolbar not visible with 4.3 legacy mode
Toolbar not visible with 4.3 legacy mode [message #1102958] Fri, 06 September 2013 04:40 Go to next message
Marco Maccaferri is currently offline Marco Maccaferri
Messages: 132
Registered: July 2009
Senior Member
Hi,

I'm trying to port an RCP application from eclipse 3.8 to 4.3. Adding
the necessary elements like LegacyIDE.e4xml and default css theme the
application seems to work, however after the first restart the toolbar
is not visible anymore. The toolbar is visible only when
clearPersistedState is set to true, which is unacceptable because it
resets all customized layouts.

After some more attempts I found that the toolbar is perfectly visible
when running with eclipse 4.2, so it seems a regression of some kind
with eclipse 4.3.

Is that a known bug (haven't found anything relevant on bugzilla so far) ?

The issue seems like
https://bugs.eclipse.org/bugs/show_bug.cgi?id=398847 but it affects the
toolbar and not the menu bar (at least on Linux, not tested with
Windows) and the issue was closed as invalid. The LegacyIDE.e4xml file
comes directly from org.eclipse.platform so it should have the correct
declarations.

Regards,
Marco.
Re: Toolbar not visible with 4.3 legacy mode [message #1103248 is a reply to message #1102958] Fri, 06 September 2013 10:35 Go to previous messageGo to next message
Eric Moffatt is currently offline Eric Moffatt
Messages: 117
Registered: July 2009
Senior Member
Marco, presumably after the first exit there's a 'workbench.xmi' file created somewhere...could you look to see if there is a TrimBar with position 'TOP' in it. If so what are its 'toBeRendered' and 'visible' attibute values ? Alternatively you can open a new defect and attach it there.
Re: Toolbar not visible with 4.3 legacy mode [message #1103309 is a reply to message #1103248] Fri, 06 September 2013 11:52 Go to previous message
Marco Maccaferri is currently offline Marco Maccaferri
Messages: 132
Registered: July 2009
Senior Member
On 06/09/2013 16:35 Eric Moffatt ha scritto:

> Marco, presumably after the first exit there's a 'workbench.xmi' file
> created somewhere...could you look to see if there is a TrimBar with
> position 'TOP' in it. If so what are its 'toBeRendered' and 'visible'
> attibute values ? Alternatively you can open a new defect and attach
> it there.

There are "trimBars" elements with elementId
org.eclipse.ui.main.toolbar, org.eclipse.ui.trim.status,
org.eclipse.ui.trim.vertical1 and org.eclipse.ui.trim.vertical2, none of
which have a toBeRendered or visible attribute but as far as I can tell
all child elements have toBeRendered=false.

Opened a bug with the workbench.xmi file
https://bugs.eclipse.org/bugs/show_bug.cgi?id=416746

Regards,
Marco.
Previous Topic:@Preferences get injected even they don't change
Next Topic:Take screenshot of Windows E4 rcp application window
Goto Forum:
  


Current Time: Mon Jul 28 20:36:34 EDT 2014

Powered by FUDForum. Page generated in 0.01573 seconds