Пример #1
0
 @Override
 protected Control createDialogArea(Composite parent) {
   Composite composite = (Composite) super.createDialogArea(parent);
   Composite inner =
       SWTFactory.createComposite(composite, composite.getFont(), 2, 1, GridData.FILL_BOTH);
   SWTFactory.createLabel(inner, Messages.TclAddWatchpointDialog_expressionLabel, 1);
   expressionField = SWTFactory.createText(inner, SWT.BORDER, 1, expression);
   ((GridData) expressionField.getLayoutData()).widthHint = convertWidthInCharsToPixels(20);
   return composite;
 }
    public Control createControl(Composite parent) {
      final Composite composite =
          SWTFactory.createComposite(parent, parent.getFont(), 2, 0, GridData.FILL_BOTH);

      createLabelPreferences(composite);

      return composite;
    }
    private void createLabelPreferences(Composite parent) {
      Group group =
          SWTFactory.createGroup(
              parent,
              ScriptDebugPreferencesMessages.ScriptDetailFormattersPreferencePage_1,
              1,
              2,
              GridData.FILL_HORIZONTAL);

      // Create the 3 detail option radio buttons
      // TODO: uncomment when inline formatter support added
      // fInlineFormattersButton = SWTFactory
      // .createRadioButton(
      // group,
      // ScriptDebugPreferencesMessages.
      // ScriptDetailFormattersPreferencePage_2);
      fInlineAllButton =
          SWTFactory.createRadioButton(
              group, ScriptDebugPreferencesMessages.ScriptDetailFormattersPreferencePage_3);
      fDetailPaneButton =
          SWTFactory.createRadioButton(
              group, ScriptDebugPreferencesMessages.ScriptDetailFormattersPreferencePage_4);
    }