Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2010-01-11 18:25:54 +0000
committerChris Goldthorpe2010-01-11 18:25:54 +0000
commit2cb3f521a06e07747e7e0ecd68b6ea68a0399a13 (patch)
treef1368012f608c742f00b7308e461291bad6f9199 /org.eclipse.ui.intro
parent3ba79722ab08d1a09d2ff7d688ae232279c9f896 (diff)
downloadeclipse.platform.ua-2cb3f521a06e07747e7e0ecd68b6ea68a0399a13.tar.gz
eclipse.platform.ua-2cb3f521a06e07747e7e0ecd68b6ea68a0399a13.tar.xz
eclipse.platform.ua-2cb3f521a06e07747e7e0ecd68b6ea68a0399a13.zip
Bug 299082 – [Intro] label attribute of tag link doesn't substitute variables like $varName$
Diffstat (limited to 'org.eclipse.ui.intro')
-rw-r--r--org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroLink.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroLink.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroLink.java
index dcafcb0a7..42eb6fdf7 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroLink.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroLink.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2005 IBM Corporation and others.
+ * Copyright (c) 2004, 2010 IBM Corporation 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
@@ -64,7 +64,11 @@ public class IntroLink extends AbstractTextElement {
* @return Returns the label.
*/
public String getLabel() {
- return label;
+ IntroModelRoot root = getModelRoot();
+ if (root!=null) {
+ return root.resolveVariables(label);
+ }
+ return label;
}
/**

Back to the top