I want to invoke the save all command of my eclispe rcp from within my code. I spent like an hour without any ideas.. this cant be that hard?

有帮助吗?

解决方案

You can use the saveAllEditors command

IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
page.saveAllEditors(true);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top