Re: eclipse is confusing <project vs workspace>




<rogndeb@xxxxxxxxx> wrote in message news:1152223570.188193.68960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm a former Java programmer (1995,1996) but have been doing C++ in
between. Now going back to Java and using Eclipse (company standard).
It is an unusual IDE, the part that I'm tripping on is the project vs
workspace.

I created some code and works, saved it into a directory tree. I then
experimented with loading up sample workspaces, but no files show up in
the tree, nor can I build anything. Most other IDEs have a centralized
project file that you load/save which stores the build settings.
However I do not see such a thing in Eclipse. How do I make it reload
what I previously had? (If I browse back to the original folder, no
files show up)


I'm also having trouble understanding your question, so I'll just make some declarative statements:

The parent of a project is a workspace. So when you first start up Eclipse, it'll ask you where your workspace is (unless you checked the box that says "always use this workspace"). You might choose a directory like "My Documents\Eclipse Workspace\". Now Eclipse is loaded, and you can create some projects. Let's say you create a project called "Foo". Then it will exists within your workspace at "My Documents\Eclipse Workspace\Foo".

You can open and close projects by right clicking on them, but even when the project is "closed", it'll still exist within the workspace (you'll see a closed folder icon as a representation of the project).

So the centralized "file" isn't the project, but the workspace. You work in a single workspace, which can have multiple projects simultaneously.

The Eclipse IDE supports languages other than Java, and so projects have something called "natures". If a project doesn't have the "java nature" applied to it, a lot of Java-specific tools (such as automatic compilation, javadoc navigation, etc.) will be disabled.

- Oliver

.



Relevant Pages

  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... Programmieren meinst, dass die IDE doch eh die ganze Zeit läuft, dann ... Eclipse ... Wenn du jetzt sagen würdest ich bin Java gegenüber Voreingenommen ... Groovy Java *braucht*, stört dich hingegen nicht. ...
    (de.comp.lang.java)
  • Re: eclipse is confusing
    ... Now going back to Java and using Eclipse. ... There is a workspace, but you ... If you modify preferences in the Window | Preferences... ... IDE, you might look at working sets. ...
    (comp.lang.java.programmer)
  • Re: IDE
    ... Eclipse PDT: Eclipse is a quite veteran IDE written in Java with lots of features. ... there're a lot of PHP-specific editors which are normally simple text editors with lots of toolbars and some advanced functions. ...
    (comp.lang.php)
  • Re: Who cares for JBuilder?
    ... It has been my primary development tool for the past 5 years. ... It is still far and away the best Java IDE on the market. ... plugins for Eclipse and/or NetBeans, ...
    (borland.public.delphi.non-technical)
  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... Speicher hat Eclipse aber nicht gereicht. ... Wenn es um IDEs für Java geht sind eh nur Eclipse, ... Wenn man Von IDE im ... der ganz wilden Sorte. ...
    (de.comp.lang.java)