Workspace 101 [message #1353089] |
Tue, 13 May 2014 15:30  |
Eclipse User |
|
|
|
Workspace is not just a folder to contain projects.
When I create a new Workspace folder WS_new, Eclipse creates several subfolders:
-.metadata that has
- .plugins that has
- .org.eclipse.xxxx (6 subfolders)
If I make a new project Project_new and click Finish, folder WS_new now appears:
-WS_new
+.metadata
+Project_new
I don't see this concept (.metadata sub folder) in Netbeans.
As a newcomer, I didn't understand this concept, and wanted to move my projects into other folders. Apparently Eclipse did not like that. I had to re-install Eclipse.
I read an article that indicates that a new Workspace should be started with a new version of Eclipse.
(eclipse.dzoneDotcom/articles/eclipse-workspace-tips])
That person also suggested putting projects in a folder separate from the Workspace.
This would enable moving projects into other folders with no adverse effects on Eclipse. But this seems to be complicated.
My questions are:
What is the purpose of having .metadata etc.?
Does it provide an advantage over Netbeans?
If it relates to the version, why isn't it kept in the Eclipse folder for that version?
Once a project is made in a given Workspace folder, can it not be moved?
|
|
|
Re: Workspace 101 [message #1353633 is a reply to message #1353089] |
Tue, 13 May 2014 20:51   |
Eclipse User |
|
|
|
The workspace is a logical container for projects, and can also be physical container for them (although that's not required). Here's a description I wrote a couple of years ago on Stack Overflow:
Quote:The workspace is designed as a logical container of projects, it just so happens that it can also be a physical container for them, too. Many times you want or need to store a project's contents in some place on your file system that is outside your workspace. One common example is with certain source control systems, you check files out into a location that's managed by the version control system (such as git, Perforce, VSS, etc). In that case, you need to have the Eclipse Project look for its contents in the version-tool-managed location instead of the Eclipse workspace.
Many people, like myself, just like to keep projects organized in my file system in different ways that aren't tied to a particular workspace. Another reason, though less common, is to have the same project loaded into two different workspaces. Remember, the workspace is a logical or virtual container; it won't always be exactly how you want projects organized on disk. If your projects are stored outside the workspace(s), that allows workspaces to be transient in the sense that you can create/delete them at will without losing your project contents.
Note that the workspace is (intentionally, by design) seprate from the Eclipse installation. Even if a workspace somehow became corrupted or a big mess, you do not need to re-install Eclipse. Similarly, if you install a new version or package of Eclipse, you can point it to your existing workspace and continue with the projects and settings that you have established there.
[Updated on: Wed, 22 July 2015 15:28] by Moderator
|
|
|
|
|
Re: Workspace 101 [message #1370405 is a reply to message #1356306] |
Tue, 20 May 2014 21:02  |
Eclipse User |
|
|
|
I posted in the C/C++ thread group this would be my home language even though my questions/conundrum is with the IDE itself. Every time I download a version
& start installing the tools I need. I get so far & eventually it crashes & fails to start. I have learned where to bump up the memory to 1024m inside the
ini file (on a Mac using 10.9.2). I don't think its because of virtual space per se. It seem to occur after I have download loaded some packages that warn me this "has no certificate" or something. One plugin like this was some perl addin/ Epic I think. Another was Scala language. The later warns me it needs a heap space of 1039m which is an odd number. I do not know how to even set this.
I have a more detailed post in the C/C++ thread space. I would like to know what conflicts with what and how do I go to some central repository of knowledge to know that? I know this may sound stupid, though anyway, why can't I install Eclipse with all components from the Kepler Releases site and
why can't I add things that warn (this will collide/damage you eclipse base if you continue to install)...
Even more, once I get this offensive will not start -- read .log in workspace/.metafile/ blah blah, how do I fix it so my eclipse will start again???
huh? Any help you can lend or direct me to will be appreciated.
Thanks in advance.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.15173 seconds