public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new TextCellEditor(parent, SWT.PASSWORD); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; }
/** * The <code>ComboBoxPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ComboBoxCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ComboBoxCellEditor(parent, labels, SWT.READ_ONLY); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; }
/** * The <code>TextPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>TextCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new TextCellEditor(parent); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; } }
/** * The <code>TextPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>TextCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new TextCellEditor(parent); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; } }
/** * The <code>ComboBoxPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ComboBoxCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ComboBoxCellEditor(parent, values, SWT.READ_ONLY); if (getValidator() != null) editor.setValidator(getValidator()); return editor; } }
/** * The <code>ColorPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ColorCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ColorCellEditor(parent); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; } }
/** * The <code>ColorPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ColorCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ColorCellEditor(parent); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; } }
/** * The <code>TextPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>TextCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new TextCellEditor(parent); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; } }
/** * The <code>ColorPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ColorCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ColorCellEditor(parent); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; } }
/** * The <code>ComboBoxPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ComboBoxCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ComboBoxCellEditor(parent, labels, SWT.READ_ONLY); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; }
/** * The <code>ComboBoxPropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method creates and returns a new * <code>ComboBoxCellEditor</code>. * <p> * The editor is configured with the current validator if there is one. * </p> */ @Override public CellEditor createPropertyEditor(Composite parent) { CellEditor editor = new ComboBoxCellEditor(parent, labels, SWT.READ_ONLY); if (getValidator() != null) { editor.setValidator(getValidator()); } return editor; }
editor.setValidator(CellEditorValidatorFacotory.createValidator(Primitives .getPrimitiveClass(value.getFeatureStructure().getCAS().getTypeSystem(), value.getFeature()))); editor.setValidator(CellEditorValidatorFacotory.createValidator(Byte.class)); editor.setValidator(CellEditorValidatorFacotory.createValidator(Short.class)); editor.setValidator(CellEditorValidatorFacotory.createValidator(Integer.class)); editor.setValidator(CellEditorValidatorFacotory.createValidator(Long.class)); editor.setValidator(CellEditorValidatorFacotory.createValidator(Float.class)); editor.setValidator(CellEditorValidatorFacotory.createValidator(Double.class));