W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.34,1.35

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 10:00:30 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mv6qM-0008DB-Be@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv31551/src/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
changed exception methods to passes string parameters

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- UnicornCall.java	6 Oct 2009 08:16:02 -0000	1.34
+++ UnicornCall.java	6 Oct 2009 10:00:28 -0000	1.35
@@ -31,7 +31,6 @@
 import org.w3c.unicorn.tasklisttree.TLTExec;
 import org.w3c.unicorn.tasklisttree.TLTIf;
 import org.w3c.unicorn.tasklisttree.TLTNode;
-import org.w3c.unicorn.util.Language;
 import org.w3c.unicorn.util.Message;
 import org.w3c.unicorn.util.Property;
 
@@ -99,8 +98,7 @@
 		
 		MimeType aMimeType = inputParameter.getMimeType();
 		if (!aTask.getSupportedMimeTypes().contains(aMimeType.toString()))
-			throw new UnicornException(Message.ERROR, 
-					Language.evaluate(sLang.split(",")[0], "$message_unsupported_mime_type", aMimeType.toString()));
+			throw new UnicornException(Message.ERROR, "$message_unsupported_mime_type", null, aMimeType.toString());
 		
 		doNode(inputParameter, aTask.getTree());
 	}
@@ -165,9 +163,8 @@
 			final InputMethod aInputMethod = aObserver
 					.getBestInputMethod(aEnumInputMethod);
 			
-			//TODO: add warning if inputMethod has changed -> check behavior
 			if (aInputMethod.getMethod() != inputParameter.getInputMethod()) {
-				messages.add(new Message(Message.WARNING, "\"" + aObserver.getName(sLang) + "\" $message_input_changed_1 " + inputParameter.getInputMethod().toString().toLowerCase() + " $message_input_changed_2", "$message_input_changed_long"));
+				messages.add(new Message(Message.WARNING, "$message_input_changed", "$message_input_changed_long", aObserver.getName(sLang), inputParameter.getInputMethod().toString().toLowerCase()));
 			}
 			
 			InputModule inputModule = createInputModule(aInputMethod, inputParameter.getInputModule());
Received on Tuesday, 6 October 2009 10:00:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC