public void remove(){
if (curReport != null && !curReport.isSpecialReport()){
try {
if (curReport.isNewlyCreated()){
ReportLocal tmp = curReport;
rightPanelSetReport(null, false);
reportListModel.removeElement(tmp);
}
else {
int res = MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT);
if (res == MessageBox.ANSWER_YES){
ReportLocal tmp = curReport;
rightPanelSetReport(null, false);
tmp.remove();
reportListModel.removeElement(tmp);
}
}
} catch (ClipsException ex) {
MessageBox.showException(ex);