Fix struct/method names

* Replace "Interval" by "Segment" in code editor classes