Moved common code to the parent class
Removed whitespace
Added abstract delete action, made class abstract
Override the doDeleteAction in each class
context menu creation and item selection pulled up