This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
em.annotate(exc, msg);
}
em.notify(exc);
em.notify(ErrorManager.USER, exc);
LBL_loader_display_name=Loader
MSG_renameError=This object cannot be renamed from {0} to {1}.
MSG_NotValidName=Cannot give {0} an empty name.
import java.beans.*;
import java.io.*;
import java.lang.reflect.InvocationTargetException;
import java.text.MessageFormat;
import java.util.Enumeration;
import java.util.Set;
import java.util.HashSet;
* @exception IOException if an error occurs
*/
public final void rename (final String name) throws IOException {
if (name != null && name.trim ().length ()==0) {
IllegalArgumentException iae = new IllegalArgumentException (this.getName ());
String msg = MessageFormat.format (NbBundle.getMessage (DataObject.class,
"MSG_NotValidName"), new String[] {getName ()}); // NOI18N
ErrorManager.getDefault ().annotate (iae, msg);
throw iae;
String oldName;
final FileObject[] files = new FileObject[2]; // [old, new]