public void wdDoInit() { //@@begin wdDoInit() msgMgr = wdComponentAPI.getMessageManager(); // In order to avoid having to noodle around with reflection in the input // validator utility class, build a Vector of all the messages needed by // the input validator and pass it as a parameter Vector emptyFieldMsgs = new Vector(); // In this case, the UI validator utility knows that the first message // relates to an empty string field and the second relates to an empty // numeric field emptyFieldMsgs.add(IMessageInputValidatorComp.EMPTY_STRING_FIELD); emptyFieldMsgs.add(IMessageInputValidatorComp.EMPTY_NUMERIC_FIELD); // Create a new instance of the input validator uiTreeVisitor = new UiTreeVisitor(wdComponentAPI.getMessageManager(), wdControllerAPI.getContext(), emptyFieldMsgs); //@@end }