cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Translate the entire conversation x

EqLinkCopyOverDelegate Code conversion Windchill 11 to Windchill 12

PL_10342819
4-Participant

EqLinkCopyOverDelegate Code conversion Windchill 11 to Windchill 12

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?

PL_10342819_0-1677521743597.png

 

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;

 

 

 

0 REPLIES 0
Announcements

Top Tags