summaryrefslogtreecommitdiff
path: root/src/swing
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-24 16:19:21 +0000
committerPaul Phillips <paulp@improving.org>2011-04-24 16:19:21 +0000
commit3e652358455b9b650b587b8bd708e27f92973def (patch)
tree11a3c065154908afc9be1b3e3e7b749ed18fafa6 /src/swing
parent9db7dbe4409c192291079482a10ca902bacbeb33 (diff)
downloadscala-3e652358455b9b650b587b8bd708e27f92973def.tar.gz
scala-3e652358455b9b650b587b8bd708e27f92973def.tar.bz2
scala-3e652358455b9b650b587b8bd708e27f92973def.zip
Updated a bunch of @deprecated annotations to h...
Updated a bunch of @deprecated annotations to have a version, no review.
Diffstat (limited to 'src/swing')
-rw-r--r--src/swing/scala/swing/Component.scala2
-rw-r--r--src/swing/scala/swing/GUIApplication.scala2
-rw-r--r--src/swing/scala/swing/ListView.scala10
-rw-r--r--src/swing/scala/swing/SimpleGUIApplication.scala2
-rw-r--r--src/swing/scala/swing/UIElement.scala2
-rw-r--r--src/swing/scala/swing/event/ComponentEvent.scala8
6 files changed, 13 insertions, 13 deletions
diff --git a/src/swing/scala/swing/Component.scala b/src/swing/scala/swing/Component.scala
index b7a93ef448..fc4936cfde 100644
--- a/src/swing/scala/swing/Component.scala
+++ b/src/swing/scala/swing/Component.scala
@@ -122,7 +122,7 @@ abstract class Component extends UIElement {
- @deprecated("Use mouse instead") lazy val Mouse = mouse
+ @deprecated("Use mouse instead", "2.8.0") lazy val Mouse = mouse
/**
* Contains publishers for various mouse events. They are separated for
diff --git a/src/swing/scala/swing/GUIApplication.scala b/src/swing/scala/swing/GUIApplication.scala
index 23844bb063..8c63115707 100644
--- a/src/swing/scala/swing/GUIApplication.scala
+++ b/src/swing/scala/swing/GUIApplication.scala
@@ -16,7 +16,7 @@ import javax.swing._
/**
* Convenience class with utility methods for GUI applications.
*/
-@deprecated("Use SwingApplication instead") class GUIApplication {
+@deprecated("Use SwingApplication instead", "2.8.0") class GUIApplication {
/**
* Called before the GUI is created. Override to customize.
diff --git a/src/swing/scala/swing/ListView.scala b/src/swing/scala/swing/ListView.scala
index 0c019f773c..c5a50752ea 100644
--- a/src/swing/scala/swing/ListView.scala
+++ b/src/swing/scala/swing/ListView.scala
@@ -195,13 +195,13 @@ class ListView[A] extends Component {
object indices extends Indices(peer.getSelectedIndices) {
def -=(n: Int): this.type = { peer.removeSelectionInterval(n,n); this }
def +=(n: Int): this.type = { peer.addSelectionInterval(n,n); this }
- @deprecated("Use ListView.selection.leadIndex")
+ @deprecated("Use ListView.selection.leadIndex", "2.8.0")
def leadIndex: Int = peer.getSelectionModel.getLeadSelectionIndex
- @deprecated("Use ListView.selection.anchorIndex")
+ @deprecated("Use ListView.selection.anchorIndex", "2.8.0")
def anchorIndex: Int = peer.getSelectionModel.getAnchorSelectionIndex
}
- @deprecated("Use ListView.selectIndices")
+ @deprecated("Use ListView.selectIndices", "2.8.0")
def selectIndices(ind: Int*) = peer.setSelectedIndices(ind.toArray)
/**
@@ -209,9 +209,9 @@ class ListView[A] extends Component {
*/
object items extends scala.collection.SeqProxy[A] {
def self = peer.getSelectedValues.map(_.asInstanceOf[A])
- @deprecated("Use ListView.selection.leadIndex")
+ @deprecated("Use ListView.selection.leadIndex", "2.8.0")
def leadIndex: Int = peer.getSelectionModel.getLeadSelectionIndex
- @deprecated("Use ListView.selection.anchorIndex")
+ @deprecated("Use ListView.selection.anchorIndex", "2.8.0")
def anchorIndex: Int = peer.getSelectionModel.getAnchorSelectionIndex
}
diff --git a/src/swing/scala/swing/SimpleGUIApplication.scala b/src/swing/scala/swing/SimpleGUIApplication.scala
index 5f32a63afe..74d5d5ee04 100644
--- a/src/swing/scala/swing/SimpleGUIApplication.scala
+++ b/src/swing/scala/swing/SimpleGUIApplication.scala
@@ -21,7 +21,7 @@ import javax.swing._
* the EDT (see Swing.onEDT and Swing.onEDTWait). Lazy values are okay for the same reason
* if they are initialized on the EDT always.
*/
-@deprecated("Use SimpleSwingApplication instead") abstract class SimpleGUIApplication extends GUIApplication {
+@deprecated("Use SimpleSwingApplication instead", "2.8.0") abstract class SimpleGUIApplication extends GUIApplication {
/**
* A GUI application's version of the main method. Called by the default
diff --git a/src/swing/scala/swing/UIElement.scala b/src/swing/scala/swing/UIElement.scala
index 5f1d39bb64..8e34b0c38c 100644
--- a/src/swing/scala/swing/UIElement.scala
+++ b/src/swing/scala/swing/UIElement.scala
@@ -100,7 +100,7 @@ trait UIElement extends Proxy with LazyPublisher {
def bounds = peer.getBounds
def size = peer.getSize
@deprecated("Explicit size assignement for UIElements is not supported anymore. " +
- "Use a layout manager or subclass Window.")
+ "Use a layout manager or subclass Window.", "2.8.0")
def size_=(dim: Dimension) = peer.setSize(dim)
def locale = peer.getLocale
diff --git a/src/swing/scala/swing/event/ComponentEvent.scala b/src/swing/scala/swing/event/ComponentEvent.scala
index f312cb33d8..d8cff46168 100644
--- a/src/swing/scala/swing/event/ComponentEvent.scala
+++ b/src/swing/scala/swing/event/ComponentEvent.scala
@@ -15,11 +15,11 @@ trait ComponentEvent extends UIEvent {
val source: Component
}
-@deprecated("Use UIElementMoved instead.")
+@deprecated("Use UIElementMoved instead.", "2.8.0")
case class ComponentMoved(source: Component) extends ComponentEvent
-@deprecated("Use UIElementResized instead.")
+@deprecated("Use UIElementResized instead.", "2.8.0")
case class ComponentResized(source: Component) extends ComponentEvent
-@deprecated("Use UIElementShown instead.")
+@deprecated("Use UIElementShown instead.", "2.8.0")
case class ComponentShown(source: Component) extends ComponentEvent
-@deprecated("Use UIElementHidden instead.")
+@deprecated("Use UIElementHidden instead.", "2.8.0")
case class ComponentHidden(source: Component) extends ComponentEvent