Révision 2239
| tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAEditor.java (revision 2239) | ||
|---|---|---|
| 62 | 62 |
import org.txm.rcp.editors.TXMMultiPageEditor; |
| 63 | 63 |
import org.txm.rcp.editors.TXMResultEditorInput; |
| 64 | 64 |
import org.txm.rcp.messages.TXMUIMessages; |
| 65 |
import org.txm.rcp.utils.JobHandler; |
|
| 65 | 66 |
import org.txm.utils.OSDetector; |
| 66 | 67 |
import org.txm.utils.logger.Log; |
| 67 | 68 |
|
| ... | ... | |
| 71 | 72 |
* @author mdecorde |
| 72 | 73 |
* @author sjacquot |
| 73 | 74 |
*/ |
| 74 |
public class CAEditor extends TXMMultiPageEditor {
|
|
| 75 |
public class CAEditor extends TXMMultiPageEditor<CA> {
|
|
| 75 | 76 |
|
| 76 | 77 |
|
| 77 | 78 |
/** |
| ... | ... | |
| 373 | 374 |
// editors.get(4).setFocus(); |
| 374 | 375 |
} |
| 375 | 376 |
|
| 377 |
@Override |
|
| 378 |
public CA getResult() {
|
|
| 379 |
return ca; |
|
| 380 |
} |
|
| 376 | 381 |
|
| 382 |
|
|
| 383 |
|
|
| 384 |
@Override |
|
| 385 |
public void close() {
|
|
| 386 |
close(false); |
|
| 387 |
} |
|
| 388 |
|
|
| 389 |
@Override |
|
| 390 |
public void close(final boolean deleteResult) {
|
|
| 391 |
final EditorPart self = this; |
|
| 392 |
this.getSite().getShell().getDisplay().syncExec(new Runnable() {
|
|
| 393 |
@Override |
|
| 394 |
public void run() {
|
|
| 395 |
getSite().getPage().closeEditor(self, false); |
|
| 396 |
if(deleteResult) {
|
|
| 397 |
try {
|
|
| 398 |
getResult().delete(); |
|
| 399 |
} |
|
| 400 |
catch(Exception e) {
|
|
| 401 |
|
|
| 402 |
} |
|
| 403 |
} |
|
| 404 |
} |
|
| 405 |
}); |
|
| 406 |
} |
|
| 407 |
|
|
| 408 |
@Override |
|
| 409 |
public void setLocked(boolean locked) {
|
|
| 410 |
} |
|
| 377 | 411 |
} |
Formats disponibles : Unified diff