liip/RMT — pull request #65 by ppetermann (2014-02-16 18:19:39+00:00)
Title: added UpdateVersionClassFileAction

Changes:
added a UpdateVersionClassFileAction having UpdateVersionClassAction as parent

in UpdateVersionClass action i moved the actual editing into a new method, which can be used by the new child as well (preventing duplicate code).

I also added an confirmSuccess (to both) to ensure that little y would be displayed during runtime). To ensure it would be a success i added a check if the str_replace actually managed to add the new version (when using a pattern there was a case where it would find the old version, but if the pattern didn't match it wouldn't update, but not give any error)

also i moved the checks for the options from constructor to execute, this allows for one class to be derived of the other while not sharing the exact same options.

i was thinking about moving the new method to the new class and have the old class be derived of the new one, but i decided that leaving the original code in the original file, so the original authors credit is in the right place.