This chapter has been long, and you might have lost track of the code. I ll include the current listings below, but in a sense losing track of the code is part of the message here.
We ve made a very important set of changes to the system. We have improved the encapsulation of TextModel and removed many unnecessary methods . We have made the menu creation process, and the creation of new tag insertions, far simpler than they were, as we ll see in a few moments. Most important, even though there were many steps, as we see from the length of this chapter, each step was simple and straightforward. Our first steps improved the XMLNotepad class, but when we tried to improve TextModel, we didn t get all the benefits we expected. We could have stopped there ”and perhaps I should have stopped the chapter there ”but we went on, in tiny steps until we reached a much better point. Is it a better point? I think so, but let s find out before we close.