Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » FormEditor.selectReveal() not working(Is IFormPage loading too lazy?)
FormEditor.selectReveal() not working [message #1050596] Sat, 27 April 2013 08:28
Ben Cox is currently offline Ben Cox
Messages: 17
Registered: June 2012
Junior Member
Hi All,

I'm currently trying to use FormEditor.selectReveal(Object pageInput) on a multi-page FormEditor. It's currently working fine... as long as I've previously viewed the page that the pageInput is found on!

The problem is that the UI for the IFormPage is lazily loaded (great feature), but all the IFormParts (such as SectionParts) are added to the IManagedForm during that period of UI creation, because they all rely on being passed or creating their Sections etc in their constructors. Therefore, they're not registered when selectReveal(...) comes iterates through the IManagedForm's IFormParts.

Is there any way of registering the IFormParts with the IManagedForm before the pages are shown for the first time, without having to create all the pages up-front?
Previous Topic:Is it possible to add connections between two TreeViewers in an Editor?
Next Topic:Modifying ProjectionDrawingStrategy
Goto Forum:

Current Time: Thu Aug 21 22:13:55 EDT 2014

Powered by FUDForum. Page generated in 0.01602 seconds