final IExtensionPoint point = reg.getExtensionPoint("org.eclipse.debug.ui.launchShortcuts"); //$NON-NLS-1$
final IExtension[] extensions = point.getExtensions();
for (int i = 0; i < extensions.length; ++i) {
if (namespace.equals(extensions[i].getNamespaceIdentifier())) {
final IConfigurationElement[] elements = extensions[i].getConfigurationElements();
ILaunchShortcut shortcut = (ILaunchShortcut) elements[0]
.createExecutableExtension("class"); //$NON-NLS-1$
if (shortcut != null) {
return shortcut;
}
}