Bug 55036 [Perspectives] Workbench switch perspective when new project is created, even if setup to no switch
I200403161300 I have the preference workbench>perspectives>'switch to associated perspective when creating new project' set 'Never switch'. I create a java project and the workbench switch to the java perspective (my current perspective was a custom perspective based on the java perspective).
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/newresource/BasicNewProjectResourceWizard.java
* Creates a wizard for creating a new project resource in the workspace.
 */
public BasicNewProjectResourceWizard() {
	IDialogSettings workbenchSettings = IDEWorkbenchPlugin.getDefault().getDialogSettings();
	IDialogSettings section = workbenchSettings.getSection("BasicNewProjectResourceWizard");
	if (section == null)
		section = workbenchSettings.addNewSection("BasicNewProjectResourceWizard");
	setDialogSettings(section);
}
/* (non-Javadoc)
 * Method declared on IWizard.
 */
public void addPages() {
	super.addPages();
	
	mainPage = new WizardNewProjectCreationPage("basicNewProjectPage");
	mainPage.setTitle(ResourceMessages.getString("NewProject.title")); 
	mainPage.setDescription(ResourceMessages.getString("NewProject.description")); 
	this.addPage(mainPage);
	
	
	if (ResourcesPlugin.getWorkspace().getRoot().getProjects().length > 0) {
		referencePage = new WizardNewProjectReferencePage("basicReferenceProjectPage");
		referencePage.setTitle(ResourceMessages.getString("NewProject.referenceTitle")); 
		referencePage.setDescription(ResourceMessages.getString("NewProject.referenceDescription")); 
		this.addPage(referencePage);
	}
}
/**
 * Creates a new project resource with the selected name.