Java Magazine, May/June 2018
ORACLE COM JAVAMAGAZINE MAY JUNE 2018 23 design patterns edj 3lines txt 1 3L 26C p 2 Line One Line Two Line Three 2d 3 p 4 Line One Line Three u 5 p 6 Line One Line Two Line Three q 7 At this point the undo operation in edj worked nicely I had refactored the bottom layer made of buffer primitives But when I went to hook this code into the main line code of the editor I was reminded that that code is large and hoary The main loop was something like this while line in readLine null if line startsWith e code to edit a new file else if line startsWith f code to print or set filename many more if else statements one per command
You must have JavaScript enabled to view digital editions.