Eclipse workspace: how to rename a workspace

In the file menu there is no way to rename the workspace. Recommended practice for closing an eclipse, renaming a folder, and reopening it? I'm worried about some possible dangling links in configuration files that distort my workspace / projects ...

Thank!

+66
eclipse rename workspace
Mar 01 2018-11-11T00:
source share
6 answers

Source: Rename workspace?

Yes, you can simply rename the workspace directory and / or move it. However, you then need to tell Eclipse where the new workspace is. In 3.1, you can use the 'switch workspace' to launch to another location (under the menu file).

If you want to change it manually, you can edit the corresponding entries in the files in the "configuration" directory where Eclipse is stored.
You can modify the org.eclipse.ui.ide.prefs file to set SHOW_WORKSPACE_SELECTION_DIALOG = TRUE if you want to be asked every time Eclipse starts up where the workspace is located.

+51
Mar 01 '11 at 15:40
source share
— -

For simple renaming, there is no need to switch between workspaces unless the workspace you want to rename is current.

In any case, you can rename the current open workspace by choosing Eclipse-> Preferences-> General-> Workspace and changing the "Workspace Name (shown in the window title)" parameter from the default workspace folder name to whatever you want to call It. Then restart Eclipse.

Suppose your workspace folder is "/ foo / bar / workspace" and you have never changed its name before; his name was then the default "workspace". After you rename it, say, "my_workspace" and restart Eclipse, the Eclipse window title should show: "my_workspace - (some things are changing) - / foo / bar / workspace".

Note that this will NOT change the name of the workspace folder. You may need to create a new folder with the desired name, switch to that folder (whose workspace will have the same default name) and import existing projects into it, as some of them suggested here.

+6
Nov 01
source share

Work with a copy of the workspace to a new folder. Any links required by Eclipse are resolved using the relative location of the workspace. If you have added launchers, substitution variables, etc. that rely on the absolute location of the workspace, they should be reset.

+2
Mar 01 '11 at 15:35
source share

John, I think that in the original workspace you imported the projects and that the projects depend on the links, and not on the fact that they are physically located in the same place in the space (even there already exist, but the dependency depends on the links). If so, you need to remove the projects from the new (copied) space, and then import them again.

+2
Jan 18 2018-12-18T00:
source share

Renaming the workspace folder worked for me. Close eclipse, rename the workspace folder name, start eclipse again. If you use any project dependencies, such as user libraries, launchers, etc., you must transfer them to a new location manually from the project build path.

+2
May 27 '14 at 6:41
source share

I just did:

File -> Import -> Maven -> Existing Maven Projects -> specify a new workspace location in the "Root Directory" in the "Import Maven Projects" window

and it worked! All projects were imported properly.

By the way, I have the "m2e" Eclipse-Maven plugin installed ( http://wiki.eclipse.org/M2E_updatesite_and_gittags )

+1
May 02 '13 at 17:35
source share



All Articles