سؤال

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