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

Bug 368493

Summary: Add an ability to hide toolchains in the new project wizard
Product: [Tools] CDT Reporter: Anna Dushistova <anna.dushistova>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, mark_bozeman, zulliger
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 234860    

Description Anna Dushistova CLA 2012-01-12 17:47:28 EST
Build Identifier: 

It would be nice to be able to hide say not used toolchains in the new project wizard, something like what we have in RSE for connection types(a preference page to select the types you want in the connection dialog).

Reproducible: Always
Comment 1 Andrew Gvozdev CLA 2012-01-12 18:30:42 EST
It is a fair request, I just want to note that you can fairly easily create your own wizard extending CDTCommonProjectWizard and override

	@Override
	public void addPages()  {
		final List<String> filter = types;
		fMainPage = new CDTMainWizardPage(PAGE_NAME) {
			@SuppressWarnings({ "unchecked", "rawtypes" })
			@Override
			public List filterItems(List items)  {
				List<EntryDescriptor> displayed = new ArrayList<EntryDescriptor>();
				for (EntryDescriptor entryDescriptor : ((List<EntryDescriptor>)items)) {
					if(filter.contains(entryDescriptor.getId()))
						displayed.add(entryDescriptor);
				}
				return displayed;
			}
		};

		fMainPage.setTitle(title);
		fMainPage.setDescription(desc);
		addPage(fMainPage);
	}
Comment 2 Anna Dushistova CLA 2012-01-12 18:50:14 EST
I know,
but then our users will end up with 2 wizards for a C/C++ project creation which caused a lot of frustration in the past and what I'd like to avoid.

(In reply to comment #1)
> It is a fair request, I just want to note that you can fairly easily create
> your own wizard extending CDTCommonProjectWizard and override
Comment 3 Doug Schaefer CLA 2012-01-12 18:50:38 EST
I'm planning on revamping the CDT new project wizard, probably over the few weeks. I'll put together a proposal.

The idea is to add a level to select target platform, and then filter the toolchains based on that. Need to work through the details on how to do that though. Stay tuned.