plugins/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/core/internal/validation/ValidatorPropMessages.java
author Eugene Ostroukhov <eugeneo@symbian.org>
Thu, 02 Sep 2010 15:18:58 -0700
changeset 484 f5df819c1852
parent 482 2973198ae2a9
permissions -rw-r--r--
Checkstyle was used to review coding conventions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     1
/**
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     2
 * Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies).
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     3
 * All rights reserved.
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     5
 * under the terms of the License "Eclipse Public License v1.0"
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     8
 *
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
     9
 * Initial Contributors:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    10
 * Symbian Foundation - initial contribution.
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    11
 * Contributors:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    12
 * Description:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    13
 * Overview:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    14
 * Details:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    15
 * Platforms/Drives/Compatibility:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    16
 * Assumptions/Requirement/Pre-requisites:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    17
 * Failures and causes:
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    18
 */
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    19
482
2973198ae2a9 Cleaned up unused code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
    20
package org.symbian.tools.wrttools.core.internal.validation;
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    21
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    22
import java.util.MissingResourceException;
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    23
import java.util.ResourceBundle;
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    24
482
2973198ae2a9 Cleaned up unused code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
    25
import org.symbian.tools.wrttools.Activator;
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    26
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    27
public final class ValidatorPropMessages {
482
2973198ae2a9 Cleaned up unused code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
    28
    private static final String BUNDLE_NAME = "org.symbian.tools.wrttools.core.internal.validation.messages"; //$NON-NLS-1$
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    29
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    30
    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    31
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    32
    private ValidatorPropMessages() {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    33
    }
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    34
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    35
    public static String getString(String key) {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    36
        try {
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    37
            return RESOURCE_BUNDLE.getString(key);
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    38
        } catch (MissingResourceException e) {
482
2973198ae2a9 Cleaned up unused code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
    39
            Activator.log(e);
484
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    40
            return '!' + key + '!';
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    41
        }
f5df819c1852 Checkstyle was used to review coding conventions
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
    42
    }
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff changeset
    43
}