+ /* Pages management */
+ @Override
+ protected void addPages() {
+ try {
+ addPage(new ConnectorAliasPage(this, "mainPage", "Main"));
+ // TODO Add history page
+ // addPage(new ConnectorAliasPage(this, "mainPage", "Main"));
+ } catch (PartInitException e) {
+ throw new AkbException("Unable to initialise pages for editor "
+ + getEditorId(), e);
+ }
+ }
+
+ /**
+ * Display and edit info
+ */
+ private class ConnectorAliasPage extends FormPage {
+
+ public ConnectorAliasPage(FormEditor editor, String id, String title) {
+ super(editor, id, title);
+ }
+
+ protected void createFormContent(IManagedForm managedForm) {
+ super.createFormContent(managedForm);
+ ScrolledForm form = managedForm.getForm();
+ form.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ populateMainPage(form.getBody(), managedForm);
+ }
+ }
+