Bug 140542 label can't be displayed without resource file or unmatched key
Steps to reproduce: 1.New a report, add a lable with text "aaa" 2.Add a resource file for the report, set key to "key1", value to "actuate", apply the value to the label 3.Clear the resource file in Property Editor->General->Resource File (or change the key to "abc") 4.Preview the report Expected result: 1.Display label text "aaa" on preview or 2.Give a warning message to say resource file is not found or unmatched key Actual result: Nothing displays on preview
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/BundleHelper.java
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.model.core;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.PropertyResourceBundle;
import java.util.Set;
import org.eclipse.birt.report.model.i18n.ThreadResources;
import com.ibm.icu.util.ULocale;
/**
 * Helper class to deal with user-defined message files. The message files is
 * stored out of the design.