Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/dialogs/IInputValidator.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module org.eclipse.jface.dialogs.IInputValidator; | |
14 | |
15 import java.lang.all; | |
16 | |
17 /** | |
18 * The IInputValidator is the interface for simple validators. | |
19 * @see org.eclipse.jface.dialogs.InputDialog | |
20 */ | |
21 public interface IInputValidator { | |
22 /** | |
23 * Validates the given string. Returns an error message to display | |
24 * if the new text is invalid. Returns <code>null</code> if there | |
25 * is no error. Note that the empty string is not treated the same | |
26 * as <code>null</code>; it indicates an error state but with no message | |
27 * to display. | |
28 * | |
29 * @param newText the text to check for validity | |
30 * | |
31 * @return an error message or <code>null</code> if no error | |
32 */ | |
33 public String isValid(String newText); | |
34 } |