Bug 11306 New class wizard launches simple project wizard
1. In a new workspace, press the "New Class" button in the Java perspective. 2. Since there are no existing projects, the dialog prompts the user to create a new project. This is very handy. However, if the user answers yes, the resulting dialog is the first page of the generic new project wizard. The Java Class wizard should open the Java Project wizard.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/AbstractOpenWizardAction.java
* (to be implemented by a subclass)
	 */
	abstract protected Wizard createWizard();
	protected IStructuredSelection getCurrentSelection() {
		IWorkbenchWindow window= JavaPlugin.getActiveWorkbenchWindow();
		if (window != null) {
			ISelection selection= window.getSelectionService().getSelection();
			if (selection instanceof IStructuredSelection) {
				return (IStructuredSelection) selection;
			}
			
		}
		return null;
	}
	/**
	 * The user has invoked this action.
	 */
	public void run() {
		if (!fNoChecking && !canActionBeAdded()) {
			return;
		}
		if (!checkWorkspaceNotEmpty()) {
			return;
		}
		
		Wizard wizard= createWizard();
		if (wizard instanceof IWorkbenchWizard) {
			((IWorkbenchWizard)wizard).init(getWorkbench(), getCurrentSelection());
		}