1/* 2 * Copyright 2001-2008 Artima, Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package org.scalatest.tools 17 18import org.scalatest._ 19 20/** 21 * Trait implemented by RunnerJFrame, which can be passed to the RunnerGUI State objects, 22 * allowing them to call back into RunnerJFrame. 23 * 24 * @author Bill Venners 25 */ 26private[scalatest] trait RunnerGUI { 27 28 def prepUIForReady(): Unit 29 def prepUIForRunning(): Unit 30 def prepUIForRerunning(): Unit 31 def prepUIWhileRunning(): Unit 32 def prepUIWhileRerunning(): Unit 33 def prepUIForStopping(): Unit 34 def prepUIForReStopping(): Unit 35 def showErrorDialog(title: String, msg: String): Unit 36 def getSelectedRerunner(): Option[Rerunner] 37 def runFromGUI(): Unit 38 def rerunFromGUI(rerunnable: Rerunner): Unit 39 def requestStop(): Unit 40} 41