Example #1
0
 private void createTagsArea(Composite parent, FormToolkit toolkit, int span) {
   Composite tagArea = toolkit.createComposite(parent);
   GridLayoutFactory.fillDefaults().numColumns(2).equalWidth(false).applyTo(tagArea);
   GridDataFactory.fillDefaults().span(span, 1).grab(true, false).applyTo(tagArea);
   toolkit
       .createLabel(tagArea, UIText.CommitEditorPage_LabelTags)
       .setForeground(toolkit.getColors().getColor(IFormColors.TB_TOGGLE));
   fillTags(tagArea, toolkit);
 }
Example #2
0
 /** Refresh the editor page */
 public void refresh() {
   fillTags(tagLabelArea.getParent(), getManagedForm().getToolkit());
   fillBranches();
   getManagedForm().getForm().layout(true, true);
 }