Changeset 71:63a7769cce57

Show
Ignore:
Timestamp:
04/13/08 10:38:16 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

remove debug prints

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • jface/Librarian.d

    r67 r71  
    396396        // Disable the actions, so user can't change file while it's saving 
    397397        enableActions(false); 
    398 Trace.formatln( "trc {}",__LINE__ ); 
    399398        try { 
     399            auto pm = getStatusLineManager().getProgressMonitor(); 
     400            auto disp = getShell().getDisplay(); 
     401 
    400402            // Launch the Save runnable 
    401403            ModalContext.run(new class(fileName) IRunnableWithProgress { 
    402404                String filename_; 
    403405                this(String a){ 
    404 Trace.formatln( "trc {}",__LINE__ ); 
    405406                    filename_=a; 
    406407                } 
    407408                public void run(IProgressMonitor progressMonitor) { 
    408 Trace.formatln( "trc {}",__LINE__ ); 
    409409                    try { 
    410                         progressMonitor.beginTask("Saving", IProgressMonitor.UNKNOWN); 
     410                        progressMonitor.beginTask("Saving", -1/+IProgressMonitor.UNKNOWN+/); 
    411411                        library.save(filename_); 
    412412                        progressMonitor.done(); 
    413413                    } catch (IOException e) { 
    414 Trace.formatln( "trc {}",__LINE__ ); 
    415414                        showError(Format("Can't save file {}\r{}", library.getFileName(), e.msg )); 
    416415                    } 
    417 Trace.formatln( "trc {}",__LINE__ ); 
    418416                } 
    419             }, true, getStatusLineManager().getProgressMonitor(), getShell() 
    420             .getDisplay()); 
    421 Trace.formatln( "trc {}",__LINE__ ); 
     417            }, true, pm, disp ); 
    422418        } catch (InterruptedException e) { 
    423419        } catch (InvocationTargetException e) { 
    424420        } finally { 
    425 Trace.formatln( "trc {}",__LINE__ ); 
    426421            // Enable the actions 
    427422            enableActions(true); 
    428423        } 
    429 Trace.formatln( "trc {}",__LINE__ ); 
    430424    } 
    431425