~ubuntu-branches/ubuntu/oneiric/libspin-java/oneiric

« back to all changes in this revision

Viewing changes to src/spin/over/EDTRuleViolation.java

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2007-01-15 16:29:48 UTC
  • Revision ID: james.westby@ubuntu.com-20070115162948-olisrjfshcvqa7qu
Tags: upstream-1.4
ImportĀ upstreamĀ versionĀ 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Spin - transparent threading solution for non-freezing Swing applications.
 
3
 * Copyright (C) 2002 Sven Meier
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2.1 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 */
 
19
package spin.over;
 
20
 
 
21
import java.awt.Component;
 
22
 
 
23
/**
 
24
 * Exception signaling a violation of the EDT rule.
 
25
 */
 
26
public class EDTRuleViolation extends RuntimeException {
 
27
    
 
28
    private Component component;
 
29
    
 
30
    public EDTRuleViolation(Component component) {
 
31
        this.component = component;
 
32
    }
 
33
    
 
34
    public Component getComponent() {
 
35
        return component;
 
36
    }
 
37
}