SharedStyleHandle handle = (SharedStyleHandle) iterator.next( );  if ( handle.getName( ).equals( name ) ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "GeneralPreferencePage.errorMsg.duplicate.styleName" ), Messages.getString( "GeneralPreferencePage.label.styleName" ) + ": \"" + name + "\" " + Messages.getString( "GeneralPreferencePage.label.choose.different.name" ) ); return false; }
ExceptionHandler.openErrorMessageBox( Messages.getString( "GeneralPreferencePage.errorMsg.duplicate.styleName" ), Messages.getString( "GeneralPreferencePage.label.styleName" ) + ": \"" + name + "\" " + Messages.getString( "GeneralPreferencePage.label.choose.different.name" ) ); return false;
	private boolean checkName( String name )	{		if ( ( (StyleHandle) model ).isPredefined( )				&& selectedType == TYPE_CUSTOM )		{			Iterator iterator = DEUtil.getStyles( );			while ( iterator.hasNext( ) )			{				SharedStyleHandle handle = (SharedStyleHandle) iterator.next( );				if ( handle.getName( ).equals( name ) )				{					ExceptionHandler.openErrorMessageBox( Messages.getString( "GeneralPreferencePage.errorMsg.duplicate.styleName" ), //$NON-NLS-1$							Messages.getString( "GeneralPreferencePage.label.styleName" ) //$NON-NLS-1$									+ ": \"" //$NON-NLS-1$									+ name									+ "\" " //$NON-NLS-1$									+ Messages.getString( "GeneralPreferencePage.label.choose.different.name" ) ); //$NON-NLS-1$					return false;				}			}		}		return true;	}