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.

View | Details | Raw Unified | Return to bug 38051
Collapse All | Expand All

(-)RootFolderNode.java (+7 lines)
Lines 51-56 Link Here
51
    /** our data folder */
51
    /** our data folder */
52
    private DataFolder df;
52
    private DataFolder df;
53
    private static final int DISPLAY_NAME_LENGTH = 30;
54
    private static final String DISPLAY_NAME_PREFIX = "...";
53
    /**
55
    /**
54
    * @param data folder to work on
56
    * @param data folder to work on
Lines 137-142 Link Here
137
        String s = formatRoot.format (
139
        String s = formatRoot.format (
138
                       new Object[] {fs.getDisplayName (), fs.getSystemName ()}
140
                       new Object[] {fs.getDisplayName (), fs.getSystemName ()}
139
                   );
141
                   );
142
        int idx = s.length();
143
        if (idx  > DISPLAY_NAME_LENGTH) {
144
            s = DISPLAY_NAME_PREFIX + s.substring(idx - (DISPLAY_NAME_LENGTH -
145
        }
146
140
        setDisplayName (s);
147
        setDisplayName (s);
141
    }
148
    }

Return to bug 38051