Commit Graph

1459 Commits

Author SHA1 Message Date
ray ccd1e2a278 Added a note about one known weakness that arises from the wonderful complexity of asynchronous execution.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1555 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:53:39 +00:00
ray 77f9c0fa11 The great Interval revamp. Cleaner, better, easier to use.
There may be chapter 17 issues, but I'm fairly certain that if there are we can iron those out without changing the API.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1554 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:18:23 +00:00
ray 15bff32e71 Changed RunQueue to be called BasicRunQueue.
RunQueue is now an interface that is very simple- it serially runs Runnables.
Removed Invoker.ResultReceiver, the invoker now takes a RunQueue.
The method to post a Runnable to RunQueue is called postRunnable(), rather
than the legacy postUnit(). postUnit() is the method name of the Invoker
to post Invoker.Unit objects, and I just figured it was better to keep those
distinct, since an Invoker.Unit is also a Runnable, it could be very easy
to post an Invoker.Unit to the wrong thing if not careful.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1553 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:17:06 +00:00
ray f9b876998d Bye bye, useless redundant code.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1552 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 00:01:19 +00:00
mdb a495745c67 Yay! Yet another change to the password system. This time we're switching
entirely from old-and-busted crypt() to the new hotness MD5. This allows
us to interoperate cleanly with our soon-to-be new forum system which MD5
encodes a user's password before it ever leaves the web browser. Those
security conscious little devils.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1551 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-18 02:33:10 +00:00
mdb 37858624b8 Further magic to support loading Velocity templates from the file system
during webapp development.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-18 01:01:44 +00:00
ray 2d1e549454 Fixed minor layout weirdness with GroupLayout- if stretching, the size
of the stretchy components was computed as the maximum size of all
the components, even the fixed ones, and they already have their size
accounted for.
Changed to also track the maximum size of the free components and use that
instead.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1549 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-15 03:28:08 +00:00
mdb 28d4dd8be3 Wrote a log formatter for the built-in Java logging that formats things
more readably and concisely.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1548 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 22:04:27 +00:00
samskivert@gmail.com 2086cc43cb Fixed bogosity.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1547 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 22:04:00 +00:00
ray 83684deb5e Fire a property change event when we remove a configuration value.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 02:40:56 +00:00
ray 01c77d204d Allow the removal of a configuration value.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1545 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 02:34:53 +00:00
ray ae896e9b5b Also don't choke expanding a zero size array.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1544 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-13 06:43:50 +00:00
ray 11c7589db5 Don't choke trying to accomodate when the initial array size was 0.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1543 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-13 06:42:53 +00:00
mdb 058aa86400 Provide a sensible default resource loader for applications which don't
need the over-engineered per-site-resource-loading system.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1542 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-10 23:50:26 +00:00
ray 09e1634711 Support long[] values.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1541 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-09 01:33:43 +00:00
ray 5777070d57 Added parseLongArray().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1540 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-09 01:33:33 +00:00
mdb 8cd5ea5f0d Allow an application to get in on the Velocity configuration process.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1539 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-08 01:46:54 +00:00
samskivert@gmail.com 51bcd06a15 Code bloat! The functionality of this class could be implemented fairly
easily in java 1.5 by using a ThreadPoolExecutor with 1 thread in the
pool and a special queue implementation that merged like entries,
but we want this special functionality now.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1538 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-06 21:58:00 +00:00
mdb 19fc217b07 A (fairly) general purpose implementation of Dijkstra's shortest path
algorithm.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1537 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-03 00:51:03 +00:00
mdb 8652a7e749 A bridge between samskivert's (old old old) logging facilities and Java's
(new new new) built-in logging system.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1536 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-27 18:07:58 +00:00
mdb 3cf1a564d1 A LGPL header to add to source files in this project.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1535 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-27 18:07:22 +00:00
mdb 6c65b9877a Fixed formatting.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1534 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-27 06:55:00 +00:00
mdb 64b8b1ab9f Initialize velocity in the proper way.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1533 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-26 22:57:59 +00:00
mdb 6cc7786aa6 Moved unStudlyName() into StringUtil from where other deserving callers
can make use of it.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1532 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:34:01 +00:00
mdb 5ec20fe9d9 Oops, we meant for that to be static.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1531 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:08:34 +00:00
mdb b12839560b A utility for creating a VelocityEngine that's all set up to be used from
within a tool in a sensible manner (loading templates from the classpath,
not logging boatloads of informational messages, not complaining about a
non-existent "macro library").


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1530 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:07:16 +00:00
mdb 7ede7ff62e Having the context path around always will help us to avoid ever hard
coding it.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1529 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-19 17:36:47 +00:00
mdb 2618f83f52 No more JAVA_LIBS; added requirement for commons-logging which is now
needed by commons-digester.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1528 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-17 23:11:21 +00:00
ray b2de8370a1 While poking around I noticed that the remove implementation had a minor
inefficiency in that if the first record in a chain did not match it ended
up checking it once more prior to moving on to the next record in the chain.
Cleaned up to be similar to HashIntMap's remove implementation.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1527 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-11 22:14:09 +00:00
ray 1da24589d8 - Added the ability to only display a subset of fields.
- Renamed the methods for manipulating specific elements of the list
  of objects being edited to have the suffix "Datum" instead of "Data".
