* @param line the line number or -1
*/
public static void createWarningMessage(IValidator validator, IReporter reporter, IFile file,
String id, String[] params, int start, int length, int line){
Message message = new Message();
message.setSeverity(IMessage.NORMAL_SEVERITY);
if(line>=0){
message.setLineNo(line);
}
if(start>=0){
message.setOffset(start);
message.setLength(length);
}
message.setBundleName("net.sf.clickide.core.validator.validation");
message.setId(id);
message.setParams(params);
message.setTargetObject(file);
reporter.addMessage(validator, message);
}