Commit Graph

2596 Commits

Author SHA1 Message Date
samskivert a0e960449c When constructing a set with an array of values, copy and sort the array rather
than doing individual add()s.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2556 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-12 17:21:28 +00:00
ray.j.greenwell ee688973dd Don't freak out if we were constructed with an initial capacity of
zero (or a zero-length array) and we need to grow.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2555 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-08 21:50:17 +00:00
samskivert 2f7e060653 Added getParameterNames() to avoid distasteful interactions with untyped
Enumerations.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2554 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-06 20:38:05 +00:00
samskivert cbf7153a5c The base invoker no longer tracks units run.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2553 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-04 23:45:41 +00:00
samskivert f9f1d3a567 Configure all log handlers to use UTF-8 instead of the JVM's default encoding.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2552 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-04 23:44:34 +00:00
samskivert 75727e6daa Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2551 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-04 23:42:45 +00:00
samskivert 2247e7d0a0 Various cleanuppery: added containsKey(), deprecated contains(), added
getOrElse() and removeOrElse() and encourage their use in the class
documentation (I was tempted to deprecate get() and remove() but I think that's
going too far).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-05-04 00:26:44 +00:00
samskivert 5b1328e768 We never throw PersistenceException here.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2549 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-23 23:08:25 +00:00
ray.j.greenwell 1ba33b7e5d mdb suggests this approach.
Seems fine, even if this is the only method ever in this class.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2548 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-22 22:05:13 +00:00
ray.j.greenwell 7cfc28d378 A Callable that just returns some Value.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2547 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-22 21:44:49 +00:00
ray.j.greenwell 2b18264feb Small stupid optimization I had lying around.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-22 21:36:53 +00:00
samskivert 2b9952508c Oops. Can't do that.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2545 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-17 22:58:36 +00:00
samskivert a04031f38f Allow 1.6 source but continue to target 1.5 bytecode.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2544 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-17 22:50:48 +00:00
samskivert 262ad342ae No need for this to be JComponent, just Component will do (from Charlie).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2543 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-04-02 18:33:45 +00:00
samskivert 05204558eb Let's also add asList() doing Arrays.asList(IntListUtil.unbox()) is annoying.
This is not as efficient as it could be (it doesn't create a List backed by the
int[], instead it creates an ArrayList).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2542 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-25 23:41:43 +00:00
samskivert 830cf8de5c Added an unbox() method that take an Integer collection.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2541 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-25 23:37:06 +00:00
samskivert 0629367932 - Thread.dumpStack() -> log.warning(..., new Exception())
- Cleaned up a couple of incorrect javadoc references.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2540 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-24 18:50:29 +00:00
samskivert 44ad7fce50 As Charlie points out, we do still want to complain if you ask to load
inherited properties for a path that matches no properties files at all.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2539 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-16 21:14:41 +00:00
samskivert 86ab90e042 Nix Tomcat 3.3 bug workaround, use foreach in a couple of spots.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2538 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-13 22:43:28 +00:00
samskivert 19e6b9adf6 Varargification.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2537 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-13 22:40:08 +00:00
samskivert fdc60e29c6 Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2536 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-13 22:26:47 +00:00
samskivert 5266497ece Don't default to using inherited properties in Config as no one ever used that
and it's of dubious value anyway. I'd ditch ConfigUtil.loadInheritedProperties
entirely to protect future generations from this madness except we use it in
Nenya for loading inherited sound configuration.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2535 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-13 22:25:53 +00:00
samskivert 1fd549ddbb Added getBoolean() (from Dave).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2534 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-09 21:09:32 +00:00
samskivert 6013c50a50 Taint cleanup from Dave.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2533 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-03-05 00:23:20 +00:00
samskivert 19a8e22721 Allow the caller to get the raw md5 bytes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2532 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-17 18:56:47 +00:00
samskivert 2dde3d2417 Properly configure our optional RunQueue.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2531 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-13 18:27:12 +00:00
samskivert 4584b053e2 Make it possible to supply a RunQueue after the fact for callers who have a
RunQueue that might be null.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2530 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-13 18:26:48 +00:00
samskivert da5ac674e4 This may break things, but accidentally passing a null runqueue that you think
is not null results in extremely nefarious race condition bugs that are best
nipped in the bud.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2529 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-13 18:17:01 +00:00
samskivert 44e6f04ed1 Added convenience method for combining the output of multiple comparison
conditions.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2528 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-05 23:21:06 +00:00
par.winzell 1316f48499 Let DatabaseLiaisons know how to drop tables.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2527 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-02 16:19:55 +00:00
samskivert 08b327c9bf Beans/frank.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2526 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-01 23:43:45 +00:00
samskivert bb53933b74 Note when shutdown has been requested and refuse to accept further units from
that time, rather than from the time that the shutdown is actually processed.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2525 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-01 22:51:24 +00:00
samskivert bdd3f45d29 Widening, make _running volatile instead of synchronizing on the thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2524 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-02-01 22:49:49 +00:00
ray.j.greenwell 2eccc70c98 Patch from Dave Hoover to improve outlining when used with small text
and antialiasing.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2523 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-01-30 22:34:31 +00:00
andrzej@threerings.net 0a56f4f338 Added reverse method for Object arrays.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2522 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-01-29 01:01:36 +00:00
par.winzell 5f047c124c Make histogram resolution configurable. From Jamie.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2521 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-01-23 18:36:13 +00:00
samskivert fcdc097723 Check that we have our minimum dependencies and tell the builder how to get
them if we don't.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2520 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-01-23 12:20:46 +00:00
par.winzell e262fc29d9 Indexes are not really constraints. Primary key dropping is its own thing, too.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2519 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-01-08 22:48:52 +00:00
samskivert eeaa8be638 Fixed javadoc.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2518 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2009-01-08 22:13:30 +00:00
samskivert 0d0787348e Don't pop a disabled radial menu down when it's clicked. That makes it look
like we're taking the menu's action.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2517 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-29 22:57:56 +00:00
samskivert cc88420aa2 More widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2516 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-29 20:08:08 +00:00
samskivert 6b21917b25 Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2515 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-29 20:05:28 +00:00
samskivert 077b3be839 We need to configure antialiasing before getting our FRC.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2514 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 19:49:13 +00:00
samskivert 15cbab50b1 No longer need to special case text antialiasing here.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2513 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:56:20 +00:00
samskivert 409fe74196 Deprecated MultilineLabel.setAntiAliased(), made Label honor
SwingUtil.getDefaultTextAntiAliased(), tidied up some bits related to
SwingUtil.restoreAntiAliasing().


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2512 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:54:55 +00:00
samskivert 0f359f3f21 Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2511 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:45:43 +00:00
samskivert edb6f304e4 If text antialiasing is the desired defaul, honor it in LabelSausage.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2510 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:36:56 +00:00
samskivert e6740260c9 Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2509 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:34:19 +00:00
samskivert c5504d6857 Added getDefaultTextAntialiasing(), use it to configure the default for
MultilineLabel.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2508 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:33:26 +00:00
samskivert b7e85472f4 Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2507 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-12-18 01:29:32 +00:00