private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed
if (!inEditor){
if (!trySetRealState()) return;
}
try {
DirectoryExpenditureType det
= (DirectoryExpenditureType) DirectoryLocator.getDirectory(DirectoryExpenditureType.class, false);
DirectoryDialogDefault dialogDefault = new DirectoryDialogDefault(true, null, "\\", det);
dialogDefault.setVisible(true);
if (dialogDefault.getDlgResult() == ModalDialog.DLG_OK){