Clover Coverage Report - FEST Swing 1.2
Coverage timestamp: Tue Jun 1 2010 15:19:25 PDT
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
4   30   3   2
2   14   0.75   2
2     1.5  
1    
 
  IgnoreWindowTask       Line # 14 4 0% 3 0 100% 1.0
 
No Tests
 
1    package org.fest.swing.hierarchy;
2   
3    import java.awt.Window;
4   
5    import org.fest.swing.annotation.RunsInCurrentThread;
6   
7    /**
8    * Understands a task that given a <code>{@link WindowFilter}</code>, marks a given <code>{@link Window}</code> as
9    * "ignored" if it is already implicitly ignored by such filter. This task should be executed in the event dispatch
10    * thread.
11    *
12    * @author Alex Ruiz
13    */
 
14    class IgnoreWindowTask implements Runnable {
15   
16    private final Window w;
17    private final WindowFilter filter;
18   
 
19  13039 toggle IgnoreWindowTask(Window w, WindowFilter filter) {
20  13039 this.w = w;
21  13039 this.filter = filter;
22    }
23   
 
24  13039 toggle @RunsInCurrentThread
25    public void run() {
26    // If the window was shown again since we queued this action, it will have removed the window from the
27    // implicit filtered set, and we shouldn't filter.
28  9103 if (filter.isImplicitlyIgnored(w)) filter.ignore(w);
29    }
30    }