Re: package is not sutomatically suggested when creating a new class
"Suraj Acharya" <[email protected]> Tue, 17 Apr 2007 11:19:02 -0700
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
I don't use this feature much, but it worked for me when I tried to create a class in a directory in my jde-sourcepath. If no one else responds, I'd suggest looking at the source to try and debug what's going wrong. jde-package-get-package-directory in jde-package.el is the function responsible for generating the default package name from the current directory. Try evaluating "(jde-package-get-package-directory)" while in a source file from the directory in which you want to create the new class. In normal circumstances it should return the default package name with the "." characters replaced by "/". Evaluating "(jde-package-seach-package-directories)" should give you the list of source directory roots that it's going to match your current directory against. Look at the definition of jde-package-get-package-directory and jde-package-best-package-candidate for the next steps in your debugging process. Suraj On 4/17/07, Oren Shir <[email protected]> wrote: > Hi, > > When I create a new class I'm asked about the class's package, but I'm > not getting a suggestion for it. Is there some parameter I need to set? > I set the jde-sourcepath parameter, and the new class is in a folder > relative to it. > > Thanks, > Oren Shir > >