RE: [Pydev-code] Code folding problem
Brought to you by:
fabioz
From: Fabio Z. <fa...@in...> - 2004-09-24 16:52:28
|
Aleks, Strange, I just did the same change you did and it worked for me, but I think I know why... The thing is, I rely on our ModelUtils to make things work on code folding. The problem is that I only got a Model after some document change, because it was only parsed then - and if it was not sintatically correct, it would never work, I made some changes and now if it finds an error it tries to parse the document again changing the line error for a pass (it may not work sometimes, but it is better than nothing). So, I made some changes (also commited the line to make the decorator work), try to check it out and see if it works... I added one more feature for the release: a Ctrl+1 advisor, to help on assigning. E.g. If you have a call in the main module, let's say: C()| Ctrl+1 - bring a list of suggestions for assistants (it's still not very complete, but it has already proved very usable for me) Or if you have: Class C: def a(self): self.newMethod()| Ctrl+1 also brings some interesting assistants. It is not complete, but it works well for cases were it is well used...eheheheh I say that because the suggestions may appear in any context now, and it may do strange things if the user doesn't know what it is doing... []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: quinta-feira, 23 de setembro de 2004 21:47 To: pyd...@li... Subject: [Pydev-code] Code folding problem Hi Fabio, before making a new release, I was going through a list of all the open bugs. There is 1 where I need your help: It is [ 998497 ] 0.5.3 breaks hyperlinking and highlighting of current line I've fixed the hyperlinking bit, but when I try to fix highlight of current line & showing of the print margin, I break code folding. This is what I've done: - Current line highlight & print margin were not displayed because PyEdit was lacking a sourceViewerDecorator. When I fix this by doing: PyEditProjection.java: changed: protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles) { return new PySourceViewer(parent, ruler, getOverviewRuler(), true, styles, this); to: ISourceViewer viewer = new PySourceViewer(parent, ruler, getOverviewRuler(), true, styles, this); getSourceViewerDecorationSupport(viewer); // make sure we get decoration support return viewer; The folding arrows are no longer visible. Any clues how might we be able to have folding & line highlight/print margins at the same time? It seems like some annotation provider conflict, the class names make me dizzy trying to figure it out. I did not check in this change. Once this is resolved, we'll be ready to release. Aleks ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |