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
* matches the given ID.
 * 
 * @param perspectiveIds the list of perspective IDs to supplement.
 * @param id the id to query.
 * @since 3.0
 */
private static void addPerspectiveAndDescendants(
	List perspectiveIds,
	String id) {
	IPerspectiveRegistry registry =
		PlatformUI.getWorkbench().getPerspectiveRegistry();
	IPerspectiveDescriptor[] perspectives = registry.getPerspectives();
	for (int i = 0; i < perspectives.length; i++) {
		 
		
		PerspectiveDescriptor descriptor =
			((PerspectiveDescriptor) perspectives[i]);
		if (descriptor.getOriginalId().equals(id)) {
			perspectiveIds.add(descriptor.getId());
		}
	}
}
/**
 * Prompts the user for whether to switch perspectives.
 * 
 * @return <code>true</code> if it's OK to switch, <code>false</code> otherwise
 */
private static boolean confirmPerspectiveSwitch(IWorkbenchWindow window, IPerspectiveDescriptor finalPersp) {
	IPreferenceStore store = IDEWorkbenchPlugin.getDefault().getPreferenceStore();
	String pspm = store.getString(IDEInternalPreferences.PROJECT_SWITCH_PERSP_MODE);