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;
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.