package org.eparapher.rcp.tools; import org.eclipse.jface.preference.FileFieldEditor; import org.eclipse.swt.widgets.Composite; public class KeystoreFieldEditor extends FileFieldEditor { /** * Creates a keystore file field editor. * * @param name the name of the preference this field editor works on * @param labelText the label text of the field editor * @param enforceAbsolute true if the file path * must be absolute, and false otherwise * @param parent the parent of the field editor's control */ public KeystoreFieldEditor(String name, String labelText, boolean enforceAbsolute, Composite parent) { super(name, labelText, enforceAbsolute, parent); } /* (non-Javadoc) * Method declared on StringFieldEditor. * Checks whether the text input field specifies an existing file. */ protected boolean checkState() { return true; } }