The netbeans implementation in Vim receives the netbeans messages in
the gui event loop (or the select event loop) and processes these
messages by calling netbeans_parse_messages() in the idle loop when
Vim is waiting for user input.

When building an automated test case with netbeans, it is not obvious
how to have Vim made to call the idle loop. The attached patch adds a
call to netbeans_parse_messages() when the Vim ":sleep" command is
run. This allows for a more deterministic way of writing the test
cases (instead of inserting ":sleep" commands randomly until it works,
on this hardware).


-- 
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8207,6 +8207,12 @@
     {
 	ui_delay(msec - done > 1000L ? 1000L : msec - done, TRUE);
 	ui_breakcheck();
+#ifdef FEAT_NETBEANS_INTG
+	/* Process the netbeans messages that may have been received in the
+	 * call to ui_breakcheck when the gui is in use. This may occur when
+	 * running a test case.*/
+	netbeans_parse_messages();
+#endif
     }
 }
 

Raspunde prin e-mail lui