1 package mograsim.rcp.handlers;
3 import org.eclipse.e4.core.di.annotations.CanExecute;
4 import org.eclipse.e4.core.di.annotations.Execute;
5 import org.eclipse.e4.ui.workbench.modeling.EPartService;
7 public class SaveHandler
11 public boolean canExecute(EPartService partService)
13 if (partService != null)
15 return !partService.getDirtyParts().isEmpty();
21 public void execute(EPartService partService)
23 partService.saveAll(false);