Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321137

Summary: Odd UI when selecting multiple configurations with different artifact type
Product: [Tools] CDT Reporter: James Blackburn <jamesblackburn+eclipse>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description James Blackburn CLA 2010-07-28 11:11:22 EDT
1) Create HelloWorld project
2) Project Properties > C/C++ Build > Settings > Build Artifact 
3) Change one configuration to Exe, and one to Library

Now changing between configurations shows different tools in the Tool Settings tab.

Choosing both configurations seems to show the tools for the first configuration (including tools not valid in the second config)

Pressing Restore Defaults while looking at all configurations gives:
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.eclipse.cdt.managedbuilder.ui.properties.ArtifactTab.setProjectType(ArtifactTab.java:127)
	at org.eclipse.cdt.managedbuilder.ui.properties.ArtifactTab.performDefaults(ArtifactTab.java:240)
	at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.handleTabEvent(AbstractCPropertyTab.java:532)
	at org.eclipse.cdt.ui.newui.AbstractPage.forEach(AbstractPage.java:1121)
	at org.eclipse.cdt.ui.newui.AbstractPage.forEach(AbstractPage.java:1116)
	at org.eclipse.cdt.ui.newui.AbstractPage.performDefaults(AbstractPage.java:565)
	at org.eclipse.jface.preference.PreferencePage$1.widgetSelected(PreferencePage.java:267)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)

As artifact type isn't set.