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
+7
View File
@@ -0,0 +1,7 @@
<?flintstones.helper.data.xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>flintstones.group</groupId>
<artifactId>flintstones.bundles</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>flintstones.valuation</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>[bundle] Valuation</name>
<organization>
<name>Sinbad2</name>
</organization>
</project>
+50
View File
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>flintstones.valuation</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1779484362743</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
@@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Valuation
Bundle-SymbolicName: flintstones.valuation;singleton:=true
Bundle-Vendor: Sinbad2
Export-Package: flintstones.valuation.cell,
flintstones.valuation.messages
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Automatic-Module-Name: flintstones.valuation
Bundle-Version: 1.0.0.qualifier
Import-Package: flintstones.application.constants
Require-Bundle: flintstones.entity.valuation,
flintstones.entity.domain,
flintstones.helper.wtable,
org.eclipse.e4.core.services
@@ -0,0 +1,4 @@
output.. = bin/
bin.includes = META-INF/,\
.
source.. = src/
@@ -0,0 +1,72 @@
package flintstones.valuation.cell;
import de.kupzog.ktable.KTableCellRenderer;
import flintstones.entity.valuation.Valuation;
import flintstones.helper.wcellrenderer.WCellRendererRight;
import flintstones.helper.wtable.cell.WTableCell;
import flintstones.helper.wtable.interfaces.IWTableCellContent;
import flintstones.helper.wtable.interfaces.IWTableCellStyle;
import flintstones.helper.wtable.interfaces.IWTablePlaceholder;
/**
* @author Sinbad2
* WTable Content adapter. Implements some methods that will be called inside wtable.
*/
public class DomainValuationTableCell extends WTableCell implements IWTableCellContent, IWTablePlaceholder, IWTableCellStyle {
private Valuation valuation;
/**
* @param valuation the valuation for the cell
*/
public DomainValuationTableCell(Valuation valuation) {
this.setValuation(valuation);
}
@Override
public String getPlaceholder() {
return ""; //$NON-NLS-1$
}
@Override
public String getContent(Object cellContent) {
if (this.getValuation()
.getDomain() != null)
return this.getValuation()
.getDomain()
.getName();
return null;
}
/**
* @return the valuation of the cell
*/
public Valuation getValuation() {
return this.valuation;
}
/**
* @param valuation The new valuation of the cell
*/
public void setValuation(Valuation valuation) {
this.valuation = valuation;
}
@Override
public boolean shouldFireModifiedEvent() {
return true;
}
@Override
public boolean shouldSetContent() {
return false;
}
@Override
public KTableCellRenderer getCellRenderer() {
if (this.valuation.getDomain() != null)
return new WCellRendererRight();
return null;
}
}
@@ -0,0 +1,73 @@
package flintstones.valuation.cell;
import de.kupzog.ktable.KTableCellRenderer;
import flintstones.entity.valuation.Valuation;
import flintstones.helper.wcellrenderer.WCellRendererRight;
import flintstones.helper.wtable.cell.WTableCell;
import flintstones.helper.wtable.interfaces.IWTableCellContent;
import flintstones.helper.wtable.interfaces.IWTableCellStyle;
import flintstones.helper.wtable.interfaces.IWTablePlaceholder;
/**
* @author Sinbad2
* WTable Content adapter. Implements some methods that will be called inside wtable.
*/
public class ValuationTableCell extends WTableCell implements IWTableCellContent, IWTablePlaceholder, IWTableCellStyle {
private Valuation valuation;
/**
* @param valuation the valuation for the cell
*/
public ValuationTableCell(Valuation valuation) {
this.setValuation(valuation);
}
@Override
public String getPlaceholder() {
return this.getValuation()
.getDomain()
.getName();
}
@Override
public String getContent( Object cellContent ) {
if (this.getValuation()
.isEvaluated())
return this.getValuation()
.changeFormatValuationToString();
return null;
}
/**
* @return the valuation of the cell
*/
public Valuation getValuation() {
return this.valuation;
}
/**
* @param valuation The new valuation of the cell
*/
public void setValuation(Valuation valuation) {
this.valuation = valuation;
}
@Override
public boolean shouldFireModifiedEvent() {
return true;
}
@Override
public boolean shouldSetContent() {
return false;
}
@Override
public KTableCellRenderer getCellRenderer() {
if (this.valuation.isEvaluated())
return new WCellRendererRight();
return null;
}
}
@@ -0,0 +1,13 @@
// This file has been auto-generated
package flintstones.valuation.messages;
import org.eclipse.e4.core.services.nls.Message;
@Message
@SuppressWarnings({ "javadoc", "nls" })
public class Messages {
public String Valuation_entity = "Valuation";
public String Valuation_image = "valuation.png";
}
@@ -0,0 +1,3 @@
Valuation_entity=valuation
Valuation_extension=flintstones.valuation
Valuation_image=valuation.png
@@ -0,0 +1,3 @@
Valuation_entity=Evaluación
Valuation_extension=flintstones.valuation
Valuation_image=valuation.png