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
WizardDialog dialog= new WizardDialog(JavaPlugin.getActiveWorkbenchShell(), wizard);
		PixelConverter converter= new PixelConverter(JavaPlugin.getActiveWorkbenchShell());
		
		dialog.setMinimumPageSize(converter.convertWidthInCharsToPixels(70), converter.convertHeightInCharsToPixels(20));
		dialog.create();
		dialog.getShell().setText(JavaUIMessages.getString("AbstractOpenWizardAction.title")); 
		dialog.open();
	}
	
	/**
	 * Tests if the action can be run on the current selection.
	 */
	public boolean canActionBeAdded() {
		IStructuredSelection selection= getCurrentSelection();
		if (selection == null || selection.isEmpty()) {
			return fAcceptEmptySelection;
		}
		return isEnabled(selection);
	}
	/*
	 * @see IActionDelegate#run(IAction)
	 */
	public void run(IAction action) {
		run();
	}
	/*
	 * @see IWorkbenchWindowActionDelegate#dispose()
	 */
	public void dispose() {
	}