PatternValidator.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.filter.pattern;
00002 
00003 import org.eclipse.jface.dialogs.IInputValidator;
00004 
00005 public class PatternValidator implements IInputValidator {
00006 
00007     @Override
00008     public String isValid(String newText) {
00009 
00010         if (newText == null || newText.length() < 1) {
00011             return "Pattern cannot be empty.";
00012         }
00013         return null;
00014     }
00015 
00016 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1