@Deprecated public void setFocusOfActivePage() { if (this.getActivePage() > -1) { IFormPage page = this.getPages()[this.getActivePage()]; if (page != null) { page.setFocus(); } } }
@Override public void setFocus() { IFormPage page = getActivePageInstance(); if (page != null) { page.setFocus(); } else { super.setFocus(); } }
protected void pageChange(int newPageIndex) { if ((newPageIndex == sourceEditorIndex) && (dirty)) { updateSourceFromDesign(); } else if ((newPageIndex == formEditorIndex) && (sourceDirty)) { updateDesignFromSource(); } super.pageChange(newPageIndex); final IFormPage page = getActivePageInstance(); if (page != null) { page.setFocus(); } }