|
|
|
|
|
|
Re: Disable lazy loading of pages [message #900356 is a reply to message #900350] |
Mon, 06 August 2012 15:26 |
John Steele Messages: 50 Registered: January 2010 |
Member |
|
|
I had no issues when I added pages to the editor this way. I put a system.out statement in the createFormContent(...) method of the FormPage and it prints out before the tab is selected, which indicates the controls where created before the tab was ever selected.
@Override protected void addPages() {
try {
addPage(new WelcomePage (this, "welcome", "Welcome");
addPage(1, new OverviewPage(this, "overview", "Overview"), OverviewEditorInput.INSTANCE);
...
} catch (PartInitException e) {
Logger.INSTANCE.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage()));
}
}
I then invoke it this way:
FormEditor editor = (FormEditor) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(DashboardEditorInput.INSTANCE, AwsDashboardEditor.ID);
editor.setActivePage(activePageID);
I can fool around with it later when I get home to see if I can replicate the StackOverflowError you're getting.
|
|
|
Powered by
FUDForum. Page generated in 0.03501 seconds