private void reviewTask(EditableTask task) { TaskEditor taskEditor = getTaskEditor(task); Composite container = taskEditor.getControl().getParent(); Composite separator = toolkit.createCompositeSeparator(container); GridData data = new GridData(); data.heightHint = 1; data.horizontalAlignment = SWT.FILL; separator.setLayoutData(data); FormText text = toolkit.createFormText(container, false); text.setImage(DescriptionPanel.REVIEW_IMAGE, CheatSheetPlugin.getPlugin().getImage(ICheatSheetResource.COMPOSITE_TASK_REVIEW)); text.addHyperlinkListener(getEndReviewListener()); text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); StringBuilder buf = new StringBuilder(); buf.append("<form>"); //$NON-NLS-1$ addHyperlink(buf, END_REVIEW_TAG + task.getId(), DescriptionPanel.REVIEW_IMAGE, Messages.COMPOSITE_PAGE_END_REVIEW ); buf.append("</form>"); //$NON-NLS-1$ text.setText(buf.toString(), true, false); task.setUnderReview(true); container.layout(true); showEditor(task); }
Composite separator = toolkit.createCompositeSeparator(main); TableWrapData tableWrapData = new TableWrapData(TableWrapData.FILL_GRAB); tableWrapData.heightHint = 2;
Composite separator = toolkit.createCompositeSeparator(main); TableWrapData tableWrapData = new TableWrapData(TableWrapData.FILL_GRAB); tableWrapData.heightHint = 2;
container = innerToolkit.createComposite(parent); container.setLayout(layout); separator = innerToolkit.createCompositeSeparator(container); separator.setVisible(false); GridData gd = new GridData(GridData.FILL_HORIZONTAL);
/** * Instantiates a new abstract section. * * @param aEditor the a editor * @param parent the parent * @param headerText the header text * @param description the description */ public AbstractSection(MultiPageEditor aEditor, Composite parent, String headerText, String description) { super(parent, aEditor.getToolkit(), ((null != description) ? Section.DESCRIPTION : 0) | ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); toolkit = aEditor.getToolkit(); getSection().setText(headerText); getSection().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); toolkit.createCompositeSeparator(getSection()); if (null != description) getSection().setDescription(description); editor = aEditor; }
separator = toolkit.createCompositeSeparator(container);
mform.getToolkit().adapt(upperText, false, false); Composite separator = toolkit.createCompositeSeparator(panel);