/* 
 * Copyright (c) 1997
 * The Open Group, Inc. 
 *
 * Permission to use, copy, modify, and distribute this software and 
 * its documentation for any purpose and without fee is hereby granted, 
 * provided that the above copyright notice appears in all copies and 
 * that both the copyright notice and this permission notice appear in 
 * supporting documentation, and that the name of ("TOG") or The Open  
 * Group not be used in advertising or publicity pertaining to 
 * distribution of the software without specific, written prior permission. 
 *  
 * TOG DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
 * FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TOG BE LIABLE FOR ANY 
 * SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 
 * ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING 
 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE 
 *
 *
 * TOG Research Institute MoaJar (unencumbered) 3/20/1997
 */

$$$Rename

The Rename menu item in the File Menu changes the name of
the selected file.

Very often, after including a class file, the file must be renamed.
This is because the name of the package for that class must be part
of the file name in the JAR file.

For example, class Bucket in package tog.moa.jar must be renamed 
tog/moa/jar/Bucket.class.

Another case where rename is particularly useful is after a class
is instantiated. An instance of class java.lang.String is always
given a default name of java/lang/String.ser.

Changing the file extension is not always a good idea. The Edit menu
item makes use of the .class and .ser file extensions; the Instantiate
menu item uses the .ser file extension.

Note that once a class has been used, renaming the class file does 
not remove the old Class object. This can only be done by saving and 
then reopening the JAR.