diff options
author | Chris Goldthorpe | 2011-01-26 00:49:04 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2011-01-26 00:49:04 +0000 |
commit | 8bae184880482b3ee05cec74cd6caf08d5e46866 (patch) | |
tree | c9b6b82934cd4d19de0fcfc9bd76bea5dfe1860d | |
parent | f99aa986d58f2b384edc4b6b004701f95832a25b (diff) | |
download | eclipse.platform.ua-8bae184880482b3ee05cec74cd6caf08d5e46866.tar.gz eclipse.platform.ua-8bae184880482b3ee05cec74cd6caf08d5e46866.tar.xz eclipse.platform.ua-8bae184880482b3ee05cec74cd6caf08d5e46866.zip |
-rw-r--r-- | org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/EngineTypeDescriptor.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/EngineTypeDescriptor.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/EngineTypeDescriptor.java index e321a0e31..3a0781c47 100644 --- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/EngineTypeDescriptor.java +++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/EngineTypeDescriptor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2011 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,6 +64,7 @@ public class EngineTypeDescriptor { image = HelpUIResources.getImage(IHelpUIConstants.IMAGE_HELP_SEARCH); return image; } + public String getDescription() { String desc = null; IConfigurationElement [] children = config.getChildren(IHelpUIConstants.TAG_DESC); @@ -71,13 +72,15 @@ public class EngineTypeDescriptor { desc = children[0].getValue(); return desc; } + public ImageDescriptor getImageDescriptor() { ImageDescriptor desc=null; String icon = config.getAttribute(IHelpUIConstants.ATT_ICON); + String bundleId = config.getContributor().getName(); if (icon!=null) - desc = HelpUIResources.getImageDescriptor(icon); + desc = HelpUIResources.getImageDescriptor(bundleId, icon); else - desc = HelpUIResources.getImageDescriptor(IHelpUIConstants.IMAGE_HELP_SEARCH); + desc = HelpUIResources.getImageDescriptor(bundleId, IHelpUIConstants.IMAGE_HELP_SEARCH); return desc; } public RootScopePage createRootPage(String scopeSetName) { |