aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert von Massow2011-03-02 10:26:28 (EST)
committerSven Efftinge2011-03-02 11:46:55 (EST)
commitb7f3df0b6439d450d83636d861d604b4ce5ca57f (patch)
tree06cf75baae993f9aa0343f0ae75b15d646b8a0a7
parent1af553d0fb5a20ad820df1e873bb2fc27069277d (diff)
downloadorg.eclipse.xtext-b7f3df0b6439d450d83636d861d604b4ce5ca57f.zip
org.eclipse.xtext-b7f3df0b6439d450d83636d861d604b4ce5ca57f.tar.gz
org.eclipse.xtext-b7f3df0b6439d450d83636d861d604b4ce5ca57f.tar.bz2
New class wizard externalized messages
-rw-r--r--plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/Messages.java29
-rw-r--r--plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/wizards/messages.properties5
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
--- /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
--- /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