| | |
| | | */ |
| | | public boolean mustCheckUnsavedChanges() |
| | | { |
| | | return (schemaElementPanel != null) && |
| | | schemaElementPanel.mustCheckUnsavedChanges(); |
| | | return schemaElementPanel != null && schemaElementPanel.mustCheckUnsavedChanges(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public UnsavedChangesDialog.Result checkUnsavedChanges() |
| | | { |
| | | if (schemaElementPanel == null) |
| | | { |
| | | return UnsavedChangesDialog.Result.DO_NOT_SAVE; |
| | | } |
| | | else |
| | | if (schemaElementPanel != null) |
| | | { |
| | | return schemaElementPanel.checkUnsavedChanges(); |
| | | } |
| | | return UnsavedChangesDialog.Result.DO_NOT_SAVE; |
| | | } |
| | | } |