[program-java] Re: eclipse project package class

  • From: "Stanzel, Susan - Kansas City, MO" <susan.stanzel@xxxxxxxxxxxx>
  • To: "program-java@xxxxxxxxxxxxx" <program-java@xxxxxxxxxxxxx>
  • Date: Mon, 14 Mar 2011 12:01:23 -0500

I need to ask yet another question. Now, don't just fall over laughing, but 
when you say right click, do you mean route the PC cursor to JAWS and hit the 
right button which on my keyboard is just to the left of the JAWS cursor button.

Susie

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Monday, March 14, 2011 11:11 AM
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Re: eclipse project package class

Suzy:

Ok, I see what's going on here: In my example I have a new workspace for each 
project in these cases it would be either SLFI2010 or SLFI2011. The projects 
are called "implementation".

I suppose it's the way you use the term workspace. In your case it seems that 
all projects are under "Suzy" but with mine they have their own space.

So if you are using "Suzy" as the workspace, I would right click it and add a 
new project. Then right click the "SRC" folder that will be created under the 
new project and add a package. Then right click the package and add your class 
or property file.

Note if you want to have a sub package you will need to do the following. First 
create the package as indicated above and title it for example main. Then right 
click again and name a new package main.sub_package for example. It will appear 
directly under main but from the OS standpoint it is a sub folder of main.

Jim


James M. Corbett

Programmer / Analyst |
Canada Revenue Agency | Agence du revenue du Canada
875 Heron Rd.
Ottawa, On.
K1A0L5

James.Corbett@xxxxxxxxxxxxx
Telephone | Téléphone: (613) 941-1338
Facsimile | Télécopieur: (613) 941-2261

Government of Canada | Gouvernement du Canada

E = MC²

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Stanzel, Susan - Kansas 
City, MO
Sent: March 14, 2011 11:53
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: eclipse project package class

Now I am really really confused. When I was in my Java class the teacher 
installed Eclipse and made me a work space called Susie which I get into each 
time. Was that incorrect?

Susie

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Monday, March 14, 2011 10:49 AM
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Re: eclipse project package class

Hi:

That ain't so my friends if you have the list of the projects displayed as the 
default setting (Preferences).

This is where the concept of "Workspace" gets muddled. In an Enterprise or J2E 
project you may by default have to projects under the same Workspace because 
you will most likely have an .ear or .war file as the end result but in a plain 
old Java project it's better if you have one project per Workspace.For example:

C:\projects\SLFI2010\implementation\src
C:\projects\SLFI2011\implementation\src

This way you can keep them sepearate and cause yourself less confusion.

Jim


James M. Corbett

Programmer / Analyst |
Canada Revenue Agency | Agence du revenue du Canada
875 Heron Rd.
Ottawa, On.
K1A0L5

James.Corbett@xxxxxxxxxxxxx
Telephone | Téléphone: (613) 941-1338
Facsimile | Télécopieur: (613) 941-2261

Government of Canada | Gouvernement du Canada

E = MC²

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: March 14, 2011 11:33
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: eclipse project package class

Hi Suzie,
Eclipse puts you in the project you were working on when you reopen it. You 
have to open the one you want to open if you want to use a different one. I 
think that you can tell it to forget what you were in last time you used it so 
that you are forced to open the one you want when you start it up. I'd have to 
check.

Jim

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Stanzel, Susan - Kansas 
City, MO
Sent: Monday, March 14, 2011 11:19 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: eclipse project package class

Thanks. Now I have another question. Do you always want to get back into what 
you have left? It automatically does that.

Susie

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Monday, March 14, 2011 9:52 AM
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Re: eclipse project package class

Hi:

When I need to create something....

I. First create Project, whether that be a standard Java or not that's for you 
to decide however for my example Java by default.

II. Once this task is completed, I usually will open the Project Explorer, 
expand the project, expand or at least open the SRC folder.

III. Next I will create a package....

IV. I then locate said package and then create a class or create a sub package.

Jim


James M. Corbett

Programmer / Analyst |
Canada Revenue Agency | Agence du revenue du Canada
875 Heron Rd.
Ottawa, On.
K1A0L5

James.Corbett@xxxxxxxxxxxxx
Telephone | Téléphone: (613) 941-1338
Facsimile | Télécopieur: (613) 941-2261

Government of Canada | Gouvernement du Canada

E = MC²

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Stanzel, Susan - Kansas 
City, MO
Sent: March 14, 2011 10:39
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: eclipse project package class

OK, if I create a new project it doesn't just put me in it? How about the 
package? Do I enter alt f and open each separate thing? It seems to me this 
should be smart enough to know if you are creating something new you obviously 
want to be in it (grin). Am I missing something?



Susie



From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Monday, March 14, 2011 9:27 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: eclipse project package class



Hi Suzie,

According to me, you did not have the new project open, or you were looking at 
the old project.



Jim



From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Stanzel, Susan - Kansas 
City, MO
Sent: Monday, March 14, 2011 9:12 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] eclipse project package class



Hi Listers and especially Jim C,



The last time I was in Eclipse I created a project, package, and class. This 
morning I again launched Eclipse. I hit alt f and new. I created a project. 
Again hit alt f and new creating a package. Then I did the same thing again and 
created a class. Well, I don't know where the project and package are, but it 
put my class in the space under the project and package from the last time. 
What have I done wrong?



Susie



________________________________

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.








Other related posts: