mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2005-06-07 Alain Magloire
Patch form Chris Recoskie to provide an ID to the wizard. * src/org/eclipse/cdt/ui/wizards/NewCProjectWizardPage.java
This commit is contained in:
parent
7d1631e8ef
commit
3d2fcb3aa4
2 changed files with 29 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-06-07 Alain Magloire
|
||||||
|
Patch form Chris Recoskie to provide an ID to the wizard.
|
||||||
|
* src/org/eclipse/cdt/ui/wizards/NewCProjectWizardPage.java
|
||||||
|
|
||||||
2005-05-27 Alain Magloire
|
2005-05-27 Alain Magloire
|
||||||
Patch from Dave Daoust to externalize some strings
|
Patch from Dave Daoust to externalize some strings
|
||||||
* refactor/org/eclipse/cdt/internal/core/refactoring/rename/RenameElementProcessor.java
|
* refactor/org/eclipse/cdt/internal/core/refactoring/rename/RenameElementProcessor.java
|
||||||
|
|
|
@ -24,6 +24,29 @@ import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
|
||||||
*/
|
*/
|
||||||
public class NewCProjectWizardPage extends WizardNewProjectCreationPage {
|
public class NewCProjectWizardPage extends WizardNewProjectCreationPage {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unique string ID for this page. Used by Managed Build's custom page manager to refer to this page.
|
||||||
|
*/
|
||||||
|
public static final String PAGE_ID = "org.eclipse.cdt.ui.wizard.basicPage"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/* TODO: Implement proper data publishing from this wizard page.
|
||||||
|
*
|
||||||
|
* The following items would in theory be used to publish the project name and location with
|
||||||
|
* the managed build system's custom wizard page manager. However, this would create a dependency
|
||||||
|
* on MBS by the core, which is not very attractive. It seems like it might be worthwhile in the future
|
||||||
|
* to move the data publishing capabilities of the page manager out into another, more generic class
|
||||||
|
* in the core.
|
||||||
|
*
|
||||||
|
* For now, interested parties can obtain the IWizard page of this page from the page manager, cast it
|
||||||
|
* to a NewCProjectWizardPage, and obtain the data via its public methods. Messy, but it avoids
|
||||||
|
* the unwanted dependency.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
public static final String PROJECT_NAME = "projectName"; //$NON-NLS-1$
|
||||||
|
public static final String PROJECT_LOCATION = "projectLocation"; //$NON-NLS-1$
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
public NewCProjectWizardPage(String pageName) {
|
public NewCProjectWizardPage(String pageName) {
|
||||||
super(pageName);
|
super(pageName);
|
||||||
}
|
}
|
||||||
|
@ -51,6 +74,8 @@ public class NewCProjectWizardPage extends WizardNewProjectCreationPage {
|
||||||
setErrorMessage(validLocation.getMessage());
|
setErrorMessage(validLocation.getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue