ray
326c1b2ce1
listFiles() can return null if the File its called on is not a directory,
...
or if any unspecified error or hiccup occurs within the acidic innards of
the JVM. If that's the case, we probably will fail deleting the directory
itself below these lines, but it's better than throwing a NPE and
sticking a fork in everything.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1736 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-02 22:56:01 +00:00
mdb
8892561d6a
We use a modified version of Velocity, so we need to check that in here.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1735 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-02 22:25:30 +00:00
ray
d6716b1a43
From Mike Thomas: IntIntMap now grows and shrinks.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1734 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-23 02:21:16 +00:00
ray
07800d1662
- There is a standard Comparator for reversing Comparables, so let's use
...
that everywhere; deprecated Comparators.REVERSE_COMPARABLE.
- Added a note that the ReversingComparator is old news, too, but we're not
ready to go 1.5 everywhere...
- Added Comparators.LEXICAL_CASE_INSENSITIVE which treats all sorted
objects as Strings that are sorted case insensitively.
- Have TableSorter use standard Comparators.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1733 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-11 01:17:56 +00:00
mdb
a2925e8ab6
Give applications a chance to perform global access control and to issue
...
specific HTTP errors.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1732 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-10 17:43:04 +00:00
mdb
ff96d731b8
blank() -> isBlank().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1731 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-09 04:01:30 +00:00
ray
a77afb08f2
Added isBlank(), deprecated blank().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1730 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-08 23:57:12 +00:00
mdb
759d8c3e75
Clarify the situation a bit.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1729 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-05 01:57:17 +00:00
mdb
e65d89b3fd
gotConnection() may be called before our constructor is called (indeed it is),
...
so we need to create or update our session as appropriate therein.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1728 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-05 01:54:42 +00:00
mdb
b92cd64617
Oops, we'll be needing these.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1727 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 23:03:41 +00:00
samskivert@gmail.com
03344a7938
Added a method to make it easier to insert schema migration calls.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1726 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 23:02:56 +00:00
ray
e6fe41e4a7
Put a space to the right of all right-aligned numbers in tables.
...
Strings are left-aligned, and when the two are next to each other it can
look bad.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1725 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 18:39:10 +00:00
mjohnson
ee1eb9000e
New version of TableSorter, modified with the createSortedTable static
...
method.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1724 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 02:26:32 +00:00
mdb
6518fe1b43
Javadoc fixes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1723 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-03 22:03:11 +00:00
mdb
fa06b0b11c
Added a method for generating an always up to date copyright blurb. This is
...
only useful for webapps, but it's one less thing to update every damned year.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1722 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-26 01:12:41 +00:00
ray
237618f884
Allow menu items to call back for re-layout, don't submit a null command.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1721 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-20 09:47:55 +00:00
mdb
ebb34d206d
Added a getParameter() that returns a default string if the desired parameter
...
is not specified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1720 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-18 18:50:33 +00:00
ray
ba033e20ad
Best to make sure it compiles before checking it in.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1719 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-12 21:07:21 +00:00
ray
7a73ee5fb1
Define a handy-dandy public static RunQueue implementation that posts
...
Runnables to the AWT dispatch thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1718 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-08-25 08:06:09 +00:00
ray
9ad9d4deb4
Rather than define a whole public class, publish an interface:
...
Interval.Runnable, that can be used to retrieve the Interval from the
java.lang.Runnable posted on a RunQueue.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1717 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-10-12 20:59:37 +00:00
mdb
5aec1c158f
A ResultListener created for easy listener chaining.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1716 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-28 03:04:10 +00:00
ray
a4cd2d533b
Added a close() method so that we can explicitely close free the resources
...
used internally to the Cursor without having to read each object.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1715 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-13 02:16:03 +00:00
ray
d793e90aec
Changed something that bugged me a bit: there can be only one Constraints
...
that is FIXED, force everyone to use that. Rejiggered some stuff to
potentially half the number of HashMap lookups done during layout for
each component in our target container.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1714 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-10 01:13:50 +00:00
ray
775310f1a3
Actually wired up the weights of Constraints. They are only used
...
if the layout policy is STRETCH. It would probably also make sense to
make them work with EQUALIZE, but that would require a few more changes.
(If the maximum width component had a weight of 2 you could set the
baseline width to half that.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1713 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-09 22:39:12 +00:00
mdb
65c34abe89
Created a utility class that allows an action to be taken only after a set
...
of conditions have been met. If anyone has a better suggestion for a name,
I'm all ears.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1712 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-08 18:28:01 +00:00
mdb
dd02edc8e8
Preserve 1.4 compatibility.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1711 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-08 03:04:00 +00:00
mdb
7394f64138
Added stringCode().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1710 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-08 01:17:34 +00:00
mdb
2e35d2d8f1
Restructure things so that we can get our hands on the actual Interval
...
derivation that is being posted to a RunQueue for profiling and reporting
purposes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1709 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-09-06 18:18:17 +00:00
mdb
a043d07b73
Fix bug that can occur when stripping off the prefix from the package of a
...
qualified class name.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1708 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-26 22:31:09 +00:00
mdb
f26d3214e2
Avoid creating a new array when we notify our observers in SAFE_IN_ORDER
...
mode unless our list has grown since we last issued a notification.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1707 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 22:10:18 +00:00
samskivert@gmail.com
a0f67d5721
Made remove() work in our Interator.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1706 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:35:41 +00:00
mdb
abe8dcef25
Synced up the spelling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1705 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:23:21 +00:00
ray
9af57bbc1a
Added synchronizedIntSet().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1704 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:20:44 +00:00
ray
3283e99310
Oh, IntIntMap, you are the retarded stepchild of the samskivert.util package.
...
You don't implement Map, you don't grow or shrink...
but at least now you return Interators and have a proper entrySet() method.
(Added a note that maybe someday we should fix it up more.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1703 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 20:04:13 +00:00
ray
6bdd153cba
Added a SynchronizedIntSet which must back the intKeySet() method of
...
a SynchronizedHashIntMap.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1702 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 19:55:10 +00:00
ray
51429770cb
- Added a method to IntMap: intKeySet(), which returns an IntSet of
...
the keys in the map, which may be Interated over, etc.
- Moved the Entry definition into IntMap where it always should have been,
I think originally I had it in HashIntMap so that the extra annoying import
wasn't necessary. Added an empty subinterface to HashIntMap for backwards
compatability.
- Implemented an optimized putAll() in HashIntMap when adding other IntMaps.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1701 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 18:29:53 +00:00
ray
8e050fa4bb
Added "Interator" and plugged in some quick usage. I'll add more soon.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1700 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 17:49:32 +00:00
mdb
16c5b7e727
We call MessageUtil.escape in the Narya i18n code but not here where it is
...
also needed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1699 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-25 01:48:37 +00:00
ray
0d73e38193
It's surely faster to add all the elements and then sort, which is why
...
the class is SortableArrayList rather than SortedArrayList (which would
just always insert sorted in add()).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1698 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-16 17:39:49 +00:00
ray
9f00804edf
Spelling consistency.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1697 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 23:00:57 +00:00
ray
62133d2232
- Nixed CompoundIterator, made Collections.getMetaIterator() handle
...
elements in the passed in collection that are Iterators or Collections.
- Nixed SortedIterator, added variants of getSortedIterator() to
Collections.
- Also added getUnmodifiableIterator() and getRandomIterator() to
Collections.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1696 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 22:53:00 +00:00
andrzej
7cc4a56638
Allow null values in HashIntMap.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1695 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-15 20:51:13 +00:00
mdb
4ecc51e922
Added simpleFormat().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1694 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-09 07:30:18 +00:00
ray
ae1df7e879
Implemented clear() rather than inheriting the *extremely* inefficient
...
clear() from AbstractList.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1693 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-09 01:54:16 +00:00
mdb
8fd757c1e4
Add a version of shortClassName that takes the class name directly.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1692 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 23:55:00 +00:00
elizabeth
f19198cbce
Tightened up restrictHTML regexes to prevent <\!-- or unclosed " html defacement
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1691 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 23:12:59 +00:00
mdb
f359b77ff5
Don't try to rollback if the failure resulted in the connection being
...
closed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1690 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-08 17:14:56 +00:00
elizabeth
b81f4113fc
fixed missing call to JDBCUtil.escape
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1689 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-07 21:54:57 +00:00
mdb
223cdd8274
We need to escape \ as well as '.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1688 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-07 21:51:30 +00:00
mdb
aa74625b0a
Switched to different structure for reporting item removal per Ray's
...
suggestion. This allows proper handling of value classes that cannot be
made to implement an interface or extended or otherwise fiddled with.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1687 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-08-05 20:23:37 +00:00