public TerminationHandler getTerminationHandler() { ITerminationHandlerHolder holder = BPELUtil.adapt(getActivity(), ITerminationHandlerHolder.class); if (holder != null) { return holder.getTerminationHandler(getActivity()); } return null; }
@Override protected boolean calculateEnabled() { List selList = getSelectedObjects(); if (selList.size() != 1) return false; Object o = selList.get(0); if (o instanceof Scope) { ITerminationHandlerHolder holder = BPELUtil.adapt(o, ITerminationHandlerHolder.class); if (holder != null) { if (holder.getTerminationHandler(o) != null) return true; } } return false; }