Bug 56047 SWT Example Launcher does not run standalone apps
M8 Install the example plugins Start Eclipse Switch to the SWT Example Launcher view Select AddressBook in Standalone Click Run Nothing happens.
examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherView.java
final IWorkbenchPart workbenchPart = this;
			final IWorkbenchPartSite workbenchPartSite = workbenchPart.getSite();
			final IWorkbenchPage workbenchPage = workbenchPartSite.getPage();
			try {
				workbenchPage.showView(pluginViewId);
			} catch (PartInitException e) {
				LauncherPlugin.logError(LauncherPlugin.getResourceString("run.error.Invocation"), e);
			}
			return;
		}
		
		if (workbenchShell == null) return;
		try {
			Class cl = Class.forName(itemDescriptor.getMainType());
			Display display = workbenchShell.getDisplay();
			Object exampleInstance = cl.newInstance();
			Method openMethod = cl.getDeclaredMethod("open", new Class[] {Display.class});
			openMethod.invoke(exampleInstance, new Object[] {display});
		} catch (NoSuchMethodException e) {
			LauncherPlugin.logError(LauncherPlugin.getResourceString("run.error.DoesNotImplementMethod"), null);
		} catch (ClassNotFoundException e) {
			LauncherPlugin.logError(LauncherPlugin.getResourceString("run.error.CouldNotFindClass"), e);
		} catch (Exception e) {
			LauncherPlugin.logError(LauncherPlugin.getResourceString("run.error.CouldNotInstantiateClass"), e);
		}		
	}
	/**
	 * Obtains the selected launch item.
	 * 
	 * @return the currently selected ItemDescriptor