- Added addDatum() and another version of removeDatum().


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1526 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-06 01:58:33 +00:00
andrzej b5e23513ab Re-fixed typo, oh.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1525 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-02 23:59:45 +00:00
andrzej 83c2e6908a Added getTextColor and getAlternateColor methods to Label.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1524 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-02 23:30:51 +00:00
mdb 1d0f058a49 Cope with a null list in ListUtil.size().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1523 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-02 23:07:16 +00:00
ray 6513222d5a Throw a NullPointerException if anyone tries to do anything with null
elements in the list. I do this because null elements are incompatible
with the implementation details of these utility methods. There were only
two related pieces of code in all our projects that used the behavior
of indexOf(null) and those now use the new indexOfNull() method.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1522 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-25 18:51:01 +00:00
samskivert@gmail.com a2d3877796 Upon further thought- nobody should be calling SortableArrayList.contains()
with null elements anyway because SortableArrayList just plain does
not support nulls. That's fine, Collections have the option of suporting
null elements, but let's just have the underlying implementation
(ListUtil) throw a NPE if needed.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1521 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-25 18:42:38 +00:00
ray 42f7a5b962 A slightly more subtle version of contains() so that it does the
right thing if null is passed in.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1520 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-08-25 06:55:08 +00:00
mdb de5c77ca81 Some cleanups.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1519 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:54:21 +00:00
mdb c244c9b430 We're going to need to use object equality here.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1518 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:44:28 +00:00
mdb 121e104c5b We want to use equals() here, as Ray points out.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1517 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:41:05 +00:00
mdb 268226626e More ...Equal() -> ...() and ...() to ...Ref().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1516 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:35:39 +00:00
mdb 7d14559875 ListUtil.containsEqual() -> ListUtil.contains()
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1515 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:26:30 +00:00
mdb 34de8180e2 ListUtil.contains() -> ListUtil.containsRef()
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1514 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:21:21 +00:00
mdb 2e7b253b90 Return the action listener added in case the caller later wants to remove it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1513 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-22 23:52:54 +00:00
mdb 33d50bd4e5 Fixed a bunch of deprecated usages.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1512 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-22 17:27:53 +00:00
ray 4de3c378a3 Harmless casts to make compiling in jdk1.5 happy.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1511 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-13 00:17:39 +00:00
samskivert@gmail.com 962ebeec53 Modified implementation of equals() so that it's quicker when the two
references point to the same object.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1510 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-30 23:49:36 +00:00
ray d2875aea5a Arrgh!! If it's a popup that is being removed, don't remove ALL popups.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1509 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-29 23:03:26 +00:00
ray 130f67aa04 Added some new constructors.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1508 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-29 02:19:36 +00:00
ray 6a0f89d645 Added lookupUsersByEmail() to look up all user records for users that
match the specified email address.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1507 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-25 01:52:17 +00:00
mdb b34c1a3265 Let's get crazy convenient!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1506 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-23 16:55:11 +00:00