Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
-
Property svn:mime-type set to
text/plain
|
File size:
1.2 KB
|
Line | |
---|
1 | /******************************************************************************* |
---|
2 | * Copyright (c) 2000, 2005 IBM Corporation and others. All rights reserved. |
---|
3 | * This program and the accompanying materials are made available under the |
---|
4 | * terms of the Eclipse Public License v1.0 which accompanies this distribution, |
---|
5 | * and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: |
---|
6 | * IBM Corporation - initial API and implementation |
---|
7 | ******************************************************************************/ |
---|
8 | package com.framsticks.framclipse.editors; |
---|
9 | |
---|
10 | import java.util.MissingResourceException; |
---|
11 | import java.util.ResourceBundle; |
---|
12 | |
---|
13 | public class FramclipseEditorMessages { |
---|
14 | |
---|
15 | private static final String RESOURCE_BUNDLE = "com.framsticks.framclipse.editors.FramclipseEditorMessages";//$NON-NLS-1$ |
---|
16 | |
---|
17 | private static ResourceBundle resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE); |
---|
18 | |
---|
19 | private FramclipseEditorMessages() { |
---|
20 | } |
---|
21 | |
---|
22 | public static String getString(String key) { |
---|
23 | try { |
---|
24 | return resourceBundle.getString(key); |
---|
25 | } catch (MissingResourceException e) { |
---|
26 | return "!" + key + "!";//$NON-NLS-2$ //$NON-NLS-1$ |
---|
27 | } |
---|
28 | } |
---|
29 | |
---|
30 | public static ResourceBundle getResourceBundle() { |
---|
31 | return resourceBundle; |
---|
32 | } |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.