diff options
author | Brian de Alwis | 2016-04-20 02:32:43 +0000 |
---|---|---|
committer | Brian de Alwis | 2016-04-21 13:37:53 +0000 |
commit | 31bcbfb0012425aa1b5b9b9b974cf7ae878f0b79 (patch) | |
tree | 38ef8f4495ddbd753f3d7e6df01db7f7bba12c82 /org.eclipse.ui.intro | |
parent | 18cb084eeee21bab27389aeefe7e6d1e597721f0 (diff) | |
download | eclipse.platform.ua-31bcbfb0012425aa1b5b9b9b974cf7ae878f0b79.tar.gz eclipse.platform.ua-31bcbfb0012425aa1b5b9b9b974cf7ae878f0b79.tar.xz eclipse.platform.ua-31bcbfb0012425aa1b5b9b9b974cf7ae878f0b79.zip |
Bug 491556 - [Welcome] Provide theme-specific mechanism to influence path resolutionY20160428-1430Y20160428-1000I20160504-2000I20160504-0035I20160503-2000I20160502-2000I20160501-2000I20160430-2000I20160429-2300I20160429-2000I20160428-0800I20160427-2000I20160427-1200I20160427-0800I20160427-0400I20160426-2330I20160426-2000I20160426-1615I20160426-1430I20160426-1245I20160426-1105I20160426-1045I20160426-1000I20160426-0800I20160426-0130I20160426-0030I20160425-2230I20160425-2000I20160425-1300I20160425-0800I20160424-2245I20160424-2000
Add support for resolving theme-specific files. When resolving a
file path, the Intro first checks for a file under a path with the
theme-id. For example, resolving 'intro-eclipse.png' ->
'org.eclipse.ui.intro.universal.solstice/intro-eclipse.png'.
Change-Id: I8f558a4c264fb459efe0dbaeed7f92aaa980fb09
Diffstat (limited to 'org.eclipse.ui.intro')
-rw-r--r-- | org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroTheme.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroTheme.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroTheme.java index a71080e33..b5a1ea809 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroTheme.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroTheme.java @@ -21,6 +21,7 @@ import org.w3c.dom.Element; public class IntroTheme extends AbstractIntroIdElement { + private static final String ATT_NAME = "name"; //$NON-NLS-1$ private static final String ATT_PATH = "path"; //$NON-NLS-1$ private String name; private String path; @@ -29,7 +30,7 @@ public class IntroTheme extends AbstractIntroIdElement { public IntroTheme(IConfigurationElement element) { super(element); - name = element.getAttribute(name); + name = element.getAttribute(ATT_NAME); path = element.getAttribute(ATT_PATH); path = BundleUtil.getResolvedResourceLocation(path, getBundle()); scalable = "true".equals(element.getAttribute(FontSelection.ATT_SCALABLE)); //$NON-NLS-1$ @@ -76,5 +77,7 @@ public class IntroTheme extends AbstractIntroIdElement { if (name!=null && value!=null) properties.put(name, value); } + // Put the theme id in the properties too + properties.put(ATT_ID, getId()); } } |