从 Eclipse Galileo 卸载 Mylyn

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1836994/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:11:32  来源:igfitidea点击:

Uninstall Mylyn from Eclipse Galileo

eclipsemylyn

提问by Rajat

Is there a way I can uninstall Mylyn from Eclipse PDT. It comes pre-installed and I don't think I am going to use it. So I want to take all the additional plugins out of my eclipse copy as my IDE is already running sluggishly.

有没有办法从 Eclipse PDT 卸载 Mylyn。它是预先安装的,我认为我不会使用它。所以我想从我的 Eclipse 副本中取出所有额外的插件,因为我的 IDE 已经运行缓慢。

采纳答案by VonC

The uninstall process is explained in the Mylyn FAQ

Mylyn FAQ 中解释了卸载过程

We recommend uninstalling in Eclipse via the Help → Software Updates → Manage Configurationdialog. If you get an error message when trying to uninstall, you will need to first uninstall dependencies that use Mylyn. These include things like the Subclipse Mylyn integration and the Bugzilla Connector.

You can also uninstall manually by deleting all of the Mylyn plug-ins and features from the eclipse/plugins and eclipse/features directory make sure to delete all of the plug-ins and then restart Eclipse with the -cleanoption (e.g. by inserting it into a shortcut or the eclipse.ini file.

我们建议通过Help → Software Updates → Manage Configuration对话框在 Eclipse 中卸载。如果在尝试卸载时收到错误消息,则需要先卸载使用 Mylyn 的依赖项。其中包括诸如 Subclipse Mylyn 集成和 Bugzilla 连接器之类的东西。

您还可以通过从 eclipse/plugins 和 eclipse/features 目录中删除所有 Mylyn 插件和特性来手动卸载确保删除所有插件,然后使用-clean选项重新启动 Eclipse (例如,通过将其插入到快捷方式或 eclipse.ini 文件。



Recent versions of Eclipse might not allow uninstalling mylyn: see bug 327157:

最新版本的 Eclipse 可能不允许卸载 mylyn:请参阅错误 327157

I am sorry to hear that you wish to uninstall Mylyn. It is correct that most packages provided by Eclipse only have a single root feature and do allow individual components to be uninstalled.

I can assure you that Mylyn has an negligible impact on Eclipse if it is not used. If you follow the following steps none of the Mylyn plugins will get loaded on startup:

得知您希望卸载 Mylyn,我深感遗憾。Eclipse 提供的大多数软件包只有一个根特性并且允许卸载单个组件,这是正确的。

我可以向您保证,如果不使用 Mylyn,它对 Eclipse 的影响可以忽略不计。如果您按照以下步骤操作,将不会在启动时加载任何 Mylyn 插件:

  • Close the Task LIst view,
  • Disable Mylyn Tasks UI and Mylyn Team UI under General > Startup and Shutdown
  • 关闭任务列表视图,
  • 在 General > Startup and Shutdown 下禁用 Mylyn Tasks UI 和 Mylyn Team UI

Additionally, you can remove Mylyn UI contributions under General > Capabilities by disabling the Tasks category (not all Eclipse packages provide that option).

Alternatively, you can use an Eclipse package such as the SDK that does not include Mylyn by default. Eclipse also provides a bare-bones RCP download that only has required components which can be extended as needed.

此外,您可以通过禁用 Tasks 类别(并非所有 Eclipse 包都提供该选项)来删除 General > Capabilities 下的 Mylyn UI 贡献。

或者,您可以使用默认情况下不包含 Mylyn 的 Eclipse 包,例如 SDK。Eclipse 还提供了一个基本的 RCP 下载,它只包含可以根据需要扩展的必需组件。

That means a manual uninstall as documented by Dawid Drozdis the only option:

这意味着Dawid Drozd记录的手动卸载是唯一的选择:

回答by David Shepherd

When Mylyn is not being used (i.e., no Mylyn views open and no active task) it should not effect performance in any way. If it is causing you performance problems please file a bug, as:

当 Mylyn 没有被使用时(即没有打开 Mylyn 视图并且没有活动任务),它不应该以任何方式影响性能。如果它导致您的性能问题,请提交错误,如下所示:

The Mylyn team considers anyspeed or memory performance overhead from Mylyn to be a critical bug. Please file a bug report: http://eclipse.org/mylyn/support/

Mylyn 团队认为来自 Mylyn 的任何速度或内存性能开销都是一个严重的错误。请提交错误报告:http: //eclipse.org/mylyn/support/

If you want to speedup your startup without uninstalling Mylyn, since uninstalling plugins in Eclipse can be tedious, open Window -> Preferences -> General -> Startup and Shutdown and uncheck the Mylyn features.

如果您想在不卸载 Mylyn 的情况下加快启动速度,因为在 Eclipse 中卸载插件可能很乏味,请打开窗口 -> 首选项 -> 常规 -> 启动和关闭并取消选中 Mylyn 功能。

回答by Dawid Drozd

Source: http://blog.sarathonline.com/2012/05/eclipse-indigo-without-mylyn.html

来源:http://blog.sarathonline.com/2012/05/eclipse-indigo-without-mylyn.html

For me works great.

对我来说效果很好。

#cd path-to-eclipse installation
#prep
 mkdir disabled disabled/features disabled/plugins

#remove mylyn
 mv plugins/*mylyn* disabled/plugins/
 mv features/*mylyn* disabled/features/

#remove cvs
 mv features/*cvs* disabled/features/
 mv plugins/*cvs* disabled/plugins/

#remove windows builder
 mv plugins/*.wb.* disabled/plugins/
 mv features/*.wb.* disabled/features/

#if svn is used, git may not be necessary; However, there is little harm keeping it
 mv features/*egit.* disabled/features/
 mv plugins/*jgit* disabled/plugins/
 mv plugins/*egit* disabled/plugins/

回答by zb226

Took a little longer until I got around to do it, but here's a script to enable/disable plugins/features from Eclipse for Windows. To disable Mylyn, put the script in your Eclipse main directory and do:

花了一点时间才开始做,但这里有一个脚本可以从 Eclipse for Windows启用/禁用插件/功能。要禁用 Mylyn,请将脚本放在 Eclipse 主目录中并执行:

eclipse_pfswitch.bat disable .mylyn.

To enable it again, do:

要再次启用它,请执行以下操作:

eclipse_pfswitch.bat enable .mylyn.

You can of course do that with arbitrary targets, not only Mylyn. The script echoes which files/directories it moves.

您当然可以对任意目标执行此操作,而不仅仅是 Mylyn。该脚本会回显它移动的文件/目录。

Some notes:

一些注意事项:

  • The script uses the same method as Dawid Drozd's answer- simply moving away unwanted stuff into folders which are unknown to Eclipse. That way, everything can be restored easily. Only difference is that I chose to use a .disabledsuffix for the directory names.
  • I had to use SUBSTto get away with using the MOVEcommand, which really is what should be used here. Problem is that the names of some Eclipse directories are ridiculously long - e.g. org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature_1.12.0.v201406061321-4218375LG5BJ93413- and thus MOVEcannot operate on them, causing an The filename or extension is too longerror (206).
  • Default substitution drive letter is S:. If that one is used on your system, the script will tell you and bail out. Simply adjust the subst_drivevariable to another unused drive letter.
  • Be careful how you specify the target. For example, if you want to remove "Target Management", specifying tmas target will also remove some HTML-related part of the "Web Standard Tools", because tmwill obviously also match html- so use .tm.instead. Conversely, if removing "Remote Systems Explorer", don't use .rse.but .rseotherwise you will miss some parts. It's always easy to go back anyway, so experiment as you wish.
  • 该脚本使用与Dawid Drozd 的答案相同的方法- 只需将不需要的东西移到 Eclipse 未知的文件夹中。这样,一切都可以轻松恢复。唯一的区别是我选择.disabled为目录名称使用后缀。
  • 我不得不使用命令SUBST来逃避使用MOVE,这确实是这里应该使用的。问题是某些 Eclipse 目录的名称太长了 - 例如org.eclipse.datatools.sqldevtools.schemaobjecteditor.feature_1.12.0.v201406061321-4218375LG5BJ93413- 因此MOVE无法对它们进行操作,从而导致The filename or extension is too long错误 (206)。
  • 默认替换驱动器号是S:. 如果您的系统上使用了那个,脚本会告诉您并退出。只需将subst_drive变量调整为另一个未使用的驱动器号。
  • 请注意如何指定目标。例如,如果要删除“目标管理”,指定tm为目标也会删除“Web 标准工具”的一些与 HTML 相关的部分,因为tm显然也会匹配html- 所以.tm.改用。相反,如果删除“远程系统资源管理器”,请不要使用.rse..rse否则您会错过某些部分。无论如何,返回总是很容易,因此请根据需要进行实验。

Without further ado, here's the script. It's not pretty, but hey, it's batch.

闲话少说,下面是脚本。它不漂亮,但嘿,它是批量的。

@ECHO OFF
SETLOCAL EnableDelayedExpansion
ECHO Eclipse plugin/feature switcher script for Windowze (p) 2015 zb226
ECHO Inspired by https://stackoverflow.com/a/17614970/1529709
ECHO.

SET subst_drive=S:
IF EXIST %subst_drive%\ (
    ECHO ERROR: Choose another drive for substitution, '%subst_drive%' is in use
    GOTO :EOF
)

IF NOT EXIST plugins SET _check=1
IF NOT EXIST features SET _check=1
IF DEFINED _check (
    ECHO ERROR: This does not look like an Eclipse main directory
    GOTO :EOF
)

IF "%1" == "enable" SET _check=1
IF "%1" == "disable" SET _check=1
IF NOT DEFINED _check GOTO :usage
IF "%2" == "" GOTO :usage
SET mode=%1
SET target=%2

CALL :shove_it %mode% plugins *%target%*
CALL :shove_it %mode% features *%target%*
GOTO :EOF

:shove_it
SET _mode=%1
SET _type=%2
SET _mask=%3

IF "%_mode%" == "disable" (
    SET _source=%2
    SET _target=%2.disabled
    IF NOT EXIST !_target! MKDIR !_target!
) ELSE (
    SET _source=%2.disabled
    SET _target=%2
)

SUBST %subst_drive% %_target%
FOR /F %%A IN ( 'DIR /B /O:N %_source%\%_mask% 2^> nul' ) DO (
    ECHO !_mode:le=l!ing !_type:s=! %%A
    MOVE %_source%\%%A %subst_drive%\%%A > nul
)
SUBST /D %subst_drive%
GOTO :EOF

:usage
ECHO Usage:             %~nx0 enable^|disable [TARGET]
ECHO Examples:          %~nx0 disable .mylyn.
ECHO                    %~nx0 enable .mylyn.
ECHO Example targets:   .mylyn., .datatools., .tm., .cvs, .rse, .pde, .rcp, ...

回答by herrtim

In Eclipse Neon, you can uninstall Mylyn via the Eclipse Installation Detailsview. Just select Help==> Installation Details, select the components to want to uninstall, and click Uninstall....

在 Eclipse 中Neon,您可以通过Eclipse Installation Details视图卸载 Mylyn 。只需选择Help==> Installation Details,选择要卸载的组件,然后单击Uninstall...

Eclipse Installation Details View

Eclipse 安装详细信息视图