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.
/** our data folder */
private DataFolder df;
private static final int DISPLAY_NAME_LENGTH = 30;
private static final String DISPLAY_NAME_PREFIX = "...";
/**
* @param data folder to work on
String s = formatRoot.format (
new Object[] {fs.getDisplayName (), fs.getSystemName ()}
);
int idx = s.length();
if (idx > DISPLAY_NAME_LENGTH) {
s = DISPLAY_NAME_PREFIX + s.substring(idx - (DISPLAY_NAME_LENGTH -
}
setDisplayName (s);