Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321137 - Odd UI when selecting multiple configurations with different artifact type
Summary: Odd UI when selecting multiple configurations with different artifact type
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 11:11 EDT by James Blackburn CLA
Modified: 2020-09-04 15:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.