SaveAllAction.class 缺少 org.eclipse.ui.workbench eclipse 4.7.2 插件

SaveAllAction.class is missing org.eclipse.ui.workbench Plugin for eclipse 4.7.2

此 org.eclipse.ui.workbench 插件中缺少

SaveAllAction.class。我找到了一个 doc,但我不明白,它们用作备用。

SaveAllAction 是您不应该使用的 内部 class。它很久以前在 Eclipse 3 发行版之一中被删除了。

当前等效的是 org.eclipse.ui.file.saveAll 命令。您可以使用类似以下内容执行此命令:

IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();

IHandlerServicer handler = window.getService(IHandlerService.class);

handler.executeCommand("org.eclipse.ui.file.saveAll", null);