5.0 Package Creation

I am having some issues when creating new packages in a project. Typically, when I start a new project I'll create my package structure first. In 5.0 if I create a package com.gthought.appname.database.dao.ibatis this is exactly how it displays in the project. The problem is that when I create a new Class after this, and say it needs to be in package com.gthought.appname.database.dao there is not way to specify this. It goes into the ibatis package, and I then have to move the class and fix the package declaration.

If 5.0 is going to keep packages listed this way, fine, but at least give us the option of choosing a package when we create a new Class. Or am I missing something else here?

Thanks.

Gregg

3 comments

Above Project tab, there is a small icon (second from the left),
'Compact Empty Middle Packages'

Gregg Bolinger wrote:

I am having some issues when creating new packages in a project. Typically, when I start a new project I'll create my package structure first. In 5.0 if I create a package com.gthought.appname.database.dao.ibatis this is exactly how it displays in the project. The problem is that when I create a new Class after this, and say it needs to be in package com.gthought.appname.database.dao there is not way to specify this. It goes into the ibatis package, and I then have to move the class and fix the package declaration.

If 5.0 is going to keep packages listed this way, fine, but at least give us the option of choosing a package when we create a new Class. Or am I missing something else here?

Thanks.

Gregg

0

Gregg Bolinger wrote:

I am having some issues when creating new packages in a project.
Typically, when I start a new project I'll create my package
structure first. In 5.0 if I create a package
com.gthought.appname.database.dao.ibatis this is exactly how it
displays in the project. The problem is that when I create a new
Class after this, and say it needs to be in package
com.gthought.appname.database.dao there is not way to specify this.
It goes into the ibatis package, and I then have to move the class
and fix the package declaration.


IDEA will only create classes in packages which already exist, so you
have to create the com.gthought.appname.database.dao package before
creating the class. Once the package is created, you choose which
package it goes into by right-clicking on the package in the Project
view and choosing New>Class from the context menu.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0

Thanks, this solved the problem. I appreciate the help.

0

Please sign in to leave a comment.