KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > navigator > ResourceNavigatorMessages


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.views.navigator;
12
13
14 /**
15  * Utility class which helps managing messages
16  * @since 2.0
17  * @deprecated These messages are not API and should not be referenced
18  * outside of this plug-in.
19  */

20 public class ResourceNavigatorMessages {
21     
22     private ResourceNavigatorMessages() {
23         // prevent instantiation of class
24
}
25
26     /**
27      * Returns the formatted message for the given key in
28      * the resource bundle.
29      *
30      * @param key the resource name
31      * @param args the message arguments
32      * @return the string
33      */

34     public static String JavaDoc format(String JavaDoc key, Object JavaDoc[] args) {
35         return key;
36     }
37
38     /**
39      * Returns the resource object with the given key in
40      * the resource bundle. If there isn't any value under
41      * the given key, the key is returned.
42      *
43      * @param key the resource name
44      * @return the string
45      */

46     public static String JavaDoc getString(String JavaDoc key) {
47         return key;
48     }
49 }
50
Popular Tags