无论是在我们日常工作中,还是练习学习中,都会创建很多的工作区间,以下是几种切换方法:
一、如果,你只是要知道怎么修改工作区间的话,告诉你,就是点击file-Switch WorkSpace来修改就可以了,你也就没必要往下看了。
二、找到安装路径的org.eclipse.ui.ide.prefs文件
比如我的安装路径是D:\Study Tool\MyEclipse 8.5\
那么文件路径就是D:\Study Tool\MyEclipse 8.5\configuration\.settings里边的org.eclipse.ui.ide.prefs,使用UltraEdit或者其他工具打开
以下是文件内容:
#Sun May 20 17:50:31 CST 2012
RECENT_WORKSPACES_PROTOCOL=3
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1
RECENT_WORKSPACES= D:\\Study Tool\\project
RECENT_WORKSPACES_PROTOCOL=3
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1
RECENT_WORKSPACES= D:\\Study Tool\\project
红色部分就是要修改的工作区间,第一个就是默认的工作区间如果两个的话,用\n隔开
比如:
RECENT_WORKSPACES=D:\\Study Tool\\project\nE:\\s\\p
那么我的默认工作区间就是D:\\Study Tool\\project,还有个工作区间就是E:\\s\\p
路径
如果你看到这里就可以了,也就不用继续往下看了。
三、好,回到主题,如果前两个都不行的话,就需要这步了(
老实交代,你是不是也用的MyEclipse 8.5)
在安装目录下找到config.ini文件
比如我的文件在D:\Study Tool\MyEclipse 8.5\configuration\config.ini路径下
打开内容为:
#Generated by Pulse at Sun May 20 17:50:43 CST 2012
#Sun May 20 17:50:43 CST 2012
com.genuitec.pulse.client.handshake.id=fb18f906-84f6-4135-a345-bc12a3fa5b25
org.eclipse.update.reconcile=false
eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1337507056466
osgi.instance.area.default= D:\\Study Tool\\project
osgi.framework=file\:../common directory/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
com.genuitec.pulse.client.credentials=ngzOS2FfN8bdDHjJSsjrnB0Nyrutax/UWoL3DqyMdzuCjcagd0BE99ENnib47Fnkv+PzpczDYTAp Ob+jdaFdoLopdtW6YPCKFWoyebI5vx6IGHJKjZ9Hz8Ea9eKXejpNK24NeSeSxGslIMK4CrGu3ibq YLD8vihmQ9u/EgDht3U\=
osgi.splashLocation=D\:\\Study Tool\\common directory\\plugins\\com.genuitec.myeclipse.product85_8.5.0.me201003250242\\splash.bmp
com.genuitec.pulse.client.blueprint.id=rb-578452-1337507056466
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.100.v201003231800.jar@1\:start
com.genuitec.pulse.common.server.url=https\://www.poweredbypulse.com\:443
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=com.genuitec.myeclipse.product85.ide
osgi.splashPath=platform\:/base/plugins/com.genuitec.myeclipse.product85
osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=file\:/C\:/Users/Administrator.LBDZ-20120520WM/AppData/Local/Genuitec/Common/configuration/
com.genuitec.pulse.client.basedir.location.override=C\:\\Users\\Administrator.LBDZ-20120520WM\\AppData\\Local\\Genuitec
仔细看红色字体那行,你的应该是 osgi.instance.area.default=@user 什么的吧,好的,按照我那么改就可以了,蓝色字体就是你要的默认工作区间啦。
#Sun May 20 17:50:43 CST 2012
com.genuitec.pulse.client.handshake.id=fb18f906-84f6-4135-a345-bc12a3fa5b25
org.eclipse.update.reconcile=false
eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1337507056466
osgi.instance.area.default= D:\\Study Tool\\project
osgi.framework=file\:../common directory/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
com.genuitec.pulse.client.credentials=ngzOS2FfN8bdDHjJSsjrnB0Nyrutax/UWoL3DqyMdzuCjcagd0BE99ENnib47Fnkv+PzpczDYTAp Ob+jdaFdoLopdtW6YPCKFWoyebI5vx6IGHJKjZ9Hz8Ea9eKXejpNK24NeSeSxGslIMK4CrGu3ibq YLD8vihmQ9u/EgDht3U\=
osgi.splashLocation=D\:\\Study Tool\\common directory\\plugins\\com.genuitec.myeclipse.product85_8.5.0.me201003250242\\splash.bmp
com.genuitec.pulse.client.blueprint.id=rb-578452-1337507056466
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.100.v201003231800.jar@1\:start
com.genuitec.pulse.common.server.url=https\://www.poweredbypulse.com\:443
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=com.genuitec.myeclipse.product85.ide
osgi.splashPath=platform\:/base/plugins/com.genuitec.myeclipse.product85
osgi.framework.extensions=
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=file\:/C\:/Users/Administrator.LBDZ-20120520WM/AppData/Local/Genuitec/Common/configuration/
com.genuitec.pulse.client.basedir.location.override=C\:\\Users\\Administrator.LBDZ-20120520WM\\AppData\\Local\\Genuitec
仔细看红色字体那行,你的应该是 osgi.instance.area.default=@user 什么的吧,好的,按照我那么改就可以了,蓝色字体就是你要的默认工作区间啦。