use of io.sloeber.core.api.BoardDescriptor in project arduino-eclipse-plugin by Sloeber.
the class NewSketchWizard method addPages.
@Override
public /**
* adds pages to the wizard. We are using the standard project wizard of
* Eclipse
*/
void addPages() {
//
// We assume everything is OK as it is tested in the handler
// create each page and fill in the title and description
// first page to fill in the project name
//
this.mWizardPage.setDescription(Messages.ui_new_sketch_title_help);
// $NON-NLS-1$
this.mWizardPage.setTitle(Messages.ui_new_sketch_title);
//
// settings for Arduino board etc
//
this.mArduinoPage.setTitle(Messages.ui_new_sketch_arduino_information_help);
this.mArduinoPage.setDescription(Messages.ui_new_sketch_these_settings_cn_be_changed_later);
//
// settings for template file location
//
this.mNewArduinoSketchWizardCodeSelectionPage.setTitle(Messages.ui_new_sketch_sketch_template_folder);
this.mNewArduinoSketchWizardCodeSelectionPage.setDescription(Messages.ui_new_sketch_error_folder_must_contain_sketch_cpp);
//
// actually add the pages to the wizard
//
addPage(this.mWizardPage);
addPage(this.mArduinoPage);
addPage(this.mNewArduinoSketchWizardCodeSelectionPage);
BoardDescriptor boardID = this.mArduinoPage.getBoardID();
this.mNewArduinoSketchWizardCodeSelectionPage.setBoardDescriptor(boardID);
}
Aggregations