X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.application%2Fsrc%2Forg%2Fsimantics%2Fapplication%2Farguments%2FIArgumentValidator.java;h=cd543cc8082bb6ccf955643e54bde39807741e31;hb=refs%2Fchanges%2F38%2F238%2F2;hp=ebe0272be0e13b13a2a8d649e91a4945e90cb580;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.application/src/org/simantics/application/arguments/IArgumentValidator.java b/bundles/org.simantics.application/src/org/simantics/application/arguments/IArgumentValidator.java index ebe0272be..cd543cc80 100644 --- a/bundles/org.simantics.application/src/org/simantics/application/arguments/IArgumentValidator.java +++ b/bundles/org.simantics.application/src/org/simantics/application/arguments/IArgumentValidator.java @@ -1,28 +1,28 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.application.arguments; - -public interface IArgumentValidator { - - /** - * Validates the given argument. Returns an error message to display if the - * new text is invalid. Returns null if there is no error. - * Note that the empty string is not treated the same as null; - * it indicates an error state but with no message to display. - * - * @param newText the text to check for validity - * - * @return an error message or null if no error - */ - public String isValid(T newText); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.application.arguments; + +public interface IArgumentValidator { + + /** + * Validates the given argument. Returns an error message to display if the + * new text is invalid. Returns null if there is no error. + * Note that the empty string is not treated the same as null; + * it indicates an error state but with no message to display. + * + * @param newText the text to check for validity + * + * @return an error message or null if no error + */ + public String isValid(T newText); + +}