Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-10-17 20:09:19 +0000
committerDarin Wright2006-10-17 20:09:19 +0000
commit5cb0ba6fa0ac0d19be3bea93b6021f627f08eeb2 (patch)
treecd20c21d99c4e748de54bf04116851171e82ae1e /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
parent4fe8f08266ae4b63ac800d5af4c1c274fba9e8d4 (diff)
downloadeclipse.platform.debug-5cb0ba6fa0ac0d19be3bea93b6021f627f08eeb2.tar.gz
eclipse.platform.debug-5cb0ba6fa0ac0d19be3bea93b6021f627f08eeb2.tar.xz
eclipse.platform.debug-5cb0ba6fa0ac0d19be3bea93b6021f627f08eeb2.zip
Bug 157059 [launching] extensible launch options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
index 1e574c4c7..e361db259 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
@@ -1037,6 +1037,26 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ILaunchListener {
}
/**
+ * Returns an image descriptor for the icon referenced by the given path
+ * and contributor name, or <code>null</code> if none.
+ *
+ * @param name the name of the contributor
+ * @param path the path of the icon (from the configuration element)
+ * @return image descriptor or <code>null</code>
+ * @since 3.3
+ */
+ public static ImageDescriptor getImageDescriptor(String name, String path) {
+ Bundle bundle = Platform.getBundle(name);
+ if (path != null) {
+ URL iconURL = FileLocator.find(bundle , new Path(path), null);
+ if (iconURL != null) {
+ return ImageDescriptor.createFromURL(iconURL);
+ }
+ }
+ return null;
+ }
+
+ /**
* Performs extra filtering for launch configurations based on the prefs set on the
* Launch Configurations page
* @param config the config to filter

Back to the top