inserting a package statement [message #178830] |
Tue, 21 September 2004 17:03  |
Eclipse User |
|
|
|
Originally posted by: jwoofy.hotmail.com
I am moving from using the default package to a classic package structure.
The response to my earlier post explained how to set up the packages using
Eclipse. Now I face a problem that none of my 100 or so source files have a
package statement in them. When I use the Move command to put the source
files into a package, the package command is not inserted, as I had hoped.
I could insert the package command with a Unix shell script or a Java
program. However, I'd like to increase my Eclipse skills. Does Eclipse
offer a way to insert the package command into my source files without
manually editing them all?
Thanks
--
Jeff
|
|
|
|
|
Re: inserting a package statement [message #178962 is a reply to message #178866] |
Wed, 22 September 2004 10:04  |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Jeff wrote:
> Thanks, but I don't have Refactor->Move as an option. I tried both
> selecting the files in the default package then right clicking and the
> Refactor menu directly. All the choices in the Refactor menu are greyed.
> Is there an alternative?
Hmm, it sounds as if your Eclipse project may not be configured to
recognize those classes (but I would think you would have noticed that
before now).
Can you outline the directory structure of your project, like this:
ProjectRoot/
build/
lib/
source/
com/
company/
foo/
SomeClass.java
...
...
Also, can you describe what the Java Build Path properties are for your
project, especially the source folders that are set?
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.06559 seconds