/** * Adds the form page to this editor. Form page will be loaded lazily. Its * part control will not be created until it is activated for the first * time. * * @param page * the form page to add */ public int addPage(IFormPage page) throws PartInitException { int i = super.addPage(page.getPartControl()); configurePage(i, page); return i; }
/** * Adds the form page to this editor. Form page will be loaded lazily. Its * part control will not be created until it is activated for the first * time. * * @param page * the form page to add */ public int addPage(IFormPage page) throws PartInitException { int i = super.addPage(page.getPartControl()); configurePage(i, page); return i; }
/** * Adds a complete editor part to the multi-page editor. * * @see MultiPageEditorPart#addPage(IEditorPart, IEditorInput) */ @Override public int addPage(IEditorPart editor, IEditorInput input) throws PartInitException { int index = super.addPage(editor, input); if (editor instanceof IFormPage) configurePage(index, (IFormPage) editor); else registerPage(-1, editor); return index; }
/** * Adds a complete editor part to the multi-page editor. * * @see MultiPageEditorPart#addPage(IEditorPart, IEditorInput) */ @Override public int addPage(IEditorPart editor, IEditorInput input) throws PartInitException { int index = super.addPage(editor, input); if (editor instanceof IFormPage) configurePage(index, (IFormPage) editor); else registerPage(-1, editor); return index; }
/** * Adds a complete editor part to the multi-page editor at the specified * position. * * @see MultiPageEditorPart#addPage(int, IEditorPart, IEditorInput) * @since 3.1 */ @Override public void addPage(int index, IEditorPart editor, IEditorInput input) throws PartInitException { super.addPage(index, editor, input); if (editor instanceof IFormPage) configurePage(index, (IFormPage) editor); else registerPage(index, editor); updatePageIndices(index+1); }
/** * Adds the form page to this editor at the specified index (0-based). Form * page will be loaded lazily. Its part control will not be created until it * is activated for the first time. * * @param index * the position to add the page at (0-based) * @param page * the form page to add * @since 3.1 */ public void addPage(int index, IFormPage page) throws PartInitException { super.addPage(index, page.getPartControl()); configurePage(index, page); updatePageIndices(index+1); }
/** * Adds the form page to this editor at the specified index (0-based). Form * page will be loaded lazily. Its part control will not be created until it * is activated for the first time. * * @param index * the position to add the page at (0-based) * @param page * the form page to add * @since 3.1 */ public void addPage(int index, IFormPage page) throws PartInitException { super.addPage(index, page.getPartControl()); configurePage(index, page); updatePageIndices(index+1); }
/** * Adds a complete editor part to the multi-page editor at the specified * position. * * @see MultiPageEditorPart#addPage(int, IEditorPart, IEditorInput) * @since 3.1 */ @Override public void addPage(int index, IEditorPart editor, IEditorInput input) throws PartInitException { super.addPage(index, editor, input); if (editor instanceof IFormPage) configurePage(index, (IFormPage) editor); else registerPage(index, editor); updatePageIndices(index+1); }