Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SI-6641 Deprecate SwingWorker

See discussion: #1862
  • Loading branch information...
commit 557caa3d757f236c835482f90c199801b4f073e3 1 parent 1381cda
@retronym retronym authored
View
22 src/swing/scala/swing/SwingActor.scala
@@ -10,26 +10,6 @@
package scala.swing
-import scala.actors._
-
// Dummy to keep ant from recompiling on every run.
+@deprecated("Will be removed in 2.11.0", "2.10.1")
trait SwingActor { }
-
-/*object SwingActor {
- /**
- * Similar to Actor.actor, but creates an instance of a SwingActor.
- */
- def apply(body: => Unit): Actor =
- new SwingActor { def act() = body }.start()
-}
-
-/**
- * An actor that runs on the Swing event dispatching thread (EDT).
- */
-abstract class SwingActor extends Actor {
- override val scheduler = new SchedulerAdapter {
- def execute(op: =>Unit) = Swing onEDT op
- def onTerminate(a: Actor)(op: => Unit) {}
- def terminated(a: Actor) {}
- }
-}*/
View
4 src/swing/scala/swing/SwingWorker.scala
@@ -2,10 +2,12 @@ package scala.swing
import scala.actors._
+@deprecated("Will be removed in 2.11.0", "2.10.1")
object SwingWorker {
}
+@deprecated("Depends on the deprecated package scala.actors. Will be removed in 2.11.0", "2.10.1")
abstract class SwingWorker extends Actor {
def queue() {
@@ -18,4 +20,4 @@ abstract class SwingWorker extends Actor {
private var _cancelled = false
def cancelled: Boolean = _cancelled
def cancelled_=(b: Boolean) { _cancelled = b }
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.