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 239028
Collapse All | Expand All

(-)a/projectui/src/org/netbeans/modules/project/ui/SimpleTargetChooserPanelGUI.java (-1 / +9 lines)
Lines 179-185 Link Here
179
        }
179
        }
180
        putClientProperty ("NewFileWizard_Title", displayName);// NOI18N        
180
        putClientProperty ("NewFileWizard_Title", displayName);// NOI18N        
181
        if (template != null) {
181
        if (template != null) {
182
            final String baseName = isFolder ? LBL_folder_name() : LBL_SimpleTargetChooserPanelGUI_NewFilePrefix() + template.getName ();
182
            final String baseName;
183
            if (isFolder) {
184
                baseName = LBL_folder_name();
185
            } else {
186
                Object targetName = template.getAttribute("targetName");//NOI18N
187
                baseName = targetName instanceof String
188
                        ? (String) targetName
189
                        : LBL_SimpleTargetChooserPanelGUI_NewFilePrefix() + template.getName ();
190
            }
183
            if (documentName == null) {
191
            if (documentName == null) {
184
                documentName = baseName;
192
                documentName = baseName;
185
            }
193
            }

Return to bug 239028