X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.swt%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fswt%2FInputValidators.java;h=9a63b9224fe42639ff9dc94c21e9f7fdbe6279a5;hp=2edac9b14d131433ef453bee314def04781f2570;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/InputValidators.java b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/InputValidators.java index 2edac9b14..9a63b9224 100644 --- a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/InputValidators.java +++ b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/InputValidators.java @@ -1,32 +1,32 @@ -/******************************************************************************* - * Copyright (c) 2012 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.browsing.ui.swt; - -import org.eclipse.jface.dialogs.IInputValidator; -import org.simantics.db.layer0.variable.InputValidator; - -final public class InputValidators { - - public static IInputValidator string(final InputValidator validator) { - - return new IInputValidator() { - - @Override - public String isValid(String newText) { - return validator.isValid(newText); - } - - }; - - } - -} +/******************************************************************************* + * Copyright (c) 2012 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.browsing.ui.swt; + +import org.eclipse.jface.dialogs.IInputValidator; +import org.simantics.db.layer0.variable.InputValidator; + +final public class InputValidators { + + public static IInputValidator string(final InputValidator validator) { + + return new IInputValidator() { + + @Override + public String isValid(String newText) { + return validator.isValid(newText); + } + + }; + + } + +}