if(AbstractUtility.getActivePart() instanceof DerivateView){
DerivateView derivateView = (DerivateView)AbstractUtility.getActivePart();
if(derivateView.isDirty()){
- MessagingUtils.warningDialog("View has unsaved changes", this, "You need to save before performing this action");
+ MessagingUtils.warningDialog(DerivateView.VIEW_HAS_UNSAVED_CHANGES, this, DerivateView.YOU_NEED_TO_SAVE_BEFORE_PERFORMING_THIS_ACTION);
return null;
}
FieldUnit fieldUnit = FieldUnit.NewInstance();