| /**
|
| * Copyright (c) 2013-2015 Angelo ZERR.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License 2.0
|
| * which accompanies this distribution, and is available at
|
| * https://www.eclipse.org/legal/epl-2.0/
|
| *
|
| * SPDX-License-Identifier: EPL-2.0
|
| *
|
| * Contributors:
|
| * Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
|
| */ |
| package org.eclipse.wst.json.core.internal;
|
|
|
| import java.util.MissingResourceException;
|
| import java.util.ResourceBundle;
|
|
|
| import org.eclipse.osgi.util.NLS;
|
|
|
| /**
|
| * Messages for JSON Core Plugin.
|
| *
|
| */
|
| public class JSONCoreMessages extends NLS {
|
|
|
| private static final String BUNDLE_NAME = "org.eclipse.wst.json.core.internal.JSONCoreMessages";//$NON-NLS-1$
|
|
|
| private static ResourceBundle fResourceBundle;
|
|
|
| public static String Missing_start_array;
|
| public static String Missing_end_array;
|
| public static String Missing_start_object;
|
| public static String Missing_end_object;
|
|
|
| public static String Catalog_entry_uri_not_set;
|
| public static String Catalog_resolution_null_catalog;
|
| public static String Catalog_resolution_malformed_url;
|
| public static String Catalog_resolution_io_exception;
|
|
|
| static {
|
| // load message values from bundle file
|
| NLS.initializeMessages(BUNDLE_NAME, JSONCoreMessages.class);
|
| }
|
|
|
| private JSONCoreMessages() {
|
| // cannot create new instance
|
| }
|
|
|
| public static ResourceBundle getResourceBundle() {
|
| try {
|
| if (fResourceBundle == null) {
|
| fResourceBundle = ResourceBundle.getBundle(BUNDLE_NAME);
|
| }
|
| } catch (MissingResourceException x) {
|
| fResourceBundle = null;
|
| }
|
| return fResourceBundle;
|
| }
|
| }
|