use of org.whole.lang.ui.actions.IActionRedirection in project whole by wholeplatform.
the class RedirectableModelTransactionHandler method getActionRedirection.
protected IActionRedirection getActionRedirection(IBindingManager bm) {
if (!bm.wIsSet("focusEntity"))
return NullActionRedirection.instance();
IEntityPartViewer viewer = (IEntityPartViewer) bm.wGetValue("viewer");
IEntityPart entityPart = viewer.getEditPartRegistry().get(bm.wGet("focusEntity"));
IActionRedirection actionRedirection = (IActionRedirection) entityPart.getAdapter(IActionRedirection.class);
return actionRedirection != null ? actionRedirection : NullActionRedirection.instance();
}
Aggregations