diff options
author | Chris Goldthorpe | 2010-01-11 18:25:54 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2010-01-11 18:25:54 +0000 |
commit | 2cb3f521a06e07747e7e0ecd68b6ea68a0399a13 (patch) | |
tree | f1368012f608c742f00b7308e461291bad6f9199 /org.eclipse.ui.intro | |
parent | 3ba79722ab08d1a09d2ff7d688ae232279c9f896 (diff) | |
download | eclipse.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.java | 8 |
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; } /** |