mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-08-20 Chris Wiebe
class wizard now adds include paths dynamically * src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCreationWizardPage.java * src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCreationWizardMessages.properties * src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
This commit is contained in:
parent
50906ed31f
commit
26119371c4
1 changed files with 2 additions and 3 deletions
|
@ -152,8 +152,7 @@ public class NewClassCreationWizardPage extends NewElementWizardPage {
|
||||||
private NewClassCodeGenerator fCodeGenerator = null;
|
private NewClassCodeGenerator fCodeGenerator = null;
|
||||||
|
|
||||||
//TODO this should be a prefs option
|
//TODO this should be a prefs option
|
||||||
private boolean fCreateIncludePathsAsNeeded = false;
|
private boolean fWarnIfBaseClassNotInPath = false;
|
||||||
private boolean fWarnIfBaseClassNotInPath = true;
|
|
||||||
|
|
||||||
|
|
||||||
public NewClassCreationWizardPage() {
|
public NewClassCreationWizardPage() {
|
||||||
|
@ -1088,7 +1087,7 @@ public class NewClassCreationWizardPage extends NewElementWizardPage {
|
||||||
StatusInfo status = new StatusInfo();
|
StatusInfo status = new StatusInfo();
|
||||||
IProject project = getCurrentProject();
|
IProject project = getCurrentProject();
|
||||||
if (project != null) {
|
if (project != null) {
|
||||||
if (!fCreateIncludePathsAsNeeded && fWarnIfBaseClassNotInPath) {
|
if (fWarnIfBaseClassNotInPath) {
|
||||||
// make sure all classes belong to the project
|
// make sure all classes belong to the project
|
||||||
IBaseClassInfo[] baseClasses = getBaseClasses();
|
IBaseClassInfo[] baseClasses = getBaseClasses();
|
||||||
for (int i = 0; i < baseClasses.length; ++i) {
|
for (int i = 0; i < baseClasses.length; ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue