Alexander DEJANOVSKI wrote:
Wouter de Vaal wrote:


Is it possible to rename a collection that already exists and is filled
with data ?

No. The trick we used in our project is to put a presentable name of the collection in MetaData and then let the collection real name be a generated unique one.

Regards,
Wouter

So according to what I understand, it would be possible to change the presentable name of the collection by changing it in the metadata ?
Since the name used to access the collection is the one stored in the metadata, I want to change this one.
If it is indeed possible, would you mind showing me a piece of code that does it ?


Thanks, that would really help out here !!

I don't have any code handy, but the way I've done this is to create a ListRenderer class that accepts Collection IDs, then sets up a Thread to query the database for each Collection's metadata, changing the displayed ID to a localized name taken from the metadata as each Thread finishes.

This is just done by adding a renderer to the JList (or whatever
is displaying the collection name).

Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

  It may have been the provocative title of a book and then a movie
  adaptation, but Prozac Nation is no longer just a notion within
  the realm of entertainment, nor even a living reality only among
  those actually taking the drug. The 24 million prescriptions in
  the UK (in an adult population of 42.5 million) have now entered
  the nation's water supply in significant but undisclosed amounts.
  http://news.bbc.co.uk/1/hi/health/3545684.stm



Reply via email to