summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-05-17 11:06:38 (EDT)
committerpelder2006-05-17 11:06:38 (EDT)
commit6fc0c446e01d58bda7b9244e4ec62125798ffe55 (patch)
tree0a866bbadf874bdba6ec1a014fcd2fd6a5d71324
parent47fead1f3464396f62317347ba2aee5e878be52b (diff)
downloadorg.eclipse.jet-6fc0c446e01d58bda7b9244e4ec62125798ffe55.zip
org.eclipse.jet-6fc0c446e01d58bda7b9244e4ec62125798ffe55.tar.gz
org.eclipse.jet-6fc0c446e01d58bda7b9244e4ec62125798ffe55.tar.bz2
[142233] Use getLocation() result if getRawLocation() returns null.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/workspace/WorkspaceContextExtender.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/workspace/WorkspaceContextExtender.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/workspace/WorkspaceContextExtender.java
index d3cc010..1075d45 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/workspace/WorkspaceContextExtender.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/workspace/WorkspaceContextExtender.java
@@ -431,7 +431,7 @@ public class WorkspaceContextExtender extends AbstractContextExtender
context.setVariable(VAR_RESOURCE_NAME, name);
context.setVariable(VAR_RESOURCE_TYPE, getResourceTypeString(resource.getType()));
context.setVariable(VAR_RESOURCE_LOCATION, resource.getLocation().toString());
- context.setVariable(VAR_RAW_LOCATION, resource.getRawLocation().toString());
+ context.setVariable(VAR_RAW_LOCATION, resource.getRawLocation() != null ? resource.getRawLocation().toString() : resource.getLocation().toString());
context.setVariable(VAR_RESOURCE_PROJECT_NAME, resource.getProject().getName());
context.setVariable(VAR_RESOURCE_FULL_PATH, resource.getFullPath().toString());
context.setVariable(VAR_RESOURCE_PROJECT_RELATIVE_PATH, resource.getProjectRelativePath().toString());