Class DirectorySwtParameter

All Implemented Interfaces:
SwtParameter<String>

public class DirectorySwtParameter extends BaseSwtStringParameter<DirectorySwtParameter>
SWT Parameter representing a Directory (String) value. Displays Textbox and browse button.

Will always use 2 horizontal spaces in GridLayout

Note: Currently doesn't validate if directory is valid or exists

  • Field Details

    • browse

      private final org.eclipse.swt.widgets.Button browse
    • area

      private final org.eclipse.swt.widgets.Composite area
    • keyDialogTitle

      protected String keyDialogTitle
    • keyDialogMessage

      protected String keyDialogMessage
  • Constructor Details

    • DirectorySwtParameter

      public DirectorySwtParameter(org.eclipse.swt.widgets.Composite composite, DirectoryParameterImpl param)
    • DirectorySwtParameter

      public DirectorySwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, SwtParameterValueProcessor<DirectorySwtParameter,String> valueProcessor)
      Make a directory selecting ui

      When parent is of GridLayout, resulting new widgets will take 2 columns

      Parameters:
      composite - Where widgets will be placed. Composite is not altered
      paramID - ID of the parameter (usually config id)
      labelKey - Messagebundle key for the text shown before the color button
      valueProcessor - null if you want to use COConfigurationManager
  • Method Details