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

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