Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I am not able to convert the following function that gets an EqLinkCopyOverDelegate while moving from Windchill 11 to Winchill 12.
Can someone help me?
protected static EqLinkCopyOverDelegate getEqLinkCopyOverDelegate(final Persistable source, final CopyOverContext context) {
final CopyOverDelegateFactory factory = new CopyOverDelegateFactory();
final EqLinkCopyOverDelegate delegate = factory.getEqLinkCopyOverDelegate(source);
// TODO conversion WC11 -> WC12
((AbstractCopyOverDelegate) delegate).setTypeInstanceDAO(ServiceLocator.getInstance().getTypeInstanceDAO());
((DefaultEqLinkCopyOverDelegate) delegate).setPersistableProvider((new ServiceLocator()).getPersistableProvider());
((DefaultEqLinkCopyOverDelegate) delegate).setWorkableProvider((new ServiceLocator()).getWorkableProvider());
// --------------------------------
delegate.setCopyOverContext(context);
((AbstractCopyOverDelegate) delegate).clearParserCache();
return delegate;
}
