/** Ejecuta los renombrado. */ public void run() { listenerReg.notify("# run():RenameGenericClassType #"); // $NON-NLS-1$ Collection<Type> types = MOONRefactoring.getModel().getTypes(); for (Type type : types) if (type instanceof ClassType && type.getClassDef() != null && type.getClassDef().isGeneric() && ((ClassType) type).getClassDef() == classDef) { actions.add(new RenameType(((ClassType) type), newName)); } for (Action next : actions) next.run(); }
/** Deshace los renombrados. */ @Override public void undo() { listenerReg.notify("# undo():RenameGenericClassType #"); // $NON-NLS-1$ for (Action next : actions) next.undo(); }