User Portlet User Portlet

Discussions
Thank you Rohit. I now realise what the problem is: The current Wolfram Workbench site https://www.wolfram.com/workbench/ and its big red "Get started" link http://support.wolfram.com/kb/27221 make a big song and dance about **Eclipse IDE**, yet...
A great improvement that I'd like to understand better! Normally, a statement like pts = If[Last[pts] == p, pts, pts~Join~{p}]would lead to an infinite loop, yet here it doesn't. Why is that? The trick appears to be making the array...
I am VERY happy with Vitaliy's solutions - there are exactly what I was looking for! Thank you, spasibo, Vitaliy!