javacommons/utils/javasrc/com/nokia/mj/impl/rt/ui/RuntimeUiTexts.java
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    19 
    19 
    20 import com.nokia.mj.impl.utils.ResourceLoader;
    20 import com.nokia.mj.impl.utils.ResourceLoader;
    21 
    21 
    22 /**
    22 /**
    23  * Class defining RuntimeUi texts.
    23  * Class defining RuntimeUi texts.
    24  *
       
    25  * @author Nokia Corporation
       
    26  * @version 1.0
       
    27  */
    24  */
    28 public class RuntimeUiTexts
    25 public class RuntimeUiTexts
    29 {
    26 {
    30     /*** ----------------------------- PUBLIC ------------------------------ */
    27     /*** ----------------------------- PUBLIC ------------------------------ */
    31 
    28 
    32     public static final String OK = "secur_prompt_ok";
    29     public static final String OK = "secur_prompt_ok,prompt_ok";
    33     public static final String DETAILS_QUERY = "secur_error_details_message";
    30     public static final String DETAILS_QUERY = "secur_error_details_message,error_details";
    34 
    31 
    35     /**
    32     /**
    36      * Method for retrieving a text string with given id and no parameters.
    33      * Method for retrieving a text string with given id and no parameters.
    37      *
    34      *
    38      * @param aTextId id for the text string
    35      * @param aTextId id for the text string
    52      */
    49      */
    53     public static String get(String aTextId, Object[] aTextParameters)
    50     public static String get(String aTextId, Object[] aTextParameters)
    54     {
    51     {
    55         if (iRes == null)
    52         if (iRes == null)
    56         {
    53         {
    57             iRes = ResourceLoader.getInstance("javausermessages", "qtn_java_");
    54             iRes = ResourceLoader.getInstance(
       
    55                 "javausermessages,javaapplicationsecuritymessages",
       
    56                 "qtn_java_,txt_java_secur_button_");
    58         }
    57         }
    59         return iRes.format(aTextId, aTextParameters);
    58         return iRes.format(aTextId, aTextParameters);
    60     }
    59     }
    61 
    60 
    62     /*** ---------------------------- PROTECTED --------------------------- */
    61     /*** ---------------------------- PROTECTED --------------------------- */