Lines 389-395
Link Here
|
389 |
|
389 |
|
390 |
private IStructuredSelection handleDelete(Object object, boolean generateSelection) { |
390 |
private IStructuredSelection handleDelete(Object object, boolean generateSelection) { |
391 |
IStructuredSelection newSelection = null; |
391 |
IStructuredSelection newSelection = null; |
392 |
if (object instanceof ISchemaRootElement) { |
392 |
if (!isEditable()) { |
|
|
393 |
Display.getCurrent().beep(); |
394 |
} |
395 |
else if (object instanceof ISchemaRootElement) { |
393 |
// Semantic rule: The root "extension" element of a schema |
396 |
// Semantic rule: The root "extension" element of a schema |
394 |
// cannot be removed |
397 |
// cannot be removed |
395 |
|
398 |
|