File tree 2 files changed +18
-6
lines changed
src/main/scala/scala/swing 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ scalaVersionsByJvm in ThisBuild := Map(
17
17
12 -> List (" 2.11.12" , " 2.12.8" , " 2.13.0-RC1" ).map(_ -> false )
18
18
)
19
19
20
- scalaVersion in ThisBuild := " 2.13.0-RC1 " // for testing
20
+ scalaVersion in ThisBuild := " 2.12.8 "
21
21
22
22
OsgiKeys .exportPackage := Seq (s " scala.swing.*;version= ${version.value}" )
23
23
Original file line number Diff line number Diff line change @@ -81,11 +81,23 @@ abstract class Action(title0: String) {
81
81
def actionPerformed (a : java.awt.event.ActionEvent ): Unit = apply()
82
82
}
83
83
84
- /**
85
- * Title is not optional.
86
- */
87
- def title : String = ifNull(peer.getValue(javax.swing.Action .NAME )," " )
88
- def title_= (t : String ): Unit = peer.putValue(javax.swing.Action .NAME , t)
84
+ /** Gets the `NAME` property.
85
+ */
86
+ def text : String = ifNull(peer.getValue(javax.swing.Action .NAME )," " )
87
+
88
+ /** Sets the `NAME` property.
89
+ */
90
+ def text_= (t : String ): Unit = peer.putValue(javax.swing.Action .NAME , t)
91
+
92
+ /** An alias for `text`. This is kept for backwards compatibility.
93
+ *
94
+ * @see [[text ]]
95
+ */
96
+ def title : String = text
97
+
98
+ /** An alias for `text_=`. This is kept for backwards compatibility.
99
+ */
100
+ def title_= (t : String ): Unit = text = t
89
101
90
102
/**
91
103
* None if large icon and small icon are not equal.
You can’t perform that action at this time.
0 commit comments