public code v1

This commit is contained in:
Francisco Jesús Martínez Mimbrera
2026-05-23 00:32:57 +02:00
commit 759a8968a2
4357 changed files with 163763 additions and 0 deletions
@@ -0,0 +1,32 @@
package flintstones.domain.numeric.real;
import javax.inject.Inject;
import org.eclipse.e4.core.services.nls.Translation;
import flintstones.domain.numeric.NumericDomain;
import flintstones.domain.numeric.real.messages.Messages;
import flintstones.helper.data.wxml.WNode;
@SuppressWarnings("javadoc")
public class NumericRealDomain extends NumericDomain {
@Inject
@Translation
private Messages messages;
public static final String ID = "flintstones.domain.numeric.real"; //$NON-NLS-1$
@Override
public void read(WNode node) {
this.inRange = Boolean.parseBoolean(node.getAttribute(NumericDomain.Fields.inRange));
if (!this.inRange) {
this.min = 0.0d;
this.max = 0.0d;
} else {
this.min = Double.parseDouble(node.getAttribute(NumericDomain.Fields.min));
this.max = Double.parseDouble(node.getAttribute(NumericDomain.Fields.max));
}
}
}