Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions java/bundles/org.eclipse.set.basis/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Export-Package: org.eclipse.set.basis,
org.eclipse.set.basis.viewgroups
Import-Package: com.google.common.collect,
org.apache.commons.lang3,
org.eclipse.core.databinding.observable,
org.eclipse.core.databinding.observable.value;version="[1.0.0,2.0.0)",
org.eclipse.core.runtime,
org.eclipse.e4.core.contexts,
org.eclipse.e4.core.di,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* Copyright (c) 2026 DB InfraGO AG and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*/
package org.eclipse.set.basis.observable;

import java.util.function.Supplier;

import org.eclipse.core.databinding.observable.value.WritableValue;

/**
* Observable with Supplier to get value
*
* @author truong
* @param <T>
* the value type
*/
public class SupplierObservableValue<T> extends WritableValue<T> {

private final Supplier<T> supplier;

/**
* @param supplier
* the {@link Supplier} to get value
* @param valueType
* the value type
*/
public SupplierObservableValue(final Supplier<T> supplier,
final Object valueType) {
super(supplier.get(), valueType);
this.supplier = supplier;
}

/**
* Set value through supplier
*/
public void calculate() {
if (getRealm().isCurrent()) {
setValue(supplier.get());
} else {
getRealm().asyncExec(() -> setValue(supplier.get()));
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Import-Package: com.google.common.base;version="15.0.0",
org.apache.commons.io.filefilter;version="2.15.0",
org.apache.commons.text,
org.apache.poi;version="5.0.0",
org.eclipse.core.databinding,
org.eclipse.core.databinding.observable.value,
org.eclipse.core.databinding.property.value,
org.eclipse.core.runtime;version="3.5.0",
org.eclipse.e4.core.contexts;version="1.7.0",
org.eclipse.e4.core.di;version="1.7.0",
Expand Down Expand Up @@ -49,6 +52,7 @@ Import-Package: com.google.common.base;version="15.0.0",
org.eclipse.set.basis.extensions,
org.eclipse.set.basis.files,
org.eclipse.set.basis.guid,
org.eclipse.set.basis.observable,
org.eclipse.set.basis.part,
org.eclipse.set.basis.viewgroups,
org.eclipse.set.core.services.cache,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,44 @@ NoSubworks=Kein Untergewerk vorhanden.
ExportValidationMsg=Export als CSV
ExportValidationTitleMsg=Export als CSV
ProgressMsg=Öffne Validierungssicht
ShowValidationTableMsg=Zeige Meldungen in neuer Sicht
ShowValidationTableMsg=Zeige Meldungen
SourceMsg=Quelltext

ValidationReport_Report_Title=Validierungsmeldungen
ValidationReport_Report_PlaningRegion=Meldungen in Planungsbereich
ValidationReport_Report_ViewRegion=Meldungen in Betrachstungsbereich
ValidationReport_ModelInfo=Modellinformationen
ValidationReport_FunctionalModelInfo=Fachliche Modellinformationen

ValidationReport_Supported_Version=Unterstütztes XML-Schema
ValidationReport_Used_Version=Verwendetes XML-Schema (in Datei)
ValidationReport_Version_PlanPro=PlanPro
ValidationReport_Version_Signalbegriffe=Signalbegriffe


ValidationReport_Validity=Gültigkeit
ValidationReport_Validity_XSD_VALID=XSD-Gültigkeit
ValidationReport_Validity_EMF_VALID=EMF-Gültigkeit
ValidationReport_Validity_ModelLoaded=Verarbeitbar

ValidationReport_Messages=Validierungsmeldungen
ValidationReport_Subworks=Untergewerke
ValidationReport_Subwork_Model_Content=Enthalten

ValidationReport_GeladeneDatei=Geladene Datei
ValidationReport_GeladeneDatei_DateiName=Dateiname
ValidationReport_GeladeneDatei_TimeStamp=Zeitstempel
ValidationReport_GeladeneDatei_MD5=MD5
ValidationReport_GeladeneDatei_GUID=GUID
ValidationReport_Metadata=Wesentliche Planungsmetadaten
ValidationReport_Metadata_Location=führende Örtlichkeit
ValidationReport_Metadata_Route=führende Strecke
ValidationReport_Metadata_BuildDesignation=Bauzustand Kurzbezeichnung
ValidationReport_Metadata_Index=Index
ValidationReport_Metadata_LfdNr=Laufende Nummer

ValidationReport_ContainerContents =PlanPro-Container

ValidationReport_Report_Title=Validierungsmeldungen
ValidationReport_ModelInfo=Modellinformationen
ValidationReport_FunctionalModelInfo=Fachliche Modellinformationen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
@Component(immediate = true, service = CustomValidator.class)
public class LayoutInfoRequired extends AbstractCustomValidator {
public static final String LAYOUT_VALIDATION_TYPE = "Metainformationen"; //$NON-NLS-1$
public static final String METADATA_VALIDATION_TYPE = "Metainformationen"; //$NON-NLS-1$

@Override
public void validate(final ToolboxFile toolboxFile,
Expand Down Expand Up @@ -55,7 +55,7 @@ private CustomValidationProblemImpl layoutMissing() {

@Override
public String validationType() {
return LAYOUT_VALIDATION_TYPE;
return METADATA_VALIDATION_TYPE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,43 @@ public class Messages {
*/
public String ValidationReport_Report_Title;

/**
* Meldungen in Planungsbereich
*/
public String ValidationReport_Report_PlaningRegion;

/**
* Meldungen in Betrachstungsbereich
*/
public String ValidationReport_Report_ViewRegion;

/**
* führende Örtlichkeit
*/
public String ValidationReport_Metadata_Location;

/**
* führende Strecke
*/
public String ValidationReport_Metadata_Route;

/**
* Bauzustand Kurzbezeichnung
*/
public String ValidationReport_Metadata_BuildDesignation;

/**
* Index
*/
public String ValidationReport_Metadata_Index;

/**
* Laufende Nummer
*/
public String ValidationReport_Metadata_LfdNr;

/**
* Wesentliche Planungsmetadaten
*/
public String ValidationReport_Metadata;
}

This file was deleted.

Loading
Loading