Search in sources :

Example 16 with BoardDescriptor

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);
}
Also used : BoardDescriptor(io.sloeber.core.api.BoardDescriptor)

Aggregations

BoardDescriptor (io.sloeber.core.api.BoardDescriptor)16 CodeDescriptor (io.sloeber.core.api.CodeDescriptor)8 HashMap (java.util.HashMap)7 CoreException (org.eclipse.core.runtime.CoreException)7 IPath (org.eclipse.core.runtime.IPath)7 Test (org.junit.Test)7 CompileOptions (io.sloeber.core.api.CompileOptions)6 IProject (org.eclipse.core.resources.IProject)6 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)5 ICProjectDescription (org.eclipse.cdt.core.settings.model.ICProjectDescription)4 ArrayList (java.util.ArrayList)3 ICConfigurationDescription (org.eclipse.cdt.core.settings.model.ICConfigurationDescription)3 TreeMap (java.util.TreeMap)2 IStatus (org.eclipse.core.runtime.IStatus)2 Status (org.eclipse.core.runtime.Status)2 Parameters (org.junit.runners.Parameterized.Parameters)2 InternalBoardDescriptor (io.sloeber.core.InternalBoardDescriptor)1 MCUBoard (io.sloeber.providers.MCUBoard)1 File (java.io.File)1 IOException (java.io.IOException)1