Révision 1578
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/ApplicationWorkbenchAdvisor.java (revision 1578) | ||
|---|---|---|
| 494 | 494 |
for (Project project : Toolbox.workspace.getProjects()) {
|
| 495 | 495 |
ArrayList<String> bugs = new ArrayList<String>(); |
| 496 | 496 |
for (TXMResult result : project.getDeepChildren()) {
|
| 497 |
if (result.mustBePersisted() && |
|
| 498 |
(result.isAltered())) {
|
|
| 497 |
if (result.mustBePersisted() && result.isAltered()) {
|
|
| 499 | 498 |
bugs.add(result.getSimpleName()); |
| 500 | 499 |
} |
| 501 | 500 |
} |
| 502 | 501 |
if (bugs.size() > 0) {
|
| 503 |
messages.append("\t"+project.getName()+": "+bugs+"\n\n");
|
|
| 502 |
messages.append("\t" + project.getName() + ": " + bugs + "\n\n");
|
|
| 504 | 503 |
} |
| 505 | 504 |
} |
| 506 | 505 |
|
| 507 | 506 |
if (messages.length() > 0) {
|
| 508 |
return MessageDialog.openConfirm(Display.getCurrent().getActiveShell(), "Warning", "Modified or not recomputed results won't be correctly saved. Continue?Lost data: \n"+messages);
|
|
| 507 |
return MessageDialog.openConfirm(Display.getCurrent().getActiveShell(), TXMCoreMessages.common_warning, "Modified or not recomputed results won't be correctly saved. Continue?Lost data: \n"+messages);
|
|
| 509 | 508 |
} |
| 510 | 509 |
return true; |
| 511 | 510 |
} |
Formats disponibles : Unified diff