1 package org.eparapher.rcp.tools;
2
3 import org.eclipse.jface.preference.FileFieldEditor;
4 import org.eclipse.swt.widgets.Composite;
5
6 public class KeystoreFieldEditor extends FileFieldEditor {
7
8 /**
9 * Creates a keystore file field editor.
10 *
11 * @param name the name of the preference this field editor works on
12 * @param labelText the label text of the field editor
13 * @param enforceAbsolute <code>true</code> if the file path
14 * must be absolute, and <code>false</code> otherwise
15 * @param parent the parent of the field editor's control
16 */
17 public KeystoreFieldEditor(String name, String labelText,
18 boolean enforceAbsolute, Composite parent) {
19 super(name, labelText, enforceAbsolute, parent);
20 }
21
22 /* (non-Javadoc)
23 * Method declared on StringFieldEditor.
24 * Checks whether the text input field specifies an existing file.
25 */
26 protected boolean checkState() {
27 return true;
28 }
29
30 }