summaryrefslogtreecommitdiff
path: root/src/swing
Commit message (Collapse)AuthorAgeFilesLines
* Clean up standard/swing library by deprecating/moving code examplesSimon Ochsenreither2011-12-0719-865/+0
| | | | | | | | | Deprecate scala/xml/include/sax/Main.scala. Move scala/swing/test/* to docs/examples. Saves 160KB in scala-swing.jar. Fixes SI-4627.
* Offer warning when demonstrably non-side-effect...Paul Phillips2011-09-051-1/+0
| | | | | | | | Offer warning when demonstrably non-side-effecting expressions appear in statement position, which should be unintentional by definition. Threw in removal of six places with useless discarded expressions which the warning informed me about. No review.
* Removing the code which has been deprecated sin...Paul Phillips2011-08-1510-105/+31
| | | | | | | Removing the code which has been deprecated since 2.8.0. Contributed by Simon Ochsenreither, although deleting code is such fun one hesitates to call it a contribution. Still, we will. Closes SI-4860, no review.
* Reverting changes in r25491, it is Java 6 stuff.Ingo Maier2011-08-121-3/+5
|
* Added some missing methods to ListView.Ingo Maier2011-08-121-0/+5
|
* Allow null components in split pane. Closes #3929.Ingo Maier2011-08-121-4/+4
|
* Pulled up the SuperMixin that calls closeOperat...Ingo Maier2011-08-122-11/+11
| | | | | | Pulled up the SuperMixin that calls closeOperations for frames into window and let dialogs mix it in as well. Closes #3708.
* Added GraphicsConfiguration to window, frame, d...Ingo Maier2011-08-122-21/+19
| | | | | | Added GraphicsConfiguration to window, frame, dialog constructors. Closes #3853.
* Fixes typo in getter methods. Closes #4262.Ingo Maier2011-08-121-2/+2
|
* Fixes typo in setter method. Closes #4811.Ingo Maier2011-08-121-0/+3
|
* Applied patch by Gordon Tyler. Closes #4823.Ingo Maier2011-08-121-1/+4
|
* Install mouse moves listeners lazily.Ingo Maier2011-08-121-18/+27
|
* Following up on things that -Xlint told me, som...Paul Phillips2011-07-291-2/+2
| | | | | | | | | | | | | | | Following up on things that -Xlint told me, sometimes because Mr. Linty was being sensible and other times just to shut him up so we can hear better in the future. - made xml.Equality public because it occurs in public method signatures - made some actor classes with inaccessible-unoverridable methods final - eliminated a bunch of "dead code follows" warnings by deleting the dead code which really did follow - improved the reliability of warnings about inaccessible types For the changes in actors, review by phaller.
* Some minor scaladoc tweaks and deletion of inco...Paul Phillips2011-07-151-3/+3
| | | | | | Some minor scaladoc tweaks and deletion of incorrect scaladoc docs, no review.
* 3rd round of clean ups (see r25285, r25292)michelou2011-07-155-40/+33
|
* Adding some Sets/Maps to perRunCaches, and elim...Paul Phillips2011-07-144-16/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Adding some Sets/Maps to perRunCaches, and eliminating ambiguously named imports. Did a tour of the compiler adding a few longer-lived mutable structures to the per-run cache clearing mechanism. Some of these were not a big threat, but there is (almost) literally no cost to tracking them and the fewer mutable structures which are created "lone wolf style" the easier it is to spot the one playing by his own rules. While I was at it I followed through on long held ambition to eliminate the importing of highly ambiguous names like "Map" and "HashSet" from the mutable and immutable packages. I didn't quite manage elimination but it's pretty close. Something potentially as pernicious which I didn't do much about is this import: import scala.collection._ Imagine coming across that one on lines 407 and 474 of a 1271 file. That's not cool. Some poor future programmer will be on line 1100 and use "Map[A, B]" in some function and only after the product has shipped will it be discovered that the signature is wrong and the rocket will now be crashing into the mountainside straightaway. No review.
* Warning! Warning! Yes, that's what's in this co...Paul Phillips2011-06-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Warning! Warning! Yes, that's what's in this commit. Why are you panicking? Mostly new command line options: -Xlint // basically, the ones which aren't noisy Ywarn-all -Ywarn-dead-code Ywarn-inaccessible // try this one on the library: -it makes some good points Ywarn-nullary-override Ywarn-nullary-unit -Ywarn-numeric-widen Ywarn-value-discard Some accumulated motivations: The wontfix resolution of ticket #4506 indicates that "def foo" and "def foo()" are always going to be treated differently in some situations and the same in others without users having any way to fix it. Summary expressed in latest comment with which I agree (and quite sadly, given that I've done a lot of work to try to make them usable) is "avoid using structural types like the plague." But the least we can do is warn if you're using parentheses "wrong". I think it would be better if the warning about "def foo()" overriding "def foo" were an error instead. If we have to live with this... trait Me { def f(): Int } class A { def f: Int = 5 } class C extends A with Me { } // error: Int does not take parameters def f(x: C) = x.f() // compiles def f(x: Me) = x.f() // error: Int does not take parameters. Mmph, how can a method be // legal with parameter "Foo" and illegal with parameter "Foo with // Bar" ? def f(x: Me with C) = x.f() The warning about a method contains a reference to a type which is less accessible than the method itself is obviously to those who recall it a response to GenTraversable being private and appearing in flatMap's signature during the 2.9.0 RCs. It avoids warning in the case where the unnormalized type is inaccessible but the normalized version would be, but it could use further refinement.
* Reducing the sbt launcher footprint by eliminat...Paul Phillips2011-05-011-3/+2
| | | | | | | | | | | | Reducing the sbt launcher footprint by eliminating val references which go through the scala package object, since they lead to otherwise unnecessary classes becoming required at startup. Mostly this means library files with constructors like "Iterator.empty" or "Stream.continually" receive a direct import of that companion. The one slightly less than cosmetic change was moving the strange xml value "$scope" back into Predef, because otherwise I have to touch the xml code generation. No review.
* After having to update the code for someone els...Paul Phillips2011-04-301-1/+1
| | | | | | | After having to update the code for someone else, ran damarau levenshtein on trunk again. Patchwise, I guess correcting spelling errors in comments is about as safe as it gets. No review.
* I wrote a warning when nullary methods return U...Paul Phillips2011-04-286-8/+8
| | | | | | | | | | | | | | | I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community.
* Updated a bunch of @deprecated annotations to h...Paul Phillips2011-04-246-13/+13
| | | | | Updated a bunch of @deprecated annotations to have a version, no review.
* Added some null checks in swing.Paul Phillips2011-03-312-5/+5
| | | | | | | the input verifier is null should be "assume it verifies" not "assume it doesn't" but since I don't actually know anything about swing this guess could be wrong. Closes #3783, review by imaier.
* Emptiness check in swing, closes #1578 no review.Paul Phillips2011-03-311-1/+1
|
* And extempore's original plan carries the day: ...Paul Phillips2011-03-061-3/+3
| | | | | | | And extempore's original plan carries the day: null.## no longer throws an NPE. Took advantage of feature to simplify a bunch of sharp-sharp calculations. Closes #4311, no review.
* Updated copyright notices to 2011Antonio Cunei2011-01-2084-84/+84
|
* Who knew system was such a popular sentence end...Paul Phillips2011-01-181-1/+1
| | | | | | Who knew system was such a popular sentence ending choice. Fixes some doc comments caught up in the s/// net, no review.
* Imported sbt.Process into trunk, in the guise o...Paul Phillips2011-01-123-3/+3
| | | | | | | | | | | | | | | | | | | Imported sbt.Process into trunk, in the guise of package scala.sys.process. It is largely indistinguishable from the version in sbt, at least from the outside. Also, I renamed package system to sys. I wanted to do that from the beginning and the desire has only grown since then. Sometimes a short identifier is just critical to usability: with a function like error("") called from hundreds of places, the difference between system.error and sys.error is too big. sys.error and sys.exit have good vibes (at least as good as the vibes can be for functions which error and exit.) Note: this is just the first cut. I need to check this in to finish fixing partest. I will be going over it with a comb and writing documentation which will leave you enchanted, as well as removing other bits which are now redundant or inferior. No review.
* I'm wandering around trunk looking for slowness.Paul Phillips2010-12-201-4/+2
| | | | | | | | | | | | | | | | | are constant distractions which I've meant forever to fix anyway, such as the importing of collection.mutable._ (or any other package with lots of reused names.) Why is this relevant to performance? Well, var x = new HashSet[Int] What's that? What does 'x += 1' mean? These are questions we can all live without. There's almost nothing left which references HashSet or HashMap or Stack or other ambiguous classes without a qualifier: I can finish trunk but I can't keep it clean on my own. (Where should I be writing this stuff down, I wonder.) No review.
* Eliminating all possible warnings from trunk.Paul Phillips2010-12-111-4/+4
| | | | | | | one deprecation, one unchecked, and one "other", each of which volunteers no mechanism for suppression. (It would be nice to change this.) No review.
* again: relax access boundry check for overridin...Lukas Rytz2010-12-081-1/+1
| | | | | | again: relax access boundry check for overriding protected java members. review by eugenevigdorchik.
* Reverts previous commit: needs a new starr..Lukas Rytz2010-12-071-1/+1
| | | | | This reverts commit 99652fe553a1a5b0c551950e8178e867943a088f.
* follow up on fix #3946.Lukas Rytz2010-12-071-1/+1
|
* Mopping up after the deprecation of exit and er...Paul Phillips2010-12-052-2/+2
| | | | | | | | | | | | | | Mopping up after the deprecation of exit and error. It is decidedly non-trivial (at least for the IDE-impaired) to be completely sure of which error function was being called when there were about twenty with the same signature in trunk and they are being variously inherited, imported, shadowed, etc. So although I was careful, the possibility exists that something is now calling a different "error" function than before. Caveat programmer. (And let's all make it our policy not to name anything "error" or "exit" from here on out....) No review.
* close #3946.Lukas Rytz2010-12-031-1/+1
|
* Renaming files and inserting dummies to please ...Paul Phillips2010-07-011-15/+15
| | | | | | | | | | Renaming files and inserting dummies to please ant. Note to committers: whenever there is a source file which does not generate a classfile whose name and path exactly match the name and path of the source file, then ant will recompile the file every time it compiles anything. In this batch there were 7 such files, so any 1-char change meant an 8-file recompile. Someday we'll be rid of ant, but until then... no review.
* Altered a bunch of places which call hashCode t...Paul Phillips2010-05-211-1/+1
| | | | | | Altered a bunch of places which call hashCode to call ## instead. No review.
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-1284-84/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Fixed #3358.Ingo Maier2010-05-0511-47/+62
|
* added missing SuperMixinsIngo Maier2010-04-2321-24/+29
|
* Fixed #3258Ingo Maier2010-04-132-8/+4
|
* Fixed #3257Ingo Maier2010-04-061-2/+2
|
* As a brief diversion from real work, implemente...Paul Phillips2010-04-062-3/+3
| | | | | | | | | As a brief diversion from real work, implemented Damerau–Levenshtein and ran it on trunk to elicit obvious misspellings. Unfortunately they're mostly in places like compiler comments which real people never see, but I fixed them anyway. All those English Lit majors who peruse our sources are sure to be pleased. No review.
* Fixed #2242. No review.Ingo Maier2010-03-283-12/+12
|
* Fixed #3219. No review.Ingo Maier2010-03-281-1/+1
|
* Fixed #2753. No review.Ingo Maier2010-03-281-5/+7
|
* Fix for #2980. No review.Ingo Maier2010-03-282-3/+12
|
* Fixed #2803.Ingo Maier2010-03-285-7/+15
|
* Fixed #3090Ingo Maier2010-03-282-5/+6
|
* Some minor changes in scala.swing.* which I was...Paul Phillips2010-03-2112-99/+95
| | | | | | | | | | Some minor changes in scala.swing.* which I was glancing through because of #3196. I noticed the Font object was in package scala instead of scala.swing, which looks sure to be a mistake (an easy one to make, and one others have made as well, because we're not entirely used to package objects.) I didn't want to accidentally ship a scala.Font so I moved it into swing. Review by imaier.
* Fix for #3084Ingo Maier2010-02-231-2/+2
|