Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368493 - Add an ability to hide toolchains in the new project wizard
Summary: Add an ability to hide toolchains in the new project wizard
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 234860
  Show dependency tree
 
Reported: 2012-01-12 17:47 EST by Anna Dushistova CLA
Modified: 2020-09-04 15:20 EDT (History)
3 users (show)

See Also:


Attachments

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