mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
First step for [Bug 184185] New CDTWizard extension mechanism should use abstract classes instead of interfaces
This commit is contained in:
parent
279868fade
commit
c58b1c80fb
2 changed files with 6 additions and 6 deletions
|
@ -492,7 +492,7 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
|
|||
wd1.setPath(wd2.getPath() + "/" + wd1.getId()); //$NON-NLS-1$
|
||||
wd1.setParent(wd2);
|
||||
if (wd1.getHandler() == null && !wd1.isCategory())
|
||||
wd1.setHandler((ICWizardHandler)h.clone());
|
||||
wd1.setHandler((CWizardHandler)h.clone());
|
||||
if (h != null && !h.isApplicable(wd1))
|
||||
break;
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@ import org.eclipse.cdt.core.settings.model.util.CDataUtil;
|
|||
* This class stores data for each tree item
|
||||
* in "Project types" tree of New Project Wizard.
|
||||
*/
|
||||
public class EntryDescriptor {
|
||||
public final class EntryDescriptor {
|
||||
private String id = null;
|
||||
private String name = null;
|
||||
private boolean isCategory = false;
|
||||
private String parentId = null;
|
||||
private Image image = null;
|
||||
private ICWizardHandler handler = null;
|
||||
private CWizardHandler handler = null;
|
||||
private String path = null;
|
||||
private EntryDescriptor parent = null;
|
||||
|
||||
public EntryDescriptor (String _id, String _par, String _name, boolean _cat, ICWizardHandler _h, Image _image) {
|
||||
public EntryDescriptor (String _id, String _par, String _name, boolean _cat, CWizardHandler _h, Image _image) {
|
||||
id = _id;
|
||||
parentId = _par;
|
||||
name = _name;
|
||||
|
@ -76,10 +76,10 @@ public class EntryDescriptor {
|
|||
return parent;
|
||||
}
|
||||
|
||||
public void setHandler(ICWizardHandler h) {
|
||||
public void setHandler(CWizardHandler h) {
|
||||
handler = h;
|
||||
}
|
||||
public ICWizardHandler getHandler() {
|
||||
public CWizardHandler getHandler() {
|
||||
return handler;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue