launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/Run.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 28 Apr 2013 17:42:49 +0200
branchmodel
changeset 1041 f18b7262fe91
permissions -rw-r--r--
FX launcher can start tests
jaroslav@1041
     1
/**
jaroslav@1041
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1041
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1041
     4
 *
jaroslav@1041
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1041
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1041
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1041
     8
 *
jaroslav@1041
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1041
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1041
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1041
    12
 * GNU General Public License for more details.
jaroslav@1041
    13
 *
jaroslav@1041
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1041
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1041
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1041
    17
 */
jaroslav@1041
    18
jaroslav@1041
    19
package org.apidesign.bck2brwsr.launcher.fximpl;
jaroslav@1041
    20
jaroslav@1041
    21
/**
jaroslav@1041
    22
 *
jaroslav@1041
    23
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@1041
    24
 */
jaroslav@1041
    25
public final class Run implements Runnable {
jaroslav@1041
    26
    private final Runnable r;
jaroslav@1041
    27
    Run(Runnable r) {
jaroslav@1041
    28
        this.r = r;
jaroslav@1041
    29
    }
jaroslav@1041
    30
jaroslav@1041
    31
    @Override
jaroslav@1041
    32
    public void run() {
jaroslav@1041
    33
        r.run();
jaroslav@1041
    34
    }
jaroslav@1041
    35
}