/** {@inheritDoc} */ @Override protected void createClient(final Section section, final FormToolkit toolkit) { // There seems to be a bug that cuts off last letter. Even eclipse editors // say "Testin". Intentionally misspelling so testing section says "Testing" section.setText("Testing \t"); // append space and tab to workaround Eclipse Bug 408509 section.setLayout(FormLayoutFactory.createClearTableWrapLayout(false, 1)); final TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); section.setDescription("Test the component by:"); final Composite client = toolkit.createComposite(section); client.setLayout(FormLayoutFactory.createClearTableWrapLayout(true, 1)); section.setClient(client); final IActionBars actionBars = getPage().getEditor().getEditorSite().getActionBars(); createTestingArea(client, toolkit, actionBars); toolkit.paintBordersFor(client); }
/** {@inheritDoc} */ @Override protected void createClient(final Section section, final FormToolkit toolkit) { section.setText("General Information"); section.setLayout(FormLayoutFactory.createClearTableWrapLayout(false, 1)); final TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); section.setDescription("This section describes general information about this node."); final IActionBars actionBars = getPage().getEditor().getEditorSite().getActionBars(); this.client = new GeneralInformationComposite(section, SWT.None, toolkit, actionBars); section.setClient(this.client); addListeners(actionBars); toolkit.adapt(this.client); toolkit.paintBordersFor(this.client); }