summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-04-27 12:06:49 (EDT)
committerpelder2006-04-27 12:06:49 (EDT)
commit7143a8ff765866e7c151bebbff3c6fcd40c0665b (patch)
tree148c0b78f8963cff15faffc10e1c6340091cc2b9
parent5c01c9d02ab958e5a2a4ee7d404412847caaf140 (diff)
downloadorg.eclipse.jet-7143a8ff765866e7c151bebbff3c6fcd40c0665b.zip
org.eclipse.jet-7143a8ff765866e7c151bebbff3c6fcd40c0665b.tar.gz
org.eclipse.jet-7143a8ff765866e7c151bebbff3c6fcd40c0665b.tar.bz2
[138964] Externalize string
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.java2
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.properties1
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/java/AbstractJavaFileTag.java2
3 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.java
index 0838ecd..cc89c0a 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.java
@@ -37,6 +37,8 @@ public class JET2Messages extends NLS
NLS.initializeMessages(BUNDLE_NAME, JET2Messages.class);
}
+ public static String AbstractJavaFileTag_CouldNotWrite_UnknownSourceFolder;
+
public static String AbstractJavaFileTag_EmptyAttributeNotAllowed;
public static String AnyTag_IllegalParent;
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.properties b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.properties
index 6579ec6..d8ace57 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.properties
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/l10n/JET2Messages.properties
@@ -135,6 +135,7 @@ TraceRuntimeTags_LoopInitialized=loop initialized
TraceRuntimeTags_SkippingBody=skipping
TraceRuntimeTags_LoopFinished=finished loop
AbstractJavaFileTag_EmptyAttributeNotAllowed=The ''{0}'' attribute cannot be empty.
+AbstractJavaFileTag_CouldNotWrite_UnknownSourceFolder=Cannot write template result, as source folder could not be determined.
JavaActionsUtil_InvalidSourceFolder=Invalid Java source folder: ''{0}''
JavaActionsUtil_CannotFindSourceFolder=Unable to find Java source folder information for project {0} when searching for package {1}. This may not be a valid Java project.
JavaActionsUtil_RequiresAttrOrContainerTag=Tag must have a ''{0}'' attribute or be contained withn a {1} tag
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/java/AbstractJavaFileTag.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/java/AbstractJavaFileTag.java
index 066862d..2cabc7c 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/java/AbstractJavaFileTag.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/java/AbstractJavaFileTag.java
@@ -100,7 +100,7 @@ public abstract class AbstractJavaFileTag extends AbstractEmptyTag
}
else
{
- throw new JET2TagException("Cannot write template result, as source folder or package could not be determined.");
+ throw new JET2TagException(JET2Messages.AbstractJavaFileTag_CouldNotWrite_UnknownSourceFolder);
}
}