Révision 2460
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/handlers/results/DeleteObject.java (revision 2460) | ||
|---|---|---|
| 155 | 155 |
if (o != null && o instanceof TXMResult) {
|
| 156 | 156 |
TXMResult r = (TXMResult) o; |
| 157 | 157 |
TXMResult parent = r.getParent(); |
| 158 |
while (parent != null && !(parent instanceof CorpusBuild) && !parent.isVisible()) {
|
|
| 158 |
while (parent != null |
|
| 159 |
&& !(parent.isInternalPersistable()) // don't delete internally persisted results |
|
| 160 |
&& !parent.isVisible() // delete if the parent is hidden |
|
| 161 |
&& parent.getChildren().size() == 1) { // AND if there is no sibling
|
|
| 159 | 162 |
hidden.add(parent); |
| 160 | 163 |
parent = parent.getParent(); |
| 161 | 164 |
} |
Formats disponibles : Unified diff