| author | Robert von Massow | 2011-03-02 10:26:28 (EST) |
|---|---|---|
| committer | sefftinge | 2011-03-02 11:46:55 (EST) |
| commit | 0e36117a21cf08a1a71c5286fd9d954e1a58fe52 (patch) (side-by-side diff) | |
| tree | 97a601e1f12f4540ad67c7572901336ef899cc0f | |
| parent | e05c8d41bf50157c77ce3200bc7c5ccfd1b6269b (diff) | |
| download | org.eclipse.xtext-0e36117a21cf08a1a71c5286fd9d954e1a58fe52.zip org.eclipse.xtext-0e36117a21cf08a1a71c5286fd9d954e1a58fe52.tar.gz org.eclipse.xtext-0e36117a21cf08a1a71c5286fd9d954e1a58fe52.tar.bz2 | |
New class wizard externalized messages
2 files changed, 34 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/Messages.java b/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/Messages.java new file mode 100644 index 0000000..0cc56d0 --- a/dev/null +++ b/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/Messages.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2011 itemis AG (http://www.itemis.eu) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + *******************************************************************************/ +package org.eclipse.xtext.xtend2.ui.wizards; + +import org.eclipse.osgi.util.NLS; + +/** + * @author skomp - Initial contribution and API + */ +public class Messages extends NLS { + private static final String BUNDLE_NAME = "org.eclipse.xtext.xtend2.ui.wizards.messages"; //$NON-NLS-1$ + public static String ERROR_CREATING_PACKAGE; + public static String ERROR_CREATING_CLASS; + public static String XTEND_CLASS_WIZARD_DESCRIPTION; + public static String TYPE_EXISTS_0; + public static String TYPE_EXISTS_1; + static { + // initialize resource bundle + NLS.initializeMessages(BUNDLE_NAME, Messages.class); + } + + private Messages() { + } +} diff --git a/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/messages.properties b/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/messages.properties new file mode 100644 index 0000000..d92f932 --- a/dev/null +++ b/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/messages.properties @@ -0,0 +1,5 @@ +ERROR_CREATING_PACKAGE=Error creating package +ERROR_CREATING_CLASS=Error creating class +XTEND_CLASS_WIZARD_DESCRIPTION=Create a new Xtend class +TYPE_EXISTS_0=Type +TYPE_EXISTS_1=\ already exists |

