Search in sources :

Example 1 with WarningLevels

use of io.sloeber.core.api.CompileDescription.WarningLevels in project arduino-eclipse-plugin by Sloeber.

the class CompileProperties method getFromScreen.

@Override
protected Object getFromScreen() {
    CompileDescription compDesc = (CompileDescription) getDescription(getConfdesc());
    WarningLevels warningLevel = WarningLevels.valueOf(myWarningLevel.getText());
    warningLevel.setCustomWarningLevel(myCustomWarningLevel.getText());
    SizeCommands sizeCommand = SizeCommands.valueOf(mySizeCommand.getText());
    sizeCommand.setCustomSizeCommand(myCustomSizeCommand.getText());
    compDesc.setWarningLevel(warningLevel);
    compDesc.setSizeCommand(sizeCommand);
    compDesc.set_C_andCPP_CompileOptions(this.myCAndCppCommand.getText());
    compDesc.set_C_CompileOptions(this.myCCommand.getText());
    compDesc.set_CPP_CompileOptions(this.myCppCommand.getText());
    compDesc.set_All_CompileOptions(this.myAllCommand.getText());
    compDesc.set_Archive_CompileOptions(this.myArchiveCommand.getText());
    compDesc.set_Assembly_CompileOptions(this.myAssemblyCommand.getText());
    compDesc.set_Link_CompileOptions(this.myLinkCommand.getText());
    return compDesc;
}
Also used : WarningLevels(io.sloeber.core.api.CompileDescription.WarningLevels) CompileDescription(io.sloeber.core.api.CompileDescription) SizeCommands(io.sloeber.core.api.CompileDescription.SizeCommands)

Aggregations

CompileDescription (io.sloeber.core.api.CompileDescription)1 SizeCommands (io.sloeber.core.api.CompileDescription.SizeCommands)1 WarningLevels (io.sloeber.core.api.CompileDescription.WarningLevels)1