private EditType getEditType ( String typeName ) { for ( EditType type : EditType . values ( ) ) { if ( type . toString ( ) . equals ( typeName ) ) { return type ; } } return null ; }
Create a EditType from the name type used by MW