if(isDocumentChanged()){
//FIXME:
(new Exception("checkDiscardChanges:")).printStackTrace();
YesOrNoDialog yesOrNo = new YesOrNoDialog(ProcessDesigner.getInstance(), "Discard changes?");
yesOrNo.show();
int yesnocancel = yesOrNo.getResult();
return yesnocancel;
}
return YesOrNoDialog.YES;