Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » How to persist setVisible/setToBeRendered changes across restarts?
How to persist setVisible/setToBeRendered changes across restarts? [message #1726536] Mon, 14 March 2016 09:43 Go to next message
Eclipse UserFriend
Hi,

I suspect I am missing something obvious, but I can't get this to work: I have a Tool Control in a Trim Contribution. Programmatically, I can cause it to vanish using MToolControl.setVisible/setToBeRendered, a change which is immediately reflected in the UI.

Alas, this change is not persisted across restarts. How to accomplish this?

FWIW, I've tried using different values of fragment/@apply in my plugin.xml, but to no avail.

Best wishes,

Andreas
Re: How to persist setVisible/setToBeRendered changes across restarts? [message #1729146 is a reply to message #1726536] Mon, 11 April 2016 09:56 Go to previous message
Eclipse UserFriend
Interestingly, if I set mToolControl.getParent().setToBeRendered(false), with the parent being the MTrimBar contributed by the workbench, then the toBeRendered state is persisted; I can see the attribute reflected in the workbench.xml after shutdown. But obviously I don't want to hide the entire trim bar, just my tool control within it.

Can someone please enlighten me why E4 (or its compatibility layer) persists the toBeRendered state of the trim bar, not not that of my tool control contributed via a fragment.e4xmi?
Previous Topic:How to show popup menu on customized viewer
Next Topic:Pre-defined command parameter type converters/TypeIDs for primitives?
Goto Forum:
  


Current Time: Sat Jul 05 05:14:25 EDT 2025

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

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

Back to the top