new PerformRefactoringOperation(
r,
CheckConditionsOperation.FINAL_CONDITIONS
);
op.run(monitor);
ITypesContainerService contH = getContainerService();
if(contH!=null) {
String newFullName = contH.getFullName();
newFullName += '.' + newName;
IType tp = null;
if(processedUnit!=null) {
tp =
processedUnit.getJavaProject().findType(
newFullName
);
}
else {
tp =
javaElement.getJavaProject().findType(
newFullName
);
}
if(tp!=null) {
ICompilationUnit newUnit =
tp.getCompilationUnit();
if(newUnit!=null) {
ITypeService<?, ?> tpH =
getModelService().getServiceBuilder()
.processTypeService(
newUnit,
new NullProgressMonitor()
);
if(tpH!=null) {
contH.addTypeService(tpH);
contH.getTypesServices().remove(this);
}
}
}
}
} catch (CoreException e) {