pydev-code Mailing List for PyDev for Eclipse (Page 46)
Brought to you by:
fabioz
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(14) |
Apr
(18) |
May
(12) |
Jun
(34) |
Jul
(31) |
Aug
(37) |
Sep
(22) |
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(1) |
Feb
(4) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(2) |
Jul
(24) |
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
2006 |
Jan
(5) |
Feb
(23) |
Mar
(5) |
Apr
(80) |
May
(26) |
Jun
(13) |
Jul
(13) |
Aug
(4) |
Sep
(31) |
Oct
(24) |
Nov
(6) |
Dec
(2) |
2007 |
Jan
(7) |
Feb
|
Mar
(26) |
Apr
(3) |
May
(8) |
Jun
(6) |
Jul
(11) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
(3) |
2008 |
Jan
(7) |
Feb
(1) |
Mar
(6) |
Apr
(7) |
May
(9) |
Jun
(14) |
Jul
(9) |
Aug
(6) |
Sep
(10) |
Oct
(5) |
Nov
(8) |
Dec
(5) |
2009 |
Jan
(8) |
Feb
(10) |
Mar
(10) |
Apr
(1) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(3) |
Sep
(12) |
Oct
(6) |
Nov
(22) |
Dec
(12) |
2010 |
Jan
(10) |
Feb
(17) |
Mar
(5) |
Apr
(9) |
May
(8) |
Jun
(2) |
Jul
(4) |
Aug
(12) |
Sep
(1) |
Oct
(1) |
Nov
(8) |
Dec
|
2011 |
Jan
(14) |
Feb
(8) |
Mar
(3) |
Apr
(11) |
May
(6) |
Jun
(5) |
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(4) |
Nov
(4) |
Dec
(8) |
2012 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(5) |
May
(4) |
Jun
(10) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
(1) |
Dec
|
2013 |
Jan
(1) |
Feb
(2) |
Mar
(11) |
Apr
(10) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(20) |
Sep
(4) |
Oct
(18) |
Nov
(5) |
Dec
(7) |
2014 |
Jan
(3) |
Feb
(5) |
Mar
(7) |
Apr
(5) |
May
(10) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(7) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2015 |
Jan
(1) |
Feb
(1) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(3) |
Nov
(5) |
Dec
(1) |
2016 |
Jan
(26) |
Feb
(10) |
Mar
(4) |
Apr
|
May
(4) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(3) |
2017 |
Jan
(3) |
Feb
|
Mar
(9) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(9) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
|
2018 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
(3) |
2019 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(11) |
2021 |
Jan
(3) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Dana M. <dan...@ya...> - 2004-08-10 02:03:29
|
I forgot to check in PydevPlugin; sorry. It should compile fine now. --- Aleks Totic <a...@to...> wrote: > Hi Dana, > I am one of those that does not have python in his system path. > Mine is set inside .bashrc. You should use the interpreter set by > the debugger, or implement an additional completion interpreter > preference. My choice would be to use the debugger one, since > that covers 99% case. There is also an interpreter verification > routine you can use to check if interpreter is there. > Hmmm, so are you saying that "python" doesn't work from a normal command line shell? Because if it does, then my scheme works fine. On my linux system where I dot a .bashrc, this seems to work fine. I have not tried on Mac OSX, but should be able to as soon as I take delivery of my Mac. > In my tree, PythonCompletionProcessor fails to compile: > > throw new CoreException(PydevPlugin.makeStatus(IStatus.ERROR, > "Can't find python debug script", null)); > See above comment. Should build clean now. > How will autocompletion work? Will it be triggered automatically > after every '.', or does user have to launch it? My preference is > that user needs to act to turn it out. I am not too happy with > the CPython solution, it is heavyweight, and the "python on path" > problem cannot be solved nicely. > Right now it's on by default and can't be turned off just like in the Java IDE, the Semantic Web (SWeDe) IDE, IDLE for Python, JEdit, BOA Constructor, Komodo,( others??) I _suppose_ we could turn it off, but will anyone actually want that? Currently, we trigger on '.' and '(' and it really looks great. Actually, wrt the to "python on path" point, if a user does not have python, autocompletion will just silently not work. Further, if they do not have python, they may not be that interested in editing Python anyway. As far as the weight of this solution, It runs without any perceivable delay on my laptop, which is a a 1.8 Ghz Centrino (ecept for the built in 500 msec built in delay) Hmmm, Is there actually some preferable design solution to the need to interpret code in orde to autocomplete a runtime interpreted language? I implemented a Jython version, and that worked less nicely than we would have liked. Do you want to scrap this implementation too and reinstate that one again? > Also, please before the final checking try to: > - remove all the problem warnings > - remove the System.out.printfs > Done.The only warnings remaining in either of the files I checked in are a deprecation for "The type IAutoIndentStrategy is deprecated" I didn't implement that and I am loathe to mod that tonight, lest it break your or Fabio's code, since I think one of you must have provided that implementation. Looks like we can use (and extend) IAutoEditStrategy directly. We do have 12 other warnings, but they look like something we can fix later. > Looking forward to trying it out, > Yeah, it finally looks production quality :-) > Aleks > > PS: I just came back from a family vacation, back to hacking. > > Dana Moore wrote: > > > Hi all > > I just added autocompletion using a spawned CPython interpreter > only > > (replaces the old jython strategy). > > The affected files are: > > > org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java > > > org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java > > and pretty much all the python source files. > > org.python.pydev\PySrc\:: > > debug.py > > inspect.py > > introspect.py > > jintrospect.py > > tipper.py > > Let me know if something is a problem. > > let me know if yo ulike the autocompletion style > > It should sutocomplete on the occurence of '.' or '(' in the > workbench > > code > > If there are any robustness problems. The one which I know aout > > _potentially_ biting us is that I assume the existence of a Python > > interpreter somewhere in the user's path, thus I don't attempt to > do > > full discovery of wher ethe python interpreter actually lives, > rather I > > simply exec the string: > > "python <abs-path-of-org.python.pydev\PySrc>\tipper.py > > <tmp-file-containing-the-editor-content>" > > If it doesn't exist on the user path, autocmpletion simply won't > work > > > > I plan next to do a set of CTRL-SPACE completions a la the JDT: > > so for example, if the user types: iff <CTRL><SPACE> > > we might emit the text (on user selection): > > "if condition: > > action > > else: > > action" > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com |
From: Aleks T. <a...@to...> - 2004-08-10 00:46:58
|
Hi Dana, I am one of those that does not have python in his system path. Mine is set inside .bashrc. You should use the interpreter set by the debugger, or implement an additional completion interpreter preference. My choice would be to use the debugger one, since that covers 99% case. There is also an interpreter verification routine you can use to check if interpreter is there. In my tree, PythonCompletionProcessor fails to compile: throw new CoreException(PydevPlugin.makeStatus(IStatus.ERROR, "Can't find python debug script", null)); How will autocompletion work? Will it be triggered automatically after every '.', or does user have to launch it? My preference is that user needs to act to turn it out. I am not too happy with the CPython solution, it is heavyweight, and the "python on path" problem cannot be solved nicely. Also, please before the final checking try to: - remove all the problem warnings - remove the System.out.printfs Looking forward to trying it out, Aleks PS: I just came back from a family vacation, back to hacking. Dana Moore wrote: > Hi all > I just added autocompletion using a spawned CPython interpreter only > (replaces the old jython strategy). > The affected files are: > org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java > org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java > and pretty much all the python source files. > org.python.pydev\PySrc\:: > debug.py > inspect.py > introspect.py > jintrospect.py > tipper.py > Let me know if something is a problem. > let me know if yo ulike the autocompletion style > It should sutocomplete on the occurence of '.' or '(' in the workbench > code > If there are any robustness problems. The one which I know aout > _potentially_ biting us is that I assume the existence of a Python > interpreter somewhere in the user's path, thus I don't attempt to do > full discovery of wher ethe python interpreter actually lives, rather I > simply exec the string: > "python <abs-path-of-org.python.pydev\PySrc>\tipper.py > <tmp-file-containing-the-editor-content>" > If it doesn't exist on the user path, autocmpletion simply won't work > > I plan next to do a set of CTRL-SPACE completions a la the JDT: > so for example, if the user types: iff <CTRL><SPACE> > we might emit the text (on user selection): > "if condition: > action > else: > action" |
From: Aleks T. <a...@to...> - 2004-08-10 00:36:55
|
Neat. I've never used templates before. How do I activate them in in the editor? Aleks Fabio Zadrozny wrote: > Hi All, > > I've just added the templates preferences pages and the templates support to > our plugin. > > If anyone wants to add more templates to the default templates, that would > be a great idea... |
From: Aleks T. <a...@to...> - 2004-08-10 00:23:03
|
This was killing our international users. I'll probably put out a new minor release because of it soon. Aleks Bill Wright wrote: > Folks, > > I've been using pydev (latest CVS) in the past few days and have noticed > some strange behavior and I wonder if it's intentional or a bug. It > seems that the key combination <SHIFT><SPACE> causes a kill-line rather > than a space like it does in the Java editor. I type that accidentally > quite a bit and find it annoying. Is this done on purpose? > > Thanks, > Bill |
From: Dana M. <dan...@ya...> - 2004-08-09 22:46:40
|
Hi all I just added autocompletion using a spawned CPython interpreter only (replaces the old jython strategy). The affected files are: org.python.pydev\src\org\python\pydev\editor\PyEditConfiguration.java org.python.pydev\src\org\python\pydev\editor\PythonCompletionProcessor.java and pretty much all the python source files. org.python.pydev\PySrc\:: debug.py inspect.py introspect.py jintrospect.py tipper.py Let me know if something is a problem. let me know if yo ulike the autocompletion style It should sutocomplete on the occurence of '.' or '(' in the workbench code If there are any robustness problems. The one which I know aout _potentially_ biting us is that I assume the existence of a Python interpreter somewhere in the user's path, thus I don't attempt to do full discovery of wher ethe python interpreter actually lives, rather I simply exec the string: "python <abs-path-of-org.python.pydev\PySrc>\tipper.py <tmp-file-containing-the-editor-content>" If it doesn't exist on the user path, autocmpletion simply won't work I plan next to do a set of CTRL-SPACE completions a la the JDT: so for example, if the user types: iff <CTRL><SPACE> we might emit the text (on user selection): "if condition: action else: action" ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Travis C. <tra...@ya...> - 2004-08-06 21:48:40
|
Hi, I posted bug #998497 to the tracker about the Hyperlinking function breaking for me between 0.5 and 0.5.3. http://sourceforge.net/tracker/index.php?func=detail&aid=998497&group_id=85796&atid=577329 Is anyone else seeing this behavior? This seems basic enough that if it was affecting other people there would be traffic about it, but I can't think of anythihg special that I did to cause it to affect just me. I just used the eclipse plugin manager to do the upgrade from 0.5 to 0.5.3. I'm not too familiar with eclipse or java, but I tried to run the CVS version of the plugin under eclipse's plugin debug mode. I got the same behavior and was able to put a breakpoint on keyPressed in Hyperlink.java. When I hit 'ctrl' I do see fActive getting set to true but I don't see Hyperlinks. Any tips about debugging past this? _Travis_Caldwell_ __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-08-06 17:22:36
|
Hi All, I've just added the templates preferences pages and the templates support to our plugin. If anyone wants to add more templates to the default templates, that would be a great idea... []s Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
From: Parhaum T. <pto...@ho...> - 2004-08-06 02:56:10
|
Bah. Sorry about that, I thought I ran tests on it and only realized that it was killing the line in some cases... I apologize, I was going to fix that up once I'm back in California. Didn't know the keystroke combo was conflicting, either. - Parhaum ----- Original Message ----- From: "Fabio Zadrozny" <fa...@in...> To: <pyd...@li...> Sent: Thursday, August 05, 2004 9:11 AM Subject: RE: [Pydev-code] PyDev editor behavior > Well, it seems so... > > As a workaround for now, you can go on workbench->keys and remove the > shift+space combination (I find that annoying too, but I just removed the > keybinding on my machine ). > > I will do it for the plugin too - if that's okay with you Parhaum. > > []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 Bill Wright > Sent: quinta-feira, 5 de agosto de 2004 09:26 > To: pyd...@li... > Subject: [Pydev-code] PyDev editor behavior > > Folks, > > I've been using pydev (latest CVS) in the past few days and have noticed > some strange behavior and I wonder if it's intentional or a bug. It seems > that the key combination <SHIFT><SPACE> causes a kill-line rather than a > space like it does in the Java editor. I type that accidentally quite a bit > and find it annoying. Is this done on purpose? > > Thanks, > Bill > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one > more big change to announce. We are now OSTG- Open Source Technology Group. > Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
From: Bill W. <ww...@bb...> - 2004-08-05 15:12:25
|
Ah, I see! It's supposed to strip trailing whitespace. I didn't know about the workspace->keys thing. I removed that key sequence and it's all better now. Thanks! Bill Fabio Zadrozny wrote: >Well, it seems so... > >As a workaround for now, you can go on workbench->keys and remove the >shift+space combination (I find that annoying too, but I just removed the >keybinding on my machine ). > >I will do it for the plugin too - if that's okay with you Parhaum. > >[]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 Bill Wright >Sent: quinta-feira, 5 de agosto de 2004 09:26 >To: pyd...@li... >Subject: [Pydev-code] PyDev editor behavior > >Folks, > >I've been using pydev (latest CVS) in the past few days and have noticed >some strange behavior and I wonder if it's intentional or a bug. It seems >that the key combination <SHIFT><SPACE> causes a kill-line rather than a >space like it does in the Java editor. I type that accidentally quite a bit >and find it annoying. Is this done on purpose? > >Thanks, >Bill > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one >more big change to announce. We are now OSTG- Open Source Technology Group. >Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Pydev-code mailing list >Pyd...@li... >https://lists.sourceforge.net/lists/listinfo/pydev-code > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Pydev-code mailing list >Pyd...@li... >https://lists.sourceforge.net/lists/listinfo/pydev-code > > > |
From: Fabio Z. <fa...@in...> - 2004-08-05 13:07:33
|
Well, it seems so... As a workaround for now, you can go on workbench->keys and remove the shift+space combination (I find that annoying too, but I just removed the keybinding on my machine ). I will do it for the plugin too - if that's okay with you Parhaum. []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 Bill Wright Sent: quinta-feira, 5 de agosto de 2004 09:26 To: pyd...@li... Subject: [Pydev-code] PyDev editor behavior Folks, I've been using pydev (latest CVS) in the past few days and have noticed some strange behavior and I wonder if it's intentional or a bug. It seems that the key combination <SHIFT><SPACE> causes a kill-line rather than a space like it does in the Java editor. I type that accidentally quite a bit and find it annoying. Is this done on purpose? Thanks, Bill ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Bill W. <ww...@bb...> - 2004-08-05 12:26:29
|
Folks, I've been using pydev (latest CVS) in the past few days and have noticed some strange behavior and I wonder if it's intentional or a bug. It seems that the key combination <SHIFT><SPACE> causes a kill-line rather than a space like it does in the Java editor. I type that accidentally quite a bit and find it annoying. Is this done on purpose? Thanks, Bill |
From: Dana M. <dan...@ya...> - 2004-07-30 15:57:54
|
Cool. thatnks I am "good to go" at the moment. autocompletion is almost "autocomplete". It is fully CPython driven from a Runtime.exec(). One thing I DONT like is that I am generating a temp file to pass to the introspector, which I then read. I am not sure there's much of a cure for that (perhaps something like using an XML-RPC call to a separate thread running the introspector might work better and I will try that on the plane ride home tonight. Best, --- Fabio Zadrozny <fa...@in...> wrote: > Well, you should unzip the .zip in the plugins directory.... (if you > look in > it, it has all the plugin resources - including jars - within it). > Just be > careful so that you extract the files to the correct location within > the > eclipse enviroment. > > []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 Dana > Moore > Sent: quinta-feira, 29 de julho de 2004 18:46 > To: pyd...@li... > Subject: RE: [Pydev-code] Getting a handle to the .py files in > org.python.pydev.PySrc > > Understood and done. > Now how does the .zip file relate to the run time system? > What that allowed me to do was to create a file on _my_ filesystem > arbitrarily named. How does our installed plugin get access to that > jar on > behalf of the user? > I think that it used to be that our jars were installed by the build > system > in the <eclipse_home>/plugins/<package> folder (and they were .JAR > files, > not .ZIP files. > > Thanks > > --- Fabio Zadrozny <fa...@in...> wrote: > > > Dana, > > > > to create a .jar with our plugin (if that's what you want), you > have > > to go on File->Export->Deployable Plug-ins and fragments, choose > the > > plug-ins you want to deploy, and specify the .zip that will be the > > output. > > > > After that, you're done... > > > > []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 Dana > > Moore > > Sent: quinta-feira, 29 de julho de 2004 13:24 > > To: pyd...@li... > > Subject: Re: [Pydev-code] Getting a handle to the .py files in > > org.python.pydev.PySrc > > > > Fabio and Aleks.. > > Do you how jars get built in Eclipse 3... I am working in the pde > > perspective and there doesn't seem to be a way of producing an > actual > > jar. > > So I am a bit perplexed :-( > > > > I can of course launch a runtime workbench but of course it's > looking > > at the .class files. > > Is it just that we don't specify a jar as a build target in our > > build.xml? > > > > Thanks > > --- Fabio Zadrozny <fa...@in...> wrote: > > > > > Hi Dana, > > > > > > If I understood correctly, your problem is getting the contents > of > > the > > > .py files in our jar. > > > > > > To get the contents of any file within a .jar, you have to get > the > > > classloader to get it. > > > > > > You can take any class and > > > getClass().getClassLoader().getResourceAsStream(name). The > > InputStream > > > that returns is what you want... > > > > > > Well, I think that's it... You should probably see the javadoc > for > > the > > > classloader, as it should have more details. > > > > > > I hope I could help you... > > > > > > 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 Dana > > > > Moore > > > Sent: quarta-feira, 28 de julho de 2004 12:09 > > > To: pyd...@li... > > > Subject: Re: [Pydev-code] Released 0.5.3 > > > > > > I can take a look at that in a few minutes. > > > My primary problem is not externally launching CPy however, its > > > getting a handle to the .py files in org.python.pydev.PySrc. > > > I don't want to force a user to install thes in their O/S; rather > I > > > > > want them to be nicely bundled with the rest of the code. > > > Any suggs would be nice :-) > > > > > > Thanks > > > --- "Aleks Totic (Boston)" <a...@to...> wrote: > > > > > > > I invoke CPython as a part of the debugging process in > > > > org.python.pydev.debug.launching. You probably want to do > > something > > > > > > > similar, but with using Runtime.exec and capturing your own > > stdio. > > > > > > > > Doing autocompletion by launching CPython can be heavyweight > for > > > some > > > > > > > > users. I've just fixed a bug where someone was complaining > about > > a > > > 5 > > > > second timeout when launching CPython through debugger as too > > low. > > > > His > > > > machine took at least 10 secs to launch python. > > > > > > > > Aleks > > > > > > > > Dana Moore wrote: > > > > > > > > >Ecellent, > > > > >I saw tha the project got good press as well: > > > > > > > > > > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > > > > > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > > > > > > > >I never got a response back from my query on how to invoke > > CPython > > > > on a > > > > >file which is in the plugin path. If I get a reposnse to that, > > > then > > > > >finishing the autocompletion is a 30-60 minute job as I have > all > > > the > > > > >rest of the stuff coded (and doesn't require Jython any longer > > :-) > > > > > > > >FYI (or if you can figure out an answer), my question to the > > > > >eclipse-dev NG was: > > > > ># ---------------------------------------------- > > > > >HI all, > > > > >I haven't seen a good example of this in discussions or > > tutorials > > > > >(perhaps because it's an uncommon useage), but here's what I > > would > > > > like > > > > >to do: > > > > >1. I am working on completion proposals for a pythonic Eclipse > > > > editor. > > > > >2. I have a python code introspector writen in python > > > (inspector.py) > > > > >that emits potential completions to standard out; 3. On > > > encountering > > > > >the autoactivation characters ( dot or left paren > > > > ) > > > > >I > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-07-30 11:22:06
|
Well, you should unzip the .zip in the plugins directory.... (if you look in it, it has all the plugin resources - including jars - within it). Just be careful so that you extract the files to the correct location within the eclipse enviroment. []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 Dana Moore Sent: quinta-feira, 29 de julho de 2004 18:46 To: pyd...@li... Subject: RE: [Pydev-code] Getting a handle to the .py files in org.python.pydev.PySrc Understood and done. Now how does the .zip file relate to the run time system? What that allowed me to do was to create a file on _my_ filesystem arbitrarily named. How does our installed plugin get access to that jar on behalf of the user? I think that it used to be that our jars were installed by the build system in the <eclipse_home>/plugins/<package> folder (and they were .JAR files, not .ZIP files. Thanks --- Fabio Zadrozny <fa...@in...> wrote: > Dana, > > to create a .jar with our plugin (if that's what you want), you have > to go on File->Export->Deployable Plug-ins and fragments, choose the > plug-ins you want to deploy, and specify the .zip that will be the > output. > > After that, you're done... > > []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 Dana > Moore > Sent: quinta-feira, 29 de julho de 2004 13:24 > To: pyd...@li... > Subject: Re: [Pydev-code] Getting a handle to the .py files in > org.python.pydev.PySrc > > Fabio and Aleks.. > Do you how jars get built in Eclipse 3... I am working in the pde > perspective and there doesn't seem to be a way of producing an actual > jar. > So I am a bit perplexed :-( > > I can of course launch a runtime workbench but of course it's looking > at the .class files. > Is it just that we don't specify a jar as a build target in our > build.xml? > > Thanks > --- Fabio Zadrozny <fa...@in...> wrote: > > > Hi Dana, > > > > If I understood correctly, your problem is getting the contents of > the > > .py files in our jar. > > > > To get the contents of any file within a .jar, you have to get the > > classloader to get it. > > > > You can take any class and > > getClass().getClassLoader().getResourceAsStream(name). The > InputStream > > that returns is what you want... > > > > Well, I think that's it... You should probably see the javadoc for > the > > classloader, as it should have more details. > > > > I hope I could help you... > > > > 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 Dana > > Moore > > Sent: quarta-feira, 28 de julho de 2004 12:09 > > To: pyd...@li... > > Subject: Re: [Pydev-code] Released 0.5.3 > > > > I can take a look at that in a few minutes. > > My primary problem is not externally launching CPy however, its > > getting a handle to the .py files in org.python.pydev.PySrc. > > I don't want to force a user to install thes in their O/S; rather I > > > want them to be nicely bundled with the rest of the code. > > Any suggs would be nice :-) > > > > Thanks > > --- "Aleks Totic (Boston)" <a...@to...> wrote: > > > > > I invoke CPython as a part of the debugging process in > > > org.python.pydev.debug.launching. You probably want to do > something > > > > > similar, but with using Runtime.exec and capturing your own > stdio. > > > > > > Doing autocompletion by launching CPython can be heavyweight for > > some > > > > > > users. I've just fixed a bug where someone was complaining about > a > > 5 > > > second timeout when launching CPython through debugger as too > low. > > > His > > > machine took at least 10 secs to launch python. > > > > > > Aleks > > > > > > Dana Moore wrote: > > > > > > >Ecellent, > > > >I saw tha the project got good press as well: > > > > > > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > > > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > > > > > >I never got a response back from my query on how to invoke > CPython > > > on a > > > >file which is in the plugin path. If I get a reposnse to that, > > then > > > >finishing the autocompletion is a 30-60 minute job as I have all > > the > > > >rest of the stuff coded (and doesn't require Jython any longer > :-) > > > > > >FYI (or if you can figure out an answer), my question to the > > > >eclipse-dev NG was: > > > ># ---------------------------------------------- > > > >HI all, > > > >I haven't seen a good example of this in discussions or > tutorials > > > >(perhaps because it's an uncommon useage), but here's what I > would > > > like > > > >to do: > > > >1. I am working on completion proposals for a pythonic Eclipse > > > editor. > > > >2. I have a python code introspector writen in python > > (inspector.py) > > > >that emits potential completions to standard out; 3. On > > encountering > > > >the autoactivation characters ( dot or left paren > > > ) > > > >I > > > >would like to getRuntime().exec() the python file which is in > the > > > >plugin's path. > > > > > > > >I can figure out where the python interpreter is on the user's > > > system, > > > >I > > > >know how to wire the content assitant thanks to the very > excellent > > > > > >article "Equipping SWT applications with content assistants" at > > > > > > >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dg > > >r-lnx > > > >w09SWTContentAssist%22 . > > > >I can do the exec, I can return (but exec of _what_ exactly is > the > > > >problem) > > > > > > > >What I don't know how to do precisely is how I: > > > >A. Configure Eclipse to know it has this resource and build the > > > >resource with the Plugin B. Get a runtime handle to the file > > relative > > > >to its containment in > > > the > > > >Plugin. > > > >I sort of assume I should do something similar to the way ANT > uses > > > the > > > >build.xml attached to a project, but thus far my software > > spelunking > > > >has been unproductive. Any help will be great appreciated and > will > > > result > > > >in a more full featured Python IDE for Eclipse # > > > >----------------------------- > > > > > > > >Best to all, > > > > > > > > > > > >--- Aleks Totic <a...@to...> wrote: > > > > > > > > > > > >>Hi guys, > > > >>I've just released 0.5.3. It has Fabio's changes (love that > smart > > > > > >>backspace), and some bug fixes in the debugger. > > > >> > > > >>Aleks > > > >> > > > >> > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <dan...@ya...> - 2004-07-29 21:46:22
|
Understood and done. Now how does the .zip file relate to the run time system? What that allowed me to do was to create a file on _my_ filesystem arbitrarily named. How does our installed plugin get access to that jar on behalf of the user? I think that it used to be that our jars were installed by the build system in the <eclipse_home>/plugins/<package> folder (and they were .JAR files, not .ZIP files. Thanks --- Fabio Zadrozny <fa...@in...> wrote: > Dana, > > to create a .jar with our plugin (if that's what you want), you have > to go > on File->Export->Deployable Plug-ins and fragments, choose the > plug-ins you > want to deploy, and specify the .zip that will be the output. > > After that, you're done... > > []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 Dana > Moore > Sent: quinta-feira, 29 de julho de 2004 13:24 > To: pyd...@li... > Subject: Re: [Pydev-code] Getting a handle to the .py files in > org.python.pydev.PySrc > > Fabio and Aleks.. > Do you how jars get built in Eclipse 3... I am working in the pde > perspective and there doesn't seem to be a way of producing an actual > jar. > So I am a bit perplexed :-( > > I can of course launch a runtime workbench but of course it's looking > at the > .class files. > Is it just that we don't specify a jar as a build target in our > build.xml? > > Thanks > --- Fabio Zadrozny <fa...@in...> wrote: > > > Hi Dana, > > > > If I understood correctly, your problem is getting the contents of > the > > .py files in our jar. > > > > To get the contents of any file within a .jar, you have to get the > > classloader to get it. > > > > You can take any class and > > getClass().getClassLoader().getResourceAsStream(name). The > InputStream > > that returns is what you want... > > > > Well, I think that's it... You should probably see the javadoc for > the > > classloader, as it should have more details. > > > > I hope I could help you... > > > > 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 Dana > > Moore > > Sent: quarta-feira, 28 de julho de 2004 12:09 > > To: pyd...@li... > > Subject: Re: [Pydev-code] Released 0.5.3 > > > > I can take a look at that in a few minutes. > > My primary problem is not externally launching CPy however, its > > getting a handle to the .py files in org.python.pydev.PySrc. > > I don't want to force a user to install thes in their O/S; rather I > > > want them to be nicely bundled with the rest of the code. > > Any suggs would be nice :-) > > > > Thanks > > --- "Aleks Totic (Boston)" <a...@to...> wrote: > > > > > I invoke CPython as a part of the debugging process in > > > org.python.pydev.debug.launching. You probably want to do > something > > > > > similar, but with using Runtime.exec and capturing your own > stdio. > > > > > > Doing autocompletion by launching CPython can be heavyweight for > > some > > > > > > users. I've just fixed a bug where someone was complaining about > a > > 5 > > > second timeout when launching CPython through debugger as too > low. > > > His > > > machine took at least 10 secs to launch python. > > > > > > Aleks > > > > > > Dana Moore wrote: > > > > > > >Ecellent, > > > >I saw tha the project got good press as well: > > > > > > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > > > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > > > > > >I never got a response back from my query on how to invoke > CPython > > > on a > > > >file which is in the plugin path. If I get a reposnse to that, > > then > > > >finishing the autocompletion is a 30-60 minute job as I have all > > the > > > >rest of the stuff coded (and doesn't require Jython any longer > :-) > > > > > >FYI (or if you can figure out an answer), my question to the > > > >eclipse-dev NG was: > > > ># ---------------------------------------------- > > > >HI all, > > > >I haven't seen a good example of this in discussions or > tutorials > > > >(perhaps because it's an uncommon useage), but here's what I > would > > > like > > > >to do: > > > >1. I am working on completion proposals for a pythonic Eclipse > > > editor. > > > >2. I have a python code introspector writen in python > > (inspector.py) > > > >that emits potential completions to standard out; 3. On > > encountering > > > >the autoactivation characters ( dot or left paren > > > ) > > > >I > > > >would like to getRuntime().exec() the python file which is in > the > > > >plugin's path. > > > > > > > >I can figure out where the python interpreter is on the user's > > > system, > > > >I > > > >know how to wire the content assitant thanks to the very > excellent > > > > > >article "Equipping SWT applications with content assistants" at > > > > > > >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dg > > >r-lnx > > > >w09SWTContentAssist%22 . > > > >I can do the exec, I can return (but exec of _what_ exactly is > the > > > >problem) > > > > > > > >What I don't know how to do precisely is how I: > > > >A. Configure Eclipse to know it has this resource and build the > > > >resource with the Plugin B. Get a runtime handle to the file > > relative > > > >to its containment in > > > the > > > >Plugin. > > > >I sort of assume I should do something similar to the way ANT > uses > > > the > > > >build.xml attached to a project, but thus far my software > > spelunking > > > >has been unproductive. Any help will be great appreciated and > will > > > result > > > >in a more full featured Python IDE for Eclipse # > > > >----------------------------- > > > > > > > >Best to all, > > > > > > > > > > > >--- Aleks Totic <a...@to...> wrote: > > > > > > > > > > > >>Hi guys, > > > >>I've just released 0.5.3. It has Fabio's changes (love that > smart > > > > > >>backspace), and some bug fixes in the debugger. > > > >> > > > >>Aleks > > > >> > > > >> > === message truncated === ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-07-29 16:35:12
|
Dana, to create a .jar with our plugin (if that's what you want), you have to go on File->Export->Deployable Plug-ins and fragments, choose the plug-ins you want to deploy, and specify the .zip that will be the output. After that, you're done... []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 Dana Moore Sent: quinta-feira, 29 de julho de 2004 13:24 To: pyd...@li... Subject: Re: [Pydev-code] Getting a handle to the .py files in org.python.pydev.PySrc Fabio and Aleks.. Do you how jars get built in Eclipse 3... I am working in the pde perspective and there doesn't seem to be a way of producing an actual jar. So I am a bit perplexed :-( I can of course launch a runtime workbench but of course it's looking at the .class files. Is it just that we don't specify a jar as a build target in our build.xml? Thanks --- Fabio Zadrozny <fa...@in...> wrote: > Hi Dana, > > If I understood correctly, your problem is getting the contents of the > .py files in our jar. > > To get the contents of any file within a .jar, you have to get the > classloader to get it. > > You can take any class and > getClass().getClassLoader().getResourceAsStream(name). The InputStream > that returns is what you want... > > Well, I think that's it... You should probably see the javadoc for the > classloader, as it should have more details. > > I hope I could help you... > > 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 Dana > Moore > Sent: quarta-feira, 28 de julho de 2004 12:09 > To: pyd...@li... > Subject: Re: [Pydev-code] Released 0.5.3 > > I can take a look at that in a few minutes. > My primary problem is not externally launching CPy however, its > getting a handle to the .py files in org.python.pydev.PySrc. > I don't want to force a user to install thes in their O/S; rather I > want them to be nicely bundled with the rest of the code. > Any suggs would be nice :-) > > Thanks > --- "Aleks Totic (Boston)" <a...@to...> wrote: > > > I invoke CPython as a part of the debugging process in > > org.python.pydev.debug.launching. You probably want to do something > > > similar, but with using Runtime.exec and capturing your own stdio. > > > > Doing autocompletion by launching CPython can be heavyweight for > some > > > > users. I've just fixed a bug where someone was complaining about a > 5 > > second timeout when launching CPython through debugger as too low. > > His > > machine took at least 10 secs to launch python. > > > > Aleks > > > > Dana Moore wrote: > > > > >Ecellent, > > >I saw tha the project got good press as well: > > > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > > > >I never got a response back from my query on how to invoke CPython > > on a > > >file which is in the plugin path. If I get a reposnse to that, > then > > >finishing the autocompletion is a 30-60 minute job as I have all > the > > >rest of the stuff coded (and doesn't require Jython any longer :-) > > > >FYI (or if you can figure out an answer), my question to the > > >eclipse-dev NG was: > > ># ---------------------------------------------- > > >HI all, > > >I haven't seen a good example of this in discussions or tutorials > > >(perhaps because it's an uncommon useage), but here's what I would > > like > > >to do: > > >1. I am working on completion proposals for a pythonic Eclipse > > editor. > > >2. I have a python code introspector writen in python > (inspector.py) > > >that emits potential completions to standard out; 3. On > encountering > > >the autoactivation characters ( dot or left paren > > ) > > >I > > >would like to getRuntime().exec() the python file which is in the > > >plugin's path. > > > > > >I can figure out where the python interpreter is on the user's > > system, > > >I > > >know how to wire the content assitant thanks to the very excellent > > > >article "Equipping SWT applications with content assistants" at > > > >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dg > >r-lnx > > >w09SWTContentAssist%22 . > > >I can do the exec, I can return (but exec of _what_ exactly is the > > >problem) > > > > > >What I don't know how to do precisely is how I: > > >A. Configure Eclipse to know it has this resource and build the > > >resource with the Plugin B. Get a runtime handle to the file > relative > > >to its containment in > > the > > >Plugin. > > >I sort of assume I should do something similar to the way ANT uses > > the > > >build.xml attached to a project, but thus far my software > spelunking > > >has been unproductive. Any help will be great appreciated and will > > result > > >in a more full featured Python IDE for Eclipse # > > >----------------------------- > > > > > >Best to all, > > > > > > > > >--- Aleks Totic <a...@to...> wrote: > > > > > > > > >>Hi guys, > > >>I've just released 0.5.3. It has Fabio's changes (love that smart > > > >>backspace), and some bug fixes in the debugger. > > >> > > >>Aleks > > >> > > >> > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java > > Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > ===== > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Dana Moore _/ > _/ BBN Technologies LLC _/ > _/ M: 240.350.4196 _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java > Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java > Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <dan...@ya...> - 2004-07-29 16:23:54
|
Fabio and Aleks.. Do you how jars get built in Eclipse 3... I am working in the pde perspective and there doesn't seem to be a way of producing an actual jar. So I am a bit perplexed :-( I can of course launch a runtime workbench but of course it's looking at the .class files. Is it just that we don't specify a jar as a build target in our build.xml? Thanks --- Fabio Zadrozny <fa...@in...> wrote: > Hi Dana, > > If I understood correctly, your problem is getting the contents of > the .py > files in our jar. > > To get the contents of any file within a .jar, you have to get the > classloader to get it. > > You can take any class and > getClass().getClassLoader().getResourceAsStream(name). The > InputStream that > returns is what you want... > > Well, I think that's it... You should probably see the javadoc for > the > classloader, as it should have more details. > > I hope I could help you... > > 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 Dana > Moore > Sent: quarta-feira, 28 de julho de 2004 12:09 > To: pyd...@li... > Subject: Re: [Pydev-code] Released 0.5.3 > > I can take a look at that in a few minutes. > My primary problem is not externally launching CPy however, its > getting a > handle to the .py files in org.python.pydev.PySrc. > I don't want to force a user to install thes in their O/S; rather I > want > them to be nicely bundled with the rest of the code. > Any suggs would be nice :-) > > Thanks > --- "Aleks Totic (Boston)" <a...@to...> wrote: > > > I invoke CPython as a part of the debugging process in > > org.python.pydev.debug.launching. You probably want to do something > > > similar, but with using Runtime.exec and capturing your own stdio. > > > > Doing autocompletion by launching CPython can be heavyweight for > some > > > > users. I've just fixed a bug where someone was complaining about a > 5 > > second timeout when launching CPython through debugger as too low. > > His > > machine took at least 10 secs to launch python. > > > > Aleks > > > > Dana Moore wrote: > > > > >Ecellent, > > >I saw tha the project got good press as well: > > > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > > > >I never got a response back from my query on how to invoke CPython > > on a > > >file which is in the plugin path. If I get a reposnse to that, > then > > >finishing the autocompletion is a 30-60 minute job as I have all > the > > >rest of the stuff coded (and doesn't require Jython any longer :-) > > > >FYI (or if you can figure out an answer), my question to the > > >eclipse-dev NG was: > > ># ---------------------------------------------- > > >HI all, > > >I haven't seen a good example of this in discussions or tutorials > > >(perhaps because it's an uncommon useage), but here's what I would > > like > > >to do: > > >1. I am working on completion proposals for a pythonic Eclipse > > editor. > > >2. I have a python code introspector writen in python > (inspector.py) > > >that emits potential completions to standard out; 3. On > encountering > > >the autoactivation characters ( dot or left paren > > ) > > >I > > >would like to getRuntime().exec() the python file which is in the > > >plugin's path. > > > > > >I can figure out where the python interpreter is on the user's > > system, > > >I > > >know how to wire the content assitant thanks to the very excellent > > > >article "Equipping SWT applications with content assistants" at > > > >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dg > >r-lnx > > >w09SWTContentAssist%22 . > > >I can do the exec, I can return (but exec of _what_ exactly is the > > >problem) > > > > > >What I don't know how to do precisely is how I: > > >A. Configure Eclipse to know it has this resource and build the > > >resource with the Plugin B. Get a runtime handle to the file > relative > > >to its containment in > > the > > >Plugin. > > >I sort of assume I should do something similar to the way ANT uses > > the > > >build.xml attached to a project, but thus far my software > spelunking > > >has been unproductive. Any help will be great appreciated and will > > result > > >in a more full featured Python IDE for Eclipse # > > >----------------------------- > > > > > >Best to all, > > > > > > > > >--- Aleks Totic <a...@to...> wrote: > > > > > > > > >>Hi guys, > > >>I've just released 0.5.3. It has Fabio's changes (love that smart > > > >>backspace), and some bug fixes in the debugger. > > >> > > >>Aleks > > >> > > >> > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java > > Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > Pydev-code mailing list > > Pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > ===== > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Dana Moore _/ > _/ BBN Technologies LLC _/ > _/ M: 240.350.4196 _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java > Enterprise > J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail |
From: Fabio Z. <fa...@in...> - 2004-07-29 13:11:27
|
Hi Aleks, You know, using the debugger in my machine is also very slow (I usually = use python's pdb module because of that)... But I would really like to use = our plugin's debugger, so, I would like to know if you have any ideas on = were are the slow parts of the code (I only gave a brief look at the code, = and really couldn't figure it out...) I would also would like to know if the variables that appear on the = debugger are gotten only when requested or are gotten when the breakpoint stops (maybe this could be an improvement, because this is a point that I = think can really slow things down). As a simple example you could run a new style class and go on its = __class__ atribute almost forever... Getting all the globals could also get a lot = of time... Well, as I said, I'm just trying to guess. Well, if have no time and cannot take a look, I can give it a try if you give me some directions (although I don't know when I'll be able to do = it either)... :-( 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 (Boston) Sent: ter=E7a-feira, 27 de julho de 2004 11:31 To: pyd...@li... Subject: Re: [Pydev-code] Released 0.5.3 I invoke CPython as a part of the debugging process in org.python.pydev.debug.launching. You probably want to do something = similar, but with using Runtime.exec and capturing your own stdio. Doing autocompletion by launching CPython can be heavyweight for some = users. I've just fixed a bug where someone was complaining about a 5 second = timeout when launching CPython through debugger as too low. His machine took at least 10 secs to launch python. Aleks Dana Moore wrote: >Ecellent, >I saw tha the project got good press as well: >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=3Ddrs-tp2604 > >In addition, I got a slot to talk about it at OsCon 2004 > >I never got a response back from my query on how to invoke CPython on a = >file which is in the plugin path. If I get a reposnse to that, then=20 >finishing the autocompletion is a 30-60 minute job as I have all the=20 >rest of the stuff coded (and doesn't require Jython any longer :-) FYI=20 >(or if you can figure out an answer), my question to the eclipse-dev NG = >was: ># ---------------------------------------------- >HI all, >I haven't seen a good example of this in discussions or tutorials=20 >(perhaps because it's an uncommon useage), but here's what I would like = >to do: >1. I am working on completion proposals for a pythonic Eclipse editor. >2. I have a python code introspector writen in python (inspector.py)=20 >that emits potential completions to standard out; 3. On encountering=20 >the autoactivation characters ( dot or left paren ) I would like to=20 >getRuntime().exec() the python file which is in the plugin's path. > >I can figure out where the python interpreter is on the user's system,=20 >I know how to wire the content assitant thanks to the very excellent=20 >article "Equipping SWT applications with content assistants" at=20 >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=3Dd= g >r-lnx >w09SWTContentAssist%22 . >I can do the exec, I can return (but exec of _what_ exactly is the >problem) > >What I don't know how to do precisely is how I: >A. Configure Eclipse to know it has this resource and build the=20 >resource with the Plugin B. Get a runtime handle to the file relative=20 >to its containment in the Plugin. >I sort of assume I should do something similar to the way ANT uses the=20 >build.xml attached to a project, but thus far my software spelunking=20 >has been unproductive. Any help will be great appreciated and will=20 >result in a more full featured Python IDE for Eclipse #=20 >----------------------------- > >Best to all, > > >--- Aleks Totic <a...@to...> wrote: > =20 > >>Hi guys, >>I've just released 0.5.3. It has Fabio's changes (love that smart=20 >>backspace), and some bug fixes in the debugger. >> >>Aleks >> =20 >> ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java = Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@in...> - 2004-07-28 15:37:31
|
Hi Dana, If I understood correctly, your problem is getting the contents of the .py files in our jar. To get the contents of any file within a .jar, you have to get the classloader to get it. You can take any class and getClass().getClassLoader().getResourceAsStream(name). The InputStream that returns is what you want... Well, I think that's it... You should probably see the javadoc for the classloader, as it should have more details. I hope I could help you... 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 Dana Moore Sent: quarta-feira, 28 de julho de 2004 12:09 To: pyd...@li... Subject: Re: [Pydev-code] Released 0.5.3 I can take a look at that in a few minutes. My primary problem is not externally launching CPy however, its getting a handle to the .py files in org.python.pydev.PySrc. I don't want to force a user to install thes in their O/S; rather I want them to be nicely bundled with the rest of the code. Any suggs would be nice :-) Thanks --- "Aleks Totic (Boston)" <a...@to...> wrote: > I invoke CPython as a part of the debugging process in > org.python.pydev.debug.launching. You probably want to do something > similar, but with using Runtime.exec and capturing your own stdio. > > Doing autocompletion by launching CPython can be heavyweight for some > > users. I've just fixed a bug where someone was complaining about a 5 > second timeout when launching CPython through debugger as too low. > His > machine took at least 10 secs to launch python. > > Aleks > > Dana Moore wrote: > > >Ecellent, > >I saw tha the project got good press as well: > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > >I never got a response back from my query on how to invoke CPython > on a > >file which is in the plugin path. If I get a reposnse to that, then > >finishing the autocompletion is a 30-60 minute job as I have all the > >rest of the stuff coded (and doesn't require Jython any longer :-) > >FYI (or if you can figure out an answer), my question to the > >eclipse-dev NG was: > ># ---------------------------------------------- > >HI all, > >I haven't seen a good example of this in discussions or tutorials > >(perhaps because it's an uncommon useage), but here's what I would > like > >to do: > >1. I am working on completion proposals for a pythonic Eclipse > editor. > >2. I have a python code introspector writen in python (inspector.py) > >that emits potential completions to standard out; 3. On encountering > >the autoactivation characters ( dot or left paren > ) > >I > >would like to getRuntime().exec() the python file which is in the > >plugin's path. > > > >I can figure out where the python interpreter is on the user's > system, > >I > >know how to wire the content assitant thanks to the very excellent > >article "Equipping SWT applications with content assistants" at > >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dg >r-lnx > >w09SWTContentAssist%22 . > >I can do the exec, I can return (but exec of _what_ exactly is the > >problem) > > > >What I don't know how to do precisely is how I: > >A. Configure Eclipse to know it has this resource and build the > >resource with the Plugin B. Get a runtime handle to the file relative > >to its containment in > the > >Plugin. > >I sort of assume I should do something similar to the way ANT uses > the > >build.xml attached to a project, but thus far my software spelunking > >has been unproductive. Any help will be great appreciated and will > result > >in a more full featured Python IDE for Eclipse # > >----------------------------- > > > >Best to all, > > > > > >--- Aleks Totic <a...@to...> wrote: > > > > > >>Hi guys, > >>I've just released 0.5.3. It has Fabio's changes (love that smart > >>backspace), and some bug fixes in the debugger. > >> > >>Aleks > >> > >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java > Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Dana M. <dan...@ya...> - 2004-07-28 15:09:15
|
I can take a look at that in a few minutes. My primary problem is not externally launching CPy however, its getting a handle to the .py files in org.python.pydev.PySrc. I don't want to force a user to install thes in their O/S; rather I want them to be nicely bundled with the rest of the code. Any suggs would be nice :-) Thanks --- "Aleks Totic (Boston)" <a...@to...> wrote: > I invoke CPython as a part of the debugging process in > org.python.pydev.debug.launching. You probably want to do something > similar, but with using Runtime.exec and capturing your own stdio. > > Doing autocompletion by launching CPython can be heavyweight for some > > users. I've just fixed a bug where someone was complaining about a 5 > second timeout when launching CPython through debugger as too low. > His > machine took at least 10 secs to launch python. > > Aleks > > Dana Moore wrote: > > >Ecellent, > >I saw tha the project got good press as well: > >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > > > >In addition, I got a slot to talk about it at OsCon 2004 > > > >I never got a response back from my query on how to invoke CPython > on a > >file which is in the plugin path. If I get a reposnse to that, then > >finishing the autocompletion is a 30-60 minute job as I have all the > >rest of the stuff coded (and doesn't require Jython any longer :-) > >FYI (or if you can figure out an answer), my question to the > >eclipse-dev NG was: > ># ---------------------------------------------- > >HI all, > >I haven't seen a good example of this in discussions or tutorials > >(perhaps because it's an uncommon useage), but here's what I would > like > >to do: > >1. I am working on completion proposals for a pythonic Eclipse > editor. > >2. I have a python code introspector writen in python (inspector.py) > >that emits potential completions to standard out; > >3. On encountering the autoactivation characters ( dot or left paren > ) > >I > >would like to getRuntime().exec() the python file which is in the > >plugin's path. > > > >I can figure out where the python interpreter is on the user's > system, > >I > >know how to wire the content assitant thanks to the very excellent > >article > >"Equipping SWT applications with content assistants" at > >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dgr-lnx > >w09SWTContentAssist%22 . > >I can do the exec, I can return (but exec of _what_ exactly is the > >problem) > > > >What I don't know how to do precisely is how I: > >A. Configure Eclipse to know it has this resource and build the > >resource > >with the Plugin > >B. Get a runtime handle to the file relative to its containment in > the > >Plugin. > >I sort of assume I should do something similar to the way ANT uses > the > >build.xml attached to a project, but thus far my software spelunking > >has > >been unproductive. Any help will be great appreciated and will > result > >in a more full featured Python IDE for Eclipse > ># ----------------------------- > > > >Best to all, > > > > > >--- Aleks Totic <a...@to...> wrote: > > > > > >>Hi guys, > >>I've just released 0.5.3. It has Fabio's changes (love that smart > >>backspace), and some bug fixes in the debugger. > >> > >>Aleks > >> > >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail |
From: Aleks T. (Boston) <a...@to...> - 2004-07-27 14:33:48
|
I invoke CPython as a part of the debugging process in org.python.pydev.debug.launching. You probably want to do something similar, but with using Runtime.exec and capturing your own stdio. Doing autocompletion by launching CPython can be heavyweight for some users. I've just fixed a bug where someone was complaining about a 5 second timeout when launching CPython through debugger as too low. His machine took at least 10 secs to launch python. Aleks Dana Moore wrote: >Ecellent, >I saw tha the project got good press as well: >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 > >In addition, I got a slot to talk about it at OsCon 2004 > >I never got a response back from my query on how to invoke CPython on a >file which is in the plugin path. If I get a reposnse to that, then >finishing the autocompletion is a 30-60 minute job as I have all the >rest of the stuff coded (and doesn't require Jython any longer :-) >FYI (or if you can figure out an answer), my question to the >eclipse-dev NG was: ># ---------------------------------------------- >HI all, >I haven't seen a good example of this in discussions or tutorials >(perhaps because it's an uncommon useage), but here's what I would like >to do: >1. I am working on completion proposals for a pythonic Eclipse editor. >2. I have a python code introspector writen in python (inspector.py) >that emits potential completions to standard out; >3. On encountering the autoactivation characters ( dot or left paren ) >I >would like to getRuntime().exec() the python file which is in the >plugin's path. > >I can figure out where the python interpreter is on the user's system, >I >know how to wire the content assitant thanks to the very excellent >article >"Equipping SWT applications with content assistants" at >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dgr-lnx >w09SWTContentAssist%22 . >I can do the exec, I can return (but exec of _what_ exactly is the >problem) > >What I don't know how to do precisely is how I: >A. Configure Eclipse to know it has this resource and build the >resource >with the Plugin >B. Get a runtime handle to the file relative to its containment in the >Plugin. >I sort of assume I should do something similar to the way ANT uses the >build.xml attached to a project, but thus far my software spelunking >has >been unproductive. Any help will be great appreciated and will result >in a more full featured Python IDE for Eclipse ># ----------------------------- > >Best to all, > > >--- Aleks Totic <a...@to...> wrote: > > >>Hi guys, >>I've just released 0.5.3. It has Fabio's changes (love that smart >>backspace), and some bug fixes in the debugger. >> >>Aleks >> >> |
From: Dana M. <dan...@ya...> - 2004-07-26 19:38:46
|
Ecellent, I saw tha the project got good press as well: http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604 In addition, I got a slot to talk about it at OsCon 2004 I never got a response back from my query on how to invoke CPython on a file which is in the plugin path. If I get a reposnse to that, then finishing the autocompletion is a 30-60 minute job as I have all the rest of the stuff coded (and doesn't require Jython any longer :-) FYI (or if you can figure out an answer), my question to the eclipse-dev NG was: # ---------------------------------------------- HI all, I haven't seen a good example of this in discussions or tutorials (perhaps because it's an uncommon useage), but here's what I would like to do: 1. I am working on completion proposals for a pythonic Eclipse editor. 2. I have a python code introspector writen in python (inspector.py) that emits potential completions to standard out; 3. On encountering the autoactivation characters ( dot or left paren ) I would like to getRuntime().exec() the python file which is in the plugin's path. I can figure out where the python interpreter is on the user's system, I know how to wire the content assitant thanks to the very excellent article "Equipping SWT applications with content assistants" at http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dgr-lnx w09SWTContentAssist%22 . I can do the exec, I can return (but exec of _what_ exactly is the problem) What I don't know how to do precisely is how I: A. Configure Eclipse to know it has this resource and build the resource with the Plugin B. Get a runtime handle to the file relative to its containment in the Plugin. I sort of assume I should do something similar to the way ANT uses the build.xml attached to a project, but thus far my software spelunking has been unproductive. Any help will be great appreciated and will result in a more full featured Python IDE for Eclipse # ----------------------------- Best to all, --- Aleks Totic <a...@to...> wrote: > Hi guys, > I've just released 0.5.3. It has Fabio's changes (love that smart > backspace), and some bug fixes in the debugger. > > Aleks > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |
From: Aleks T. <a...@to...> - 2004-07-25 15:02:16
|
Hi guys, I've just released 0.5.3. It has Fabio's changes (love that smart backspace), and some bug fixes in the debugger. Aleks |
From: Fabio Z. <fa...@in...> - 2004-07-22 14:13:09
|
Hi, Added collapse/uncollapse all functions (Ctrl+9 and Ctrl+0)... 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 Fabio Zadrozny Sent: quinta-feira, 22 de julho de 2004 10:39 To: pyd...@li... Subject: [Pydev-code] Code Folding Hi All... I've just made some changes in code folding so that the marks were set after setting the editor. It wasn't working because sometimes the ProjectionAnnotationModel was not ready when the file was parsed... so, basically I put a Thread to get it later... I've also changed the package structure... Well that's it... Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@in...> - 2004-07-22 13:35:24
|
Hi All... I've just made some changes in code folding so that the marks were set after setting the editor. It wasn't working because sometimes the ProjectionAnnotationModel was not ready when the file was parsed... so, basically I put a Thread to get it later... I've also changed the package structure... Well that's it... Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br |
From: Fabio Z. <fa...@in...> - 2004-07-19 19:53:10
|
Well, it took less time than I thought... Just checked in the preferences stuff... I think the feature can be considered finished (I'm not considering the bug that happens when the comment is the last thing in the method). []s Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Fabio Zadrozny Sent: segunda-feira, 19 de julho de 2004 16:33 To: pyd...@li... Subject: RE: [Pydev-code] Code Folding Ok, just corrected it... give it a check to see if you agre... The last thing to do is the preferences (I'm only finishing that tomorrow). The code that doesn't work is: class C: pass #not gotten If you collapse class C, the #not gotten token should still appear... Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Fabio Zadrozny Sent: segunda-feira, 19 de julho de 2004 16:27 To: pyd...@li... Subject: RE: [Pydev-code] Code Folding Humm... that's a good observation... I've just Ctrl+c / Ctrl+v code from somewhere else ... (NameEqualsMainNode) probably because of that the commenting works in some cases and in others not... I'm going to check and correct it... I've also added keybindings for it (Ctrl+- and Ctrl+=)... just commited. Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic Sent: segunda-feira, 19 de julho de 2004 15:56 To: pyd...@li... Subject: Re: [Pydev-code] Code Folding Neat. I've just checked it out, it works well. I've thought of adding code folding to 3.0 port. I have one small request: can you add a preference for enabling/disabling code folding to pydev editor. Java editor has one, and it is nice to have for consistency. What's the test case that fails for comments folding? I've tried folding a method whose last line was a comment, and it worked. A question about pass & Str tokens: How did you determine their end location: setEnd(new Location(astNode.beginLine-1, astNode.beginColumn + 22)); That 22 number must have some meaning? Aleks Fabio Zadrozny wrote: > Hi All, I'm adding some code-folding capabilities to our plugin... > > It's still not complete... but it should be until tomorrow... (I've already > commited most of it, so, it's already usable) > > There's only one bug I think I'll be unable to correct... > > If some class / method ends with a comment, I'm unable to get the correct > code folding for it (since our model doesn't get comments parsed) > > I've added 'pass' and Str > Tokens to our model, so that I could make it work correctly with them... > > If someone has some problem in code-folding or some idea on how to implement > it to work correctly with comments... I'm accepting suggestions... > > []s ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |