Packages and Non-Packages

IDEA never ceases to amaze me...

I just added a subpackage in my source tree to an existing package; the new package's name was "ora-scripts". To my surprise, the folder icon of the new folder in the Project view did not have a little blue dot inside, and the context menu only allowed me to add Files and Directories (as opposed to Classes, Interfaces and Packages) to the newly created "package".

While this is indeed okay with me (as I was obviously intending non-Java files only to be placed in the new directory), I am a little worried because if I instead intended to use the directory as a part of my package hierarchy, I would not know how to "promote" the folder to a package.
Anybode here who does?

Regards,
Jens

P.S.: Nevertheless, this amount of AI is something other IDEs can only dream of. Congratulations, JB!

2 comments
Comment actions Permalink

Oops, I guess I was thinking a bit too highly of IDEA. I was just playing around a little with the "feature" I discovered and apparently my package isn't a package simply because its name isn't a valid package name (I thought it was because it had the substring "scripts" in it).

Regards,
Jens

P.S.: Still, IDEA rulezzzzzzzzzzzzzzzzzz!

0
Comment actions Permalink

"Jens Voss" <no_mail@jetbrains.com> wrote in message
news:9640471.1084808045908.JavaMail.itn@is.intellij.net...

Oops, I guess I was thinking a bit too highly of IDEA. I was just

playing around a little with the "feature" I discovered and apparently my
package isn't a package simply because its name isn't a valid package name
(I thought it was because it had the substring "scripts" in it).

Yeah, sometimes things are simplier than they seem. I don't think however
that this should be counted as IDEA's shortcoming:)

Regards,
Eugene.


0

Please sign in to leave a comment.