Thread: [jdee-users] jde-complete-function custom how to
Brought to you by:
paullandes
From: Johan A. <joh...@gm...> - 2009-01-21 17:32:39
|
Hi, I'm trying to create my own custom function to jde-complete. But I cant figure out how to get the list of completions without activating some other completion method. Could someone please give me a short example of how this could be done? Thanks! |
From: Paul <la...@ma...> - 2009-01-22 02:47:11
|
I suggest looking at the current source code. It uses beanshell to traverse the classpath. In return, beanshell returns a list as a sexp, which Emacs then reads and uses `completing-read'. Or wait until the next release, which will have an improved version which might address your needs. Johan Andersson writes: > Hi, > > I'm trying to create my own custom function to jde-complete. But I cant > figure out how to get the list of completions without activating some other > completion method. > > Could someone please give me a short example of how this could be done? > > Thanks! > Hi,<br><br>I'm trying to create my own custom function to jde-complete. But I cant figure out how to get the list of completions without activating some other completion method.<br><br>Could someone please give me a short example of how this could be done?<br> > <br>Thanks!<br> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > jdee-users mailing list > jde...@li... > https://lists.sourceforge.net/lists/listinfo/jdee-users -- |
From: Johan A. <joh...@gm...> - 2009-01-22 07:39:43
|
Hi Paul and thanks for your answer. I have looked some in the source code. But I didn't find any good way to solve my problem without copying pretty much all code from jde-complete-generic and jde-complete-pair. Since there is jde-complete-function I thought that there was some function that figured out all completions (with the beanshell) and that returned a list of all completions. This way it would be easy to use modes such as ido and anything. That was what I was trying to achive. Just out of curiosity, when will there be a next release and what features will it include? I didn't see any notes about it on the homepage. On Thu, Jan 22, 2009 at 3:47 AM, Paul <la...@ma...> wrote: > I suggest looking at the current source code. It uses beanshell to > traverse the classpath. In return, beanshell returns a list as a > sexp, which Emacs then reads and uses `completing-read'. Or wait > until the next release, which will have an improved version which > might address your needs. > > Johan Andersson writes: > > Hi, > > > > I'm trying to create my own custom function to jde-complete. But I cant > > figure out how to get the list of completions without activating some > other > > completion method. > > > > Could someone please give me a short example of how this could be done? > > > > Thanks! > > Hi,<br><br>I'm trying to create my own custom function to > jde-complete. But I cant figure out how to get the list of completions > without activating some other completion method.<br><br>Could someone please > give me a short example of how this could be done?<br> > > <br>Thanks!<br> > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > > jdee-users mailing list > > jde...@li... > > https://lists.sourceforge.net/lists/listinfo/jdee-users > > -- > |
From: Paul <la...@ma...> - 2009-01-23 02:55:56
|
Ah, I see. I've wanted something similar. Like a more sort of auto complete like CTRL-SHIFT-T in eclipse where you have a list of completions, correct? Unfortunately, the rendering of completions is done in Java. While a list does come back, it's a list of fully qualified class names that match the class (think file name) of the class currently. I've not looked at the Java code in a while, but I'm sure it would be somewhat easy to change the code to return anything that matched, say, a regular expression or something as such instead. Take a look and submit a patch if you care to or have the time. The class/method of interest is: jde.util.JdeUtilities.getQualifiedName(String) Regarding the next release, it was to be out a month ago :) But then I my contract wasn't renewed and all of my energy has gone into finding, then getting ramped up on my current contract. Such is the way of life with open source these days. Doesn't it seem like everyone use to have time for it? Things are beginning to slow down and I imagine something substantial will be out within the next two months or sooner. Johan Andersson writes: > Hi Paul and thanks for your answer. > > I have looked some in the source code. But I didn't find any good way to > solve my problem without copying pretty much all code from > jde-complete-generic and jde-complete-pair. > > Since there is jde-complete-function I thought that there was some function > that figured out all completions (with the beanshell) and that returned a > list of all completions. This way it would be easy to use modes such as ido > and anything. That was what I was trying to achive. > > Just out of curiosity, when will there be a next release and what features > will it include? I didn't see any notes about it on the homepage. > > On Thu, Jan 22, 2009 at 3:47 AM, Paul <la...@ma...> wrote: > > > I suggest looking at the current source code. It uses beanshell to > > traverse the classpath. In return, beanshell returns a list as a > > sexp, which Emacs then reads and uses `completing-read'. Or wait > > until the next release, which will have an improved version which > > might address your needs. > > > > Johan Andersson writes: > > > Hi, > > > > > > I'm trying to create my own custom function to jde-complete. But I cant > > > figure out how to get the list of completions without activating some > > other > > > completion method. > > > > > > Could someone please give me a short example of how this could be done? > > > > > > Thanks! > > > Hi,<br><br>I'm trying to create my own custom function to > > jde-complete. But I cant figure out how to get the list of completions > > without activating some other completion method.<br><br>Could someone please > > give me a short example of how this could be done?<br> > > > <br>Thanks!<br> > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by: > > > SourcForge Community > > > SourceForge wants to tell your story. > > > > > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > > > jdee-users mailing list > > > jde...@li... > > > https://lists.sourceforge.net/lists/listinfo/jdee-users > > > > -- > > > Hi Paul and thanks for your answer.<br><br>I have looked some in the source code. But I didn't find any good way to solve my problem without copying pretty much all code from jde-complete-generic and jde-complete-pair.<br> > <br>Since there is jde-complete-function I thought that there was some function that figured out all completions (with the beanshell) and that returned a list of all completions. This way it would be easy to use modes such as ido and anything. That was what I was trying to achive.<br> > <br>Just out of curiosity, when will there be a next release and what features will it include? I didn't see any notes about it on the homepage.<br><br><div class="gmail_quote">On Thu, Jan 22, 2009 at 3:47 AM, Paul <span dir="ltr"><<a href="mailto:la...@ma...">la...@ma...</a>></span> wrote:<br> > <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suggest looking at the current source code. It uses beanshell to<br> > traverse the classpath. In return, beanshell returns a list as a<br> > sexp, which Emacs then reads and uses `completing-read'. Or wait<br> > until the next release, which will have an improved version which<br> > might address your needs.<br> > <div><div></div><div class="Wj3C7c"><br> > Johan Andersson writes:<br> > > Hi,<br> > ><br> > > I'm trying to create my own custom function to jde-complete. But I cant<br> > > figure out how to get the list of completions without activating some other<br> > > completion method.<br> > ><br> > > Could someone please give me a short example of how this could be done?<br> > ><br> > > Thanks!<br> > </div></div> > Hi,<br><br>I&#39;m trying to create my own custom function to jde-complete. But I cant figure out how to get the list of completions without activating some other completion method.<br><br>Could someone please give me a short example of how this could be done?<br><br> > > > <br>Thanks!<br><br> > > ------------------------------------------------------------------------------<br> > > This SF.net email is sponsored by:<br> > > SourcForge Community<br> > > SourceForge wants to tell your story.<br> > > <a href="http://p.sf.net/sfu/sf-spreadtheword_______________________________________________" target="_blank">http://p.sf.net/sfu/sf-spreadtheword_______________________________________________</a><br> > > jdee-users mailing list<br> > > <a href="mailto:jde...@li...">jde...@li...</a><br> > > <a href="https://lists.sourceforge.net/lists/listinfo/jdee-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jdee-users</a><br> > <font color="#888888"><br> > --<br> > </font></blockquote></div><br> -- |
From: Johan A. <joh...@gm...> - 2009-01-23 13:04:55
|
I don't think you and I are speaking of the same thing... I tried CTRL-SHIFT-T in eclipse and that was a function that searched for class names. What I was talking about was method completion on an object. What I would like to do i something like this: (custom-set-variables ;; ... '(jde-complete-function (quote jde-complete-ido)) ;; ... ) ;; In jde-complete.el (defun jde-complete () (interactive) (funcall jde-complete-function (jde-complete-find-completions-at-point))) ;; In your own dot files (defun jde-complete-ido (methods) (interactive) (jde-complete-insert-completion (ido-completing-read "Method: " methods))) (defun jde-complete-anything (methods) ;; ... ) jde-complete-find-completions-at-point is a defun that will find all possible completions at point. methods argument for jde-complete-ido and jde-complete-anything is what is sent from jde-complete (jde-complete-find-completions-at-point). This way you can really easy choose your own completion method if none of the once in jde-complete suites you. jde-complete-insert-completion is a defun that would remove the characters that is already typed so thats not repeated. You see what I mean? BTW: I kinda like the CTRL-SHIFT-T function in eclipse. If you want to implement it, this is a way you could search with a regular expression. public List getAsList(Object key) { List<Object> li = new ArrayList<Object>(); for(Object o : this.keySet()) { if(Pattern.matches(".*" + key + ".*", (String)o)) { Object value = this.get(o); if(value instanceof List) { li.addAll((List)value); } else { li.add(value); } } } return li; } This way though is way more expensive than the previous version. On Fri, Jan 23, 2009 at 3:55 AM, Paul <la...@ma...> wrote: > Ah, I see. I've wanted something similar. Like a more sort of auto > complete like CTRL-SHIFT-T in eclipse where you have a list of > completions, correct? > > Unfortunately, the rendering of completions is done in Java. While a > list does come back, it's a list of fully qualified class names that > match the class (think file name) of the class currently. I've not > looked at the Java code in a while, but I'm sure it would be somewhat > easy to change the code to return anything that matched, say, a > regular expression or something as such instead. > > Take a look and submit a patch if you care to or have the time. > > The class/method of interest is: > > jde.util.JdeUtilities.getQualifiedName(String) > > Regarding the next release, it was to be out a month ago :) But then > I my contract wasn't renewed and all of my energy has gone into > finding, then getting ramped up on my current contract. > > Such is the way of life with open source these days. Doesn't it seem > like everyone use to have time for it? > > Things are beginning to slow down and I imagine something substantial > will be out within the next two months or sooner. > > > Johan Andersson writes: > > Hi Paul and thanks for your answer. > > > > I have looked some in the source code. But I didn't find any good way to > > solve my problem without copying pretty much all code from > > jde-complete-generic and jde-complete-pair. > > > > Since there is jde-complete-function I thought that there was some > function > > that figured out all completions (with the beanshell) and that returned > a > > list of all completions. This way it would be easy to use modes such as > ido > > and anything. That was what I was trying to achive. > > > > Just out of curiosity, when will there be a next release and what > features > > will it include? I didn't see any notes about it on the homepage. > > > > On Thu, Jan 22, 2009 at 3:47 AM, Paul <la...@ma...> wrote: > > > > > I suggest looking at the current source code. It uses beanshell to > > > traverse the classpath. In return, beanshell returns a list as a > > > sexp, which Emacs then reads and uses `completing-read'. Or wait > > > until the next release, which will have an improved version which > > > might address your needs. > > > > > > Johan Andersson writes: > > > > Hi, > > > > > > > > I'm trying to create my own custom function to jde-complete. But I > cant > > > > figure out how to get the list of completions without activating > some > > > other > > > > completion method. > > > > > > > > Could someone please give me a short example of how this could be > done? > > > > > > > > Thanks! > > > > Hi,<br><br>I'm trying to create my own custom function to > > > jde-complete. But I cant figure out how to get the list of completions > > > without activating some other completion method.<br><br>Could someone > please > > > give me a short example of how this could be done?<br> > > > > <br>Thanks!<br> > > > > > > > > ------------------------------------------------------------------------------ > > > > This SF.net email is sponsored by: > > > > SourcForge Community > > > > SourceForge wants to tell your story. > > > > > > > > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > > > > jdee-users mailing list > > > > jde...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jdee-users > > > > > > -- > > > > > Hi Paul and thanks for your answer.<br><br>I have looked some in the > source code. But I didn't find any good way to solve my problem without > copying pretty much all code from jde-complete-generic and > jde-complete-pair.<br> > > <br>Since there is jde-complete-function I thought that there was some > function that figured out all completions (with the beanshell) and that > returned a list of all completions. This way it would be easy to use modes > such as ido and anything. That was what I was trying to achive.<br> > > <br>Just out of curiosity, when will there be a next release and what > features will it include? I didn't see any notes about it on the > homepage.<br><br><div class="gmail_quote">On Thu, Jan 22, 2009 at 3:47 AM, > Paul <span dir="ltr"><<a href="mailto:la...@ma..."> > la...@ma...</a>></span> wrote:<br> > > <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, > 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suggest looking > at the current source code. It uses beanshell to<br> > > traverse the classpath. In return, beanshell returns a list as > a<br> > > sexp, which Emacs then reads and uses `completing-read'. Or > wait<br> > > until the next release, which will have an improved version which<br> > > might address your needs.<br> > > <div><div></div><div class="Wj3C7c"><br> > > Johan Andersson writes:<br> > > > Hi,<br> > > ><br> > > > I'm trying to create my own custom function to > jde-complete. But I cant<br> > > > figure out how to get the list of completions without > activating some other<br> > > > completion method.<br> > > ><br> > > > Could someone please give me a short example of how this > could be done?<br> > > ><br> > > > Thanks!<br> > > </div></div> > Hi,<br><br>I&#39;m trying to > create my own custom function to jde-complete. But I cant figure out how to > get the list of completions without activating some other completion > method.<br><br>Could someone please give me a short example of > how this could be done?<br><br> > > > > > <br>Thanks!<br><br> > > > > ------------------------------------------------------------------------------<br> > > > This SF.net email is sponsored by:<br> > > > SourcForge Community<br> > > > SourceForge wants to tell your story.<br> > > > <a href=" > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________" > target="_blank"> > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > </a><br> > > > jdee-users mailing list<br> > > > <a href="mailto:jde...@li..."> > jde...@li...</a><br> > > > <a href=" > https://lists.sourceforge.net/lists/listinfo/jdee-users" target="_blank"> > https://lists.sourceforge.net/lists/listinfo/jdee-users</a><br> > > <font color="#888888"><br> > > --<br> > > </font></blockquote></div><br> > > -- > |
From: Paul <la...@ma...> - 2009-01-24 03:41:22
|
OK, I understand now. There is already completion for this. I think what you want is: (setq jde-complete-function 'jde-complete-minibuf) I realize you want to integrate it with ido, but this might get you by for now and find you can live with the interface. Keep in mind this doesn't work in many cases and particularly when dereferencing genericised references. Johan Andersson writes: > I don't think you and I are speaking of the same thing... > > I tried CTRL-SHIFT-T in eclipse and that was a function that searched for > class names. What I was talking about was method completion on an object. > > What I would like to do i something like this: > (custom-set-variables > ;; ... > '(jde-complete-function (quote jde-complete-ido)) > ;; ... > ) > > ;; In jde-complete.el > (defun jde-complete () > (interactive) > (funcall jde-complete-function (jde-complete-find-completions-at-point))) > > ;; In your own dot files > (defun jde-complete-ido (methods) > (interactive) > (jde-complete-insert-completion (ido-completing-read "Method: " methods))) > > (defun jde-complete-anything (methods) > ;; ... > ) > > jde-complete-find-completions-at-point is a defun that will find all > possible completions at point. methods argument for jde-complete-ido and > jde-complete-anything is what is sent from jde-complete > (jde-complete-find-completions-at-point). This way you can really easy > choose your own completion method if none of the once in jde-complete suites > you. jde-complete-insert-completion is a defun that would remove the > characters that is already typed so thats not repeated. > > You see what I mean? > > > BTW: > I kinda like the CTRL-SHIFT-T function in eclipse. If you want to implement > it, this is a way you could search with a regular expression. > public List getAsList(Object key) { > List<Object> li = new ArrayList<Object>(); > for(Object o : this.keySet()) { > if(Pattern.matches(".*" + key + ".*", (String)o)) { > Object value = this.get(o); > if(value instanceof List) { > li.addAll((List)value); > } else { > li.add(value); > } > } > } > return li; > } > > This way though is way more expensive than the previous version. > > On Fri, Jan 23, 2009 at 3:55 AM, Paul <la...@ma...> wrote: > > > Ah, I see. I've wanted something similar. Like a more sort of auto > > complete like CTRL-SHIFT-T in eclipse where you have a list of > > completions, correct? > > > > Unfortunately, the rendering of completions is done in Java. While a > > list does come back, it's a list of fully qualified class names that > > match the class (think file name) of the class currently. I've not > > looked at the Java code in a while, but I'm sure it would be somewhat > > easy to change the code to return anything that matched, say, a > > regular expression or something as such instead. > > > > Take a look and submit a patch if you care to or have the time. > > > > The class/method of interest is: > > > > jde.util.JdeUtilities.getQualifiedName(String) > > > > Regarding the next release, it was to be out a month ago :) But then > > I my contract wasn't renewed and all of my energy has gone into > > finding, then getting ramped up on my current contract. > > > > Such is the way of life with open source these days. Doesn't it seem > > like everyone use to have time for it? > > > > Things are beginning to slow down and I imagine something substantial > > will be out within the next two months or sooner. > > > > > > Johan Andersson writes: > > > Hi Paul and thanks for your answer. > > > > > > I have looked some in the source code. But I didn't find any good way to > > > solve my problem without copying pretty much all code from > > > jde-complete-generic and jde-complete-pair. > > > > > > Since there is jde-complete-function I thought that there was some > > function > > > that figured out all completions (with the beanshell) and that returned > > a > > > list of all completions. This way it would be easy to use modes such as > > ido > > > and anything. That was what I was trying to achive. > > > > > > Just out of curiosity, when will there be a next release and what > > features > > > will it include? I didn't see any notes about it on the homepage. > > > > > > On Thu, Jan 22, 2009 at 3:47 AM, Paul <la...@ma...> wrote: > > > > > > > I suggest looking at the current source code. It uses beanshell to > > > > traverse the classpath. In return, beanshell returns a list as a > > > > sexp, which Emacs then reads and uses `completing-read'. Or wait > > > > until the next release, which will have an improved version which > > > > might address your needs. > > > > > > > > Johan Andersson writes: > > > > > Hi, > > > > > > > > > > I'm trying to create my own custom function to jde-complete. But I > > cant > > > > > figure out how to get the list of completions without activating > > some > > > > other > > > > > completion method. > > > > > > > > > > Could someone please give me a short example of how this could be > > done? > > > > > > > > > > Thanks! > > > > > Hi,<br><br>I'm trying to create my own custom function to > > > > jde-complete. But I cant figure out how to get the list of completions > > > > without activating some other completion method.<br><br>Could someone > > please > > > > give me a short example of how this could be done?<br> > > > > > <br>Thanks!<br> > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > This SF.net email is sponsored by: > > > > > SourcForge Community > > > > > SourceForge wants to tell your story. > > > > > > > > > > > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > > > > > jdee-users mailing list > > > > > jde...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jdee-users > > > > > > > > -- > > > > > > > Hi Paul and thanks for your answer.<br><br>I have looked some in the > > source code. But I didn't find any good way to solve my problem without > > copying pretty much all code from jde-complete-generic and > > jde-complete-pair.<br> > > > <br>Since there is jde-complete-function I thought that there was some > > function that figured out all completions (with the beanshell) and that > > returned a list of all completions. This way it would be easy to use modes > > such as ido and anything. That was what I was trying to achive.<br> > > > <br>Just out of curiosity, when will there be a next release and what > > features will it include? I didn't see any notes about it on the > > homepage.<br><br><div class="gmail_quote">On Thu, Jan 22, 2009 at 3:47 AM, > > Paul <span dir="ltr"><<a href="mailto:la...@ma..."> > > la...@ma...</a>></span> wrote:<br> > > > <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, > > 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suggest looking > > at the current source code. It uses beanshell to<br> > > > traverse the classpath. In return, beanshell returns a list as > > a<br> > > > sexp, which Emacs then reads and uses `completing-read'. Or > > wait<br> > > > until the next release, which will have an improved version which<br> > > > might address your needs.<br> > > > <div><div></div><div class="Wj3C7c"><br> > > > Johan Andersson writes:<br> > > > > Hi,<br> > > > ><br> > > > > I'm trying to create my own custom function to > > jde-complete. But I cant<br> > > > > figure out how to get the list of completions without > > activating some other<br> > > > > completion method.<br> > > > ><br> > > > > Could someone please give me a short example of how this > > could be done?<br> > > > ><br> > > > > Thanks!<br> > > > </div></div> > Hi,<br><br>I&#39;m trying to > > create my own custom function to jde-complete. But I cant figure out how to > > get the list of completions without activating some other completion > > method.<br><br>Could someone please give me a short example of > > how this could be done?<br><br> > > > > > > > <br>Thanks!<br><br> > > > > > > ------------------------------------------------------------------------------<br> > > > > This SF.net email is sponsored by:<br> > > > > SourcForge Community<br> > > > > SourceForge wants to tell your story.<br> > > > > <a href=" > > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________" > > target="_blank"> > > http://p.sf.net/sfu/sf-spreadtheword_______________________________________________ > > </a><br> > > > > jdee-users mailing list<br> > > > > <a href="mailto:jde...@li..."> > > jde...@li...</a><br> > > > > <a href=" > > https://lists.sourceforge.net/lists/listinfo/jdee-users" target="_blank"> > > https://lists.sourceforge.net/lists/listinfo/jdee-users</a><br> > > > <font color="#888888"><br> > > > --<br> > > > </font></blockquote></div><br> > > > > -- > > > I don't think you and I are speaking of the same thing...<br><br>I tried CTRL-SHIFT-T in eclipse and that was a function that searched for class names. What I was talking about was method completion on an object.<br><br> > What I would like to do i something like this:<br>(custom-set-variables<br> ;; ...<br> '(jde-complete-function (quote jde-complete-ido))<br> ;; ...<br> )<br><br>;; In jde-complete.el<br>(defun jde-complete ()<br> (interactive)<br> > (funcall jde-complete-function (jde-complete-find-completions-at-point)))<br><br>;; In your own dot files<br>(defun jde-complete-ido (methods)<br> (interactive)<br> (jde-complete-insert-completion (ido-completing-read "Method: " methods)))<br> > <br>(defun jde-complete-anything (methods)<br> ;; ...<br> )<br><br>jde-complete-find-completions-at-point is a defun that will find all possible completions at point. methods argument for jde-complete-ido and jde-complete-anything is what is sent from jde-complete (jde-complete-find-completions-at-point). This way you can really easy choose your own completion method if none of the once in jde-complete suites you. jde-complete-insert-completion is a defun that would remove the characters that is already typed so thats not repeated.<br> > <br>You see what I mean?<br><br><br>BTW:<br>I kinda like the CTRL-SHIFT-T function in eclipse. If you want to implement it, this is a way you could search with a regular expression.<br>public List getAsList(Object key) {<br> > List<Object> li = new ArrayList<Object>();<br> for(Object o : this.keySet()) {<br> if(Pattern.matches(".*" + key + ".*", (String)o)) {<br> Object value = this.get(o);<br> > if(value instanceof List) {<br> li.addAll((List)value);<br> } else {<br> li.add(value);<br> }<br> }<br> }<br> return li;<br>}<br><br>This way though is way more expensive than the previous version.<br> > <br><div class="gmail_quote">On Fri, Jan 23, 2009 at 3:55 AM, Paul <span dir="ltr"><<a href="mailto:la...@ma...">la...@ma...</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> > Ah, I see. I've wanted something similar. Like a more sort of auto<br> > complete like CTRL-SHIFT-T in eclipse where you have a list of<br> > completions, correct?<br> > <br> > Unfortunately, the rendering of completions is done in Java. While a<br> > list does come back, it's a list of fully qualified class names that<br> > match the class (think file name) of the class currently. I've not<br> > looked at the Java code in a while, but I'm sure it would be somewhat<br> > easy to change the code to return anything that matched, say, a<br> > regular expression or something as such instead.<br> > <br> > Take a look and submit a patch if you care to or have the time.<br> > <br> > The class/method of interest is:<br> > <br> > jde.util.JdeUtilities.getQualifiedName(String)<br> > <br> > Regarding the next release, it was to be out a month ago :) But then<br> > I my contract wasn't renewed and all of my energy has gone into<br> > finding, then getting ramped up on my current contract.<br> > <br> > Such is the way of life with open source these days. Doesn't it seem<br> > like everyone use to have time for it?<br> > <br> > Things are beginning to slow down and I imagine something substantial<br> > will be out within the next two months or sooner.<br> > <div><div></div><div class="Wj3C7c"><br> > <br> > Johan Andersson writes:<br> > > Hi Paul and thanks for your answer.<br> > ><br> > > I have looked some in the source code. But I didn't find any good way to<br> > > solve my problem without copying pretty much all code from<br> > > jde-complete-generic and jde-complete-pair.<br> > ><br> > > Since there is jde-complete-function I thought that there was some function<br> > > that figured out all completions (with the beanshell) and that returned a<br> > > list of all completions. This way it would be easy to use modes such as ido<br> > > and anything. That was what I was trying to achive.<br> > ><br> > > Just out of curiosity, when will there be a next release and what features<br> > > will it include? I didn't see any notes about it on the homepage.<br> > ><br> > > On Thu, Jan 22, 2009 at 3:47 AM, Paul <<a href="mailto:la...@ma...">la...@ma...</a>> wrote:<br> > ><br> > > > I suggest looking at the current source code. It uses beanshell to<br> > > > traverse the classpath. In return, beanshell returns a list as a<br> > > > sexp, which Emacs then reads and uses `completing-read'. Or wait<br> > > > until the next release, which will have an improved version which<br> > > > might address your needs.<br> > > ><br> > > > Johan Andersson writes:<br> > > > > Hi,<br> > > > ><br> > > > > I'm trying to create my own custom function to jde-complete. But I cant<br> > > > > figure out how to get the list of completions without activating some<br> > > > other<br> > > > > completion method.<br> > > > ><br> > > > > Could someone please give me a short example of how this could be done?<br> > > > ><br> > > > > Thanks!<br> > > > > Hi,<br><br>I&#39;m trying to create my own custom function to<br> > > > jde-complete. But I cant figure out how to get the list of completions<br> > > > without activating some other completion method.<br><br>Could someone please<br> > > > give me a short example of how this could be done?<br><br> > > > > <br>Thanks!<br><br> > > > ><br> > > > ------------------------------------------------------------------------------<br> > > > > This SF.net email is sponsored by:<br> > > > > SourcForge Community<br> > > > > SourceForge wants to tell your story.<br> > > > ><br> > > > <a href="http://p.sf.net/sfu/sf-spreadtheword_______________________________________________" target="_blank">http://p.sf.net/sfu/sf-spreadtheword_______________________________________________</a><br> > > > > jdee-users mailing list<br> > > > > <a href="mailto:jde...@li...">jde...@li...</a><br> > > > > <a href="https://lists.sourceforge.net/lists/listinfo/jdee-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jdee-users</a><br> > > ><br> > > > --<br> > > ><br> > </div></div> > Hi Paul and thanks for your answer.<br><br>I have looked some in the source code. But I didn&#39;t find any good way to solve my problem without copying pretty much all code from jde-complete-generic and jde-complete-pair.<br><br> > > > <br>Since there is jde-complete-function I thought that there was some function that figured out all completions (with the beanshell) and that returned a list of all completions. This way it would be easy to use modes such as ido and anything. That was what I was trying to achive.<br><br> > > > <br>Just out of curiosity, when will there be a next release and what features will it include? I didn&#39;t see any notes about it on the homepage.<br><br><div class="gmail_quote">On Thu, Jan 22, 2009 at 3:47 AM, Paul <span dir="ltr">&lt;<a href="mailto:<a href="mailto:la...@ma...">la...@ma...</a>"><a href="mailto:la...@ma...">la...@ma...</a></a>&gt;</span> wrote:<br><br> > > > <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suggest looking at the current source code. &nbsp;It uses beanshell to<br><br> > > > traverse the classpath. &nbsp;In return, beanshell returns a list as a<br><br> > > sexp, which Emacs then reads and uses `completing-read&#39;. &nbsp;Or wait<br><br> > > until the next release, which will have an improved version which<br><br> > > might address your needs.<br><br> > > <div><div></div><div class="Wj3C7c"><br><br> > > Johan Andersson writes:<br><br> > > &nbsp;&gt; Hi,<br><br> > > &nbsp;&gt;<br><br> > > &nbsp;&gt; I&#39;m trying to create my own custom function to jde-complete. But I cant<br><br> > > &nbsp;&gt; figure out how to get the list of completions without activating some other<br><br> > > &nbsp;&gt; completion method.<br><br> > > &nbsp;&gt;<br><br> > > &nbsp;&gt; Could someone please give me a short example of how this could be done?<br><br> > > &nbsp;&gt;<br><br> > > &nbsp;&gt; Thanks!<br><br> > > </div></div>&nbsp;&gt; Hi,&lt;br&gt;&lt;br&gt;I&amp;#39;m trying to create my own custom function to jde-complete. But I cant figure out how to get the list of completions without activating some other completion method.&lt;br&gt;&lt;br&gt;Could someone please give me a short example of how this could be done?&lt;br&gt;<br><br> > > ><br> > > &nbsp;&gt; &lt;br&gt;Thanks!&lt;br&gt;<br><br> > > &nbsp;&gt; ------------------------------------------------------------------------------<br><br> > > &nbsp;&gt; This SF.net email is sponsored by:<br><br> > > &nbsp;&gt; SourcForge Community<br><br> > > &nbsp;&gt; SourceForge wants to tell your story.<br><br> > > &nbsp;&gt; <a href="<a href="http://p.sf.net/sfu/sf-spreadtheword_______________________________________________" target="_blank">http://p.sf.net/sfu/sf-spreadtheword_______________________________________________</a>" target="_blank"><a href="http://p.sf.net/sfu/sf-spreadtheword_______________________________________________" target="_blank">http://p.sf.net/sfu/sf-spreadtheword_______________________________________________</a></a><br><br> > > > &nbsp;&gt; jdee-users mailing list<br><br> > > &nbsp;&gt; <a href="mailto:<a href="mailto:jde...@li...">jde...@li...</a>"><a href="mailto:jde...@li...">jde...@li...</a></a><br><br> > > > &nbsp;&gt; <a href="<a href="https://lists.sourceforge.net/lists/listinfo/jdee-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jdee-users</a>" target="_blank"><a href="https://lists.sourceforge.net/lists/listinfo/jdee-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jdee-users</a></a><br><br> > > > <font color="#888888"><br><br> > > --<br><br> > > </font></blockquote></div><br><br> > <font color="#888888"><br> > --<br> > </font></blockquote></div><br> -- |