mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug : toolchains are not visible for old-style project types grouped in "Others" folder.
This commit is contained in:
parent
d6e3cf9201
commit
32a9f67aea
3 changed files with 13 additions and 18 deletions
|
@ -140,7 +140,7 @@ public class MBSWizardHandler extends CWizardHandler {
|
|||
break;
|
||||
|
||||
projectTypeId = path[0];
|
||||
if(path.length > 1){
|
||||
if(path.length > 1 && (!path[0].equals(ManagedBuildWizard.OTHERS_LABEL))){
|
||||
templateId = path[path.length - 1];
|
||||
Template templates[] = TemplateEngineUI.getDefault().getTemplates(projectTypeId);
|
||||
if(templates.length == 0)
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.swt.graphics.Image;
|
|||
*/
|
||||
public class ManagedBuildWizard extends AbstractCWizard {
|
||||
private static final Image IMG = CPluginImages.get(CPluginImages.IMG_OBJS_CONTAINER);
|
||||
private static final String OTHERS_LABEL = Messages.getString("CNewWizard.0"); //$NON-NLS-1$
|
||||
public static final String OTHERS_LABEL = Messages.getString("CNewWizard.0"); //$NON-NLS-1$
|
||||
/**
|
||||
* Creates and returns an array of items to be displayed
|
||||
*/
|
||||
|
|
|
@ -536,27 +536,22 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
|
|||
}
|
||||
|
||||
private void switchTo(CWizardHandler h, EntryDescriptor ed) {
|
||||
|
||||
if (h == null) h = ed.getHandler();
|
||||
|
||||
if (h == null)
|
||||
h = ed.getHandler();
|
||||
try {
|
||||
|
||||
if (h != null && ed != null) h.initialize(ed);
|
||||
|
||||
} catch (CoreException e) { h = null; }
|
||||
|
||||
if (h_selected != null) h_selected.handleUnSelection();
|
||||
|
||||
if (h != null && ed != null)
|
||||
h.initialize(ed);
|
||||
} catch (CoreException e) {
|
||||
h = null;
|
||||
}
|
||||
if (h_selected != null)
|
||||
h_selected.handleUnSelection();
|
||||
h_selected = h;
|
||||
|
||||
if (h == null) return;
|
||||
|
||||
if (h == null)
|
||||
return;
|
||||
right_label.setText(h_selected.getHeader());
|
||||
|
||||
h_selected.handleSelection();
|
||||
|
||||
h_selected.setSupportedOnly(show_sup.getSelection());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue