Changeset 71:63a7769cce57
- Timestamp:
- 04/13/08 10:38:16
(5 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
remove debug prints
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r67 |
r71 |
|
| 396 | 396 | // Disable the actions, so user can't change file while it's saving |
|---|
| 397 | 397 | enableActions(false); |
|---|
| 398 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 399 | 398 | try { |
|---|
| | 399 | auto pm = getStatusLineManager().getProgressMonitor(); |
|---|
| | 400 | auto disp = getShell().getDisplay(); |
|---|
| | 401 | |
|---|
| 400 | 402 | // Launch the Save runnable |
|---|
| 401 | 403 | ModalContext.run(new class(fileName) IRunnableWithProgress { |
|---|
| 402 | 404 | String filename_; |
|---|
| 403 | 405 | this(String a){ |
|---|
| 404 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 405 | 406 | filename_=a; |
|---|
| 406 | 407 | } |
|---|
| 407 | 408 | public void run(IProgressMonitor progressMonitor) { |
|---|
| 408 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 409 | 409 | try { |
|---|
| 410 | | progressMonitor.beginTask("Saving", IProgressMonitor.UNKNOWN); |
|---|
| | 410 | progressMonitor.beginTask("Saving", -1/+IProgressMonitor.UNKNOWN+/); |
|---|
| 411 | 411 | library.save(filename_); |
|---|
| 412 | 412 | progressMonitor.done(); |
|---|
| 413 | 413 | } catch (IOException e) { |
|---|
| 414 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 415 | 414 | showError(Format("Can't save file {}\r{}", library.getFileName(), e.msg )); |
|---|
| 416 | 415 | } |
|---|
| 417 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 418 | 416 | } |
|---|
| 419 | | }, true, getStatusLineManager().getProgressMonitor(), getShell() |
|---|
| 420 | | .getDisplay()); |
|---|
| 421 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| | 417 | }, true, pm, disp ); |
|---|
| 422 | 418 | } catch (InterruptedException e) { |
|---|
| 423 | 419 | } catch (InvocationTargetException e) { |
|---|
| 424 | 420 | } finally { |
|---|
| 425 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 426 | 421 | // Enable the actions |
|---|
| 427 | 422 | enableActions(true); |
|---|
| 428 | 423 | } |
|---|
| 429 | | Trace.formatln( "trc {}",__LINE__ ); |
|---|
| 430 | 424 | } |
|---|
| 431 | 425 | |
|---|