문제

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