Share / Export eclipse working sets

醉酒当歌 提交于 2019-11-28 21:08:28
Phil Rykoff

download the AnyEdit addon:

Description | Download page

and then use the following work through:

  1. Via the menu bar: File > “Export…”
  2. Select “General” / “Working Sets”
  3. Click “Next >”
  4. Select the working set(s) you want to export and where you want to export the file.
  5. Click “Finish” to perform the export.

VonC

You can try and export (as in "copy to another people workspace metadata directory"):

</path/to/.metadata>\.plugins\org.eclipse.ui.workbench\workingsets.xml

This is the file referencing your working sets.


z0r adds in the comments:

my team mate replaced his workingsets.xml with my version of the file, and it worked well.
However, you must exit Eclipse before replacing the file, because Eclipse will overwrite it with the old version when it exits.
I think you only need to do this once.

In Eclipse Indigo the working sets export has moved to Export -> Team Project Set and there is a check box top left to export working sets.

Although, FileExportTeamTeam Project Set is the correct way to export working sets, you could write an Eclipse External Tool.

External Tools

  1. Open a new dialog by navigating:

    RunExternal ToolsExternal Tools Configurations…

  2. Select Program and click the New button to create a new configuration.

    Note: You will only need to use the "Main" tab.

  3. Give the tool a title e.g. "Export Working Sets"

    Windows

    • Location: ${env_var:SystemRoot}\System32\cmd.exe
    • Working Directory: ${env_var:USERPROFILE}\Documents
    • Arguments:  

      /c copy /y ${workspace_loc}\.metadata\.plugins\org.eclipse.ui.workbench\workingsets.xml workingsets-${current_date}.xml
      

    Linux

    • Location: /bin/cp
    • Working Directory: ${env_var:HOME}/Documents
    • Arguments:  

      ${workspace_loc}/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml workingsets-${current_date}.xml
      
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!