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
WorkbenchActivityHelper.createUnifiedId(contribution));
            Set idActivities = identifier.getActivityIds();
            
            if (!idActivities.isEmpty()) {
                Set enabledIds = new HashSet(activityManager.getEnabledActivityIds());
                
                if (enabledIds.addAll(idActivities)) 
                	workbenchActivitySupport.setEnabledActivityIds(enabledIds);
            }
    	}
	}
	else {
		IDEWorkbenchPlugin.log("Unable to find persective " 
				+finalPerspId + " in BasicNewProjectResourceWizard.updatePerspective"); 
		return;
	}
	
	
	 
	
	ArrayList preferredPerspIds = new ArrayList();
	addPerspectiveAndDescendants(preferredPerspIds, finalPerspId);
	String preferred = configElement.getAttribute(PREFERRED_PERSPECTIVES);
	if (preferred != null) {
		StringTokenizer tok = new StringTokenizer(preferred, " \t\n\r\f,"); 
		while (tok.hasMoreTokens()) {
			addPerspectiveAndDescendants(preferredPerspIds, tok.nextToken());
		}
	}