Solved
getting class cast Exception when casting WTPartMaster type of Object to WTPart
Is there any way to get WTPart type Object from WTPartMaster like casting or any other method?
Is there any way to get WTPart type Object from WTPartMaster like casting or any other method?
QueryResult linksQueryResult = VersionControlHelper.service.allVersionsOf(wtPartMaster);
WTPart wtPart = null;
boolean latestIteration = false;
while ((linksQueryResult.hasMoreElements()) && (!latestIteration))
{
WTPart tempPart = (WTPart)linksQueryResult.nextElement();
latestIteration = tempPart.isLatestIteration();
if (latestIteration)
{
wtPart = tempPart;
}
}
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.