|
From: Jim V. F. <big...@ri...> - 2002-04-04 08:57:23
|
What a long, strange trip it's been. After Charlie helped pull my head out of my rear, I got *an* implementation of getting a line number and column number out of a DefinitionsDocument fairly quickly. I finished up some work that Erik and I were doing, and committed some code this afternoon that adds a DrScheme like listing of the line number and column number. Apparently, the underlying calls are still very buggy. Column is just all messed up, which means I will probably not rely on the helper methods already present to determine that info. The line number, however, only seems to be wrong when using the up and down arrow keys, sometimes by as many as 20 lines on large files. It would be easy to keep this out of a release, but if any of you have fifteen spare minutes, check out the code and see what I'm doing wrong. I know you've wanted this feature in there, and we're very close. Thanks all! Jim |
|
From: Charles R. <cr...@ri...> - 2002-04-04 21:38:46
|
Argh! I've made some changes to line numbering, but I'm having trouble committing them at the moment (memory problems, editor issues). I'm already late to practice, so I need to run. I'll get them checked in once I get back... Here's the email I was going to send out: I've started making some updates to the line numbering code, but mainly just in the UI for now-- I haven't gotten much into the code in DefDoc yet. The creation and management of the field and listener is a little cleaner now, but it still doesn't work correctly, so I've commented out the code that displays it on the most recent commit. To test the line numbering stuff, there's three lines you need to uncomment, all in MainFrame. One is in the constructor, where it instantiates PositionListener. The other two are in _createDefScrollPane, where it adds the caret listener and updates the display. I'm off to practice now, but I'll look more at the inner workings when I get back. Charlie |
|
From: Eric E. A. <ea...@cs...> - 2002-04-04 21:47:57
|
Hi Charlie, I'm having trouble committing too! NewJVMTest is hanging again... Anyway, I filed a bug report with my discoveries so far. Let's post all new discoveries to the bug report; interested parties can monitor it. -- Eric On Thu, 4 Apr 2002, Charles Reis wrote: > Argh! I've made some changes to line numbering, but I'm having trouble > committing them at the moment (memory problems, editor issues). I'm > already late to practice, so I need to run. I'll get them checked in > once I get back... > > > Here's the email I was going to send out: > > I've started making some updates to the line numbering code, but > mainly just in the UI for now-- I haven't gotten much into the code in > DefDoc yet. The creation and management of the field and listener is a > little cleaner now, but it still doesn't work correctly, so I've > commented out the code that displays it on the most recent commit. > > To test the line numbering stuff, there's three lines you need to > uncomment, all in MainFrame. One is in the constructor, where it > instantiates PositionListener. The other two are in > _createDefScrollPane, where it adds the caret listener and updates the > display. > > I'm off to practice now, but I'll look more at the inner workings > when I get back. > > Charlie > > > _______________________________________________ > drjava-hackers mailing list > drj...@li... > https://lists.sourceforge.net/lists/listinfo/drjava-hackers > |
|
From: Charles R. <cr...@ri...> - 2002-04-05 00:36:17
|
Finally... After two more tries (one of them hanging on NewJVMTest), my earlier changes are in. As I said, I'll look at the underlying logic more after dinner to see if I can figure out what's going wrong. Charlie Eric E. Allen wrote: > Hi Charlie, > > I'm having trouble committing too! NewJVMTest is hanging again... > > Anyway, I filed a bug report with my discoveries so far. Let's post all > new discoveries to the bug report; interested parties can monitor it. > > -- Eric > > > > On Thu, 4 Apr 2002, Charles Reis wrote: > > >>Argh! I've made some changes to line numbering, but I'm having trouble >>committing them at the moment (memory problems, editor issues). I'm >>already late to practice, so I need to run. I'll get them checked in >>once I get back... >> >> >>Here's the email I was going to send out: >> >> I've started making some updates to the line numbering code, but >>mainly just in the UI for now-- I haven't gotten much into the code in >>DefDoc yet. The creation and management of the field and listener is a >>little cleaner now, but it still doesn't work correctly, so I've >>commented out the code that displays it on the most recent commit. >> >>To test the line numbering stuff, there's three lines you need to >>uncomment, all in MainFrame. One is in the constructor, where it >>instantiates PositionListener. The other two are in >>_createDefScrollPane, where it adds the caret listener and updates the >>display. >> >> I'm off to practice now, but I'll look more at the inner workings >>when I get back. >> >>Charlie >> >> >>_______________________________________________ >>drjava-hackers mailing list >>drj...@li... >>https://lists.sourceforge.net/lists/listinfo/drjava-hackers >> > > > > . > |