@SuppressWarnings("nls") @Override protected void store(IVirtualCopyRuleSide aModel) { From from = BPELUtil.adapt(aModel.getCopyRuleSide(), From.class); ServiceRef serviceRef = from.getServiceRef(); if (serviceRef == null) { serviceRef = BPELFactory.eINSTANCE.createServiceRef(); from.setServiceRef(serviceRef); } // TODO: Delegate to the endpoint handler to store the endpoint // into the ServiceRef. }
/** * @see * org.eclipse.bpel.ui.properties.IAssignCategory#isCategoryForModel(org.eclipse.emf.ecore.EObject) */ @Override public boolean isCategoryForModel(EObject aModel) { From from = BPELUtil.adapt(aModel, From.class); return from != null && from.getServiceRef() != null; }