Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] onChanged surprises

In using eclipse.TextModel listener onChanged I found a couple of surprises:
1) The first thing you get is a change event on line 0, event though the source did not change. The event in my case has 65 removed and 554 added characters. I suppose if it always comes first and always is on line zero then I can work around it. 2) The first thing you get is a change event on line 0 ;-). So the line index is zero based, like the documentation says but nevertheless a surprise.

I'd put these on the wiki but the current client documentation seems to be about 'eclipse' which is some kind of factory, while the part I'm looking at are instances so I'm not sure where to put stuff.

I have been able to get a tiny demo going, where an Orion panel in Firebug edits css and the changes simultaneously apply to the page.

jjb


Back to the top