/** * Creates page 1 of the multi-page editor, which allows you to change the font used in page 2. */ void createPage1() { try { m_editor = new TextEditor(); int index = addPage(m_editor, getEditorInput()); setPageText(index, m_editor.getTitle()); } catch (PartInitException e) { e.printStackTrace(); } }