@@ -268,7 +268,7 @@ private void applyChanges() {
268268 if (defaulted .contains (stringListEntry .getKey ())) {
269269 // This type should be reverted to its default setup.
270270 //System.out.println("Defaulting: "+typeName);
271- String nm = StringUtil .nCase (stringListEntry .getKey ());
271+ String nm = StringUtil .capitalizeFirst (stringListEntry .getKey ());
272272 BibtexEntryType .removeType (nm );
273273
274274 updateTypesForEntries (nm );
@@ -294,8 +294,8 @@ private void applyChanges() {
294294 if (changesMade ) {
295295 //System.out.println("Updating: "+typeName);
296296 CustomEntryType typ = biblatexMode ?
297- new CustomEntryType (StringUtil .nCase (stringListEntry .getKey ()), reqStr , optStr , opt2Str ) :
298- new CustomEntryType (StringUtil .nCase (stringListEntry .getKey ()), reqStr , optStr );
297+ new CustomEntryType (StringUtil .capitalizeFirst (stringListEntry .getKey ()), reqStr , optStr , opt2Str ) :
298+ new CustomEntryType (StringUtil .capitalizeFirst (stringListEntry .getKey ()), reqStr , optStr );
299299
300300 BibtexEntryType .addOrModifyCustomEntryType (typ );
301301 updateTypesForEntries (typ .getName ());
@@ -329,14 +329,14 @@ private void typeDeletion(String name) {
329329 + "type will be declared "
330330 + "typeless. Continue?" ),
331331 Globals .lang ("Delete custom format" ) +
332- " '" + StringUtil .nCase (name ) + '\'' , JOptionPane .YES_NO_OPTION ,
332+ " '" + StringUtil .capitalizeFirst (name ) + '\'' , JOptionPane .YES_NO_OPTION ,
333333 JOptionPane .WARNING_MESSAGE );
334334 if (reply != JOptionPane .YES_OPTION ) {
335335 return ;
336336 }
337337 }
338338 BibtexEntryType .removeType (name );
339- updateTypesForEntries (StringUtil .nCase (name ));
339+ updateTypesForEntries (StringUtil .capitalizeFirst (name ));
340340 changed .remove (name );
341341 reqLists .remove (name );
342342 optLists .remove (name );
0 commit comments