Where does Eclipse store the info about which workspace to start up with?

后端 未结 6 652
醉话见心
醉话见心 2021-02-07 01:15

When I launch Eclipse it starts with one of the workspaces I created and selected \"don\'t ask again\" (standardly, Eclipse asks about which workspace to start with during the s

相关标签:
6条回答
  • 2021-02-07 01:41

    If Eclipse has been installed with ubuntu-make, the file location is ~/.local/share/umake/ide/eclipse-jee/configuration/.settings/org.eclipse.ui.ide.prefs.

    0 讨论(0)
  • 2021-02-07 01:42

    I was facing an issue with Spring Tool Suite 4. The workspace used to give an error and I wasn't able to select other workspace also. With the help of some answers already given, I could locate the configuration in $ECLIPSE_HOME\sts-4.7.1.RELEASE\configuration.settings\org.eclipse.epp.mpc.ui.prefs

    I removed RECENT_WORKSPACES property (after you try to restart, it adds default entry again) and changed

    SHOW_WORKSPACE_SELECTION_DIALOG=true
    

    STS started showing workspace selection dialog again.

    0 讨论(0)
  • 2021-02-07 01:45

    The settings have changed since this question was posted, as newer versions of Eclipse have been released.

    With Eclipse Luna, navigate to $ECLIPSE_HOME/eclipse/configuration/.settings and the file org.eclipse.ui.ide.prefs contains settings like this (Windows file configuration shown):

    MAX_RECENT_WORKSPACES=5
    RECENT_WORKSPACES=C\:\\src\\eclipse-workspaces\\luna\\MyApp\nC\:\\src\\eclipse-workspaces\\luna\\MyOtherApp
    RECENT_WORKSPACES_PROTOCOL=3
    SHOW_WORKSPACE_SELECTION_DIALOG=true
    eclipse.preferences.version=1
    

    Each entry in RECENT_WORKSPACES appears to be delimited by \n with no spaces. Whenever I manually shuffle my workspaces around (which is rare, but it happens), I've had great success hand-editing this file, saving it, and having the new paths show up just fine in the Workspace Lancher/Select a Workspace dialog.

    0 讨论(0)
  • 2021-02-07 01:46

    With Eclipse Juno, I can see this information in: eclipse\configuration\.settings file.

    I guess you are looking for RECENT_WORKSPACES and SHOW_WORKSPACE_SELECTION_DIALOG vars.

    0 讨论(0)
  • 2021-02-07 01:53

    You have eclipse configuration files in "eclipse_home"/configuration and the one you may looking for is in settings directory : org.eclipse.ui.ide.prefs

    0 讨论(0)
  • 2021-02-07 02:02

    In

    $HOME/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/.settings

    there is a file

    org.eclipse.ui.ide.prefs

    where it is stored.

    0 讨论(0)
提交回复
热议问题