eclipse/plugin/src/nl/tudelft/watchdog/eclipse/ui/wizards/ProjectRegistrationInputPanel.java
Method createSlider
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void createSlider(Composite composite) {
UIUtils.createLabel("", composite);
UIUtils.createLabel(Project.SLIDER_QUESTION, composite);
this.productionPercentageStart = ThreadLocalRandom.current().nextInt(0, 100 + 1);
Method registerAction
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
boolean registerAction() {
if (!sliderTouched) {
// Show warning and add background color to slider to make it stand out
MessageDialog.openWarning(getShell(), "Warning", Project.SLIDER_WARNING);