});
}
if (this.renameClassesCheck.isSelected()) {
ClassNameObfuscatingAdvisor nameObfuscatorAdvisor = new ClassNameObfuscatingAdvisor(classNames);
AbstractIteratorAgent agent = new RefactoringIterator(nameObfuscatorAdvisor, batch) {
@Override
public void processException(Exception ex) {
SystemFacade.getInstance().handleException(ex);
}
@Override
public void postProcessFile(IterationContext ic) {
super.postProcessFile(ic);
if (batch) {
save(ic);
}
}
};
obfuscators.add(agent);
}
/*
if (this.renameFieldsCheck.isSelected()) {
List<String> classNames = SystemFacade.getInstance().getClassIndex().getClassNames(project.getFileSet());
FieldNameObfuscatingAdvisor nameObfuscatorAdvisor = new FieldNameObfuscatingAdvisor(classNames);
AbstractIteratorAgent agent = new RefactoringIterator(nameObfuscatorAdvisor);
obfuscators.add(agent);
}*/
if (this.legalizeClassesCheck.isSelected()) {
ClassNameLegalizingAdvisor nameLegalizingAdvisor = new ClassNameLegalizingAdvisor(classNames);
AbstractIteratorAgent agent = new RefactoringIterator(nameLegalizingAdvisor, batch) {
@Override
public void processException(Exception ex) {
SystemFacade.getInstance().handleException(ex);
}
@Override
public void postProcessFile(IterationContext ic) {
super.postProcessFile(ic);
if (batch) {
save(ic);
}
}
};
obfuscators.add(agent);
}
if (this.legalizeMethodsCheck.isSelected()) {
MethodNameLegalizingAdvisor nameLegalizingAdvisor = new MethodNameLegalizingAdvisor(classNames);
AbstractIteratorAgent agent = new RefactoringIterator(nameLegalizingAdvisor, batch) {
@Override
public void processException(Exception ex) {
SystemFacade.getInstance().handleException(ex);
}
@Override
public void postProcessFile(IterationContext ic) {
super.postProcessFile(ic);
if (batch) {
save(ic);
}
}
};
obfuscators.add(agent);
}
if (this.legalizeFieldsCheck.isSelected()) {
FieldNameLegalizingAdvisor nameLegalizingAdvisor = new FieldNameLegalizingAdvisor(classNames);
AbstractIteratorAgent agent = new RefactoringIterator(nameLegalizingAdvisor, batch) {
@Override
public void processException(Exception ex) {
SystemFacade.getInstance().handleException(ex);
}