use of org.whole.lang.e4.ui.parts.AbstractE4Part in project whole by wholeplatform.
the class RevertHandler method execute.
@Execute
public void execute(EPartService partService, IModelInput modelInput, @Named(IServiceConstants.ACTIVE_SELECTION) IBindingManager bm) {
if (E4Utils.isLegacyApplication()) {
IEntityPartViewer viewer = (IEntityPartViewer) bm.wGetValue("viewer");
viewer.setContents((IModelInput) bm.wGetValue("modelInput"), null);
} else {
AbstractE4Part part = (AbstractE4Part) partService.getActivePart().getObject();
part.getViewer().setContents(modelInput, null);
}
}
use of org.whole.lang.e4.ui.parts.AbstractE4Part in project whole by wholeplatform.
the class SaveHandler method execute.
@Execute
public void execute(IEclipseContext context, EPartService partService) {
IEclipseContext saveContext = context.createChild();
AbstractE4Part part = (AbstractE4Part) partService.getActivePart().getObject();
ContextInjectionFactory.invoke(part, Persist.class, saveContext);
saveContext.dispose();
}
Aggregations