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.application/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ Bundle-Version: 2.6.0.qualifier
Bundle-Activator: org.eclipse.set.application.Activator
Bundle-Vendor: Eclipse Signalling Engineering Toolbox
Export-Package: org.eclipse.set.application,
org.eclipse.set.application.cacheservice,
org.eclipse.set.application.controlarea,
org.eclipse.set.application.geometry,
org.eclipse.set.application.graph,
org.eclipse.set.application.handler,
org.eclipse.set.application.nameservice
Require-Bundle: org.eclipse.core.runtime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Predicate;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -71,25 +70,6 @@
EventHandler.class, BankService.class })
public class BankServiceImpl implements BankService, EventHandler {

private class BankingInformationSession {
private final Map<TOP_Kante, Set<BankingInformation>> topEdgeBanking;
private final Map<Ueberhoehungslinie, Optional<BankingInformation>> bankingInformations;

public BankingInformationSession() {
this.topEdgeBanking = new ConcurrentHashMap<>();
this.bankingInformations = new ConcurrentHashMap<>();
}

public Map<TOP_Kante, Set<BankingInformation>> getTopEdgeBanking() {
return topEdgeBanking;
}

public Map<Ueberhoehungslinie, Optional<BankingInformation>> getBankingInformations() {
return bankingInformations;
}

}

@Reference
private TopologicalGraphService topGraph;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.application.graph;

import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import org.eclipse.set.core.services.graph.BankService.BankingInformation;
import org.eclipse.set.model.planpro.Geodaten.TOP_Kante;
import org.eclipse.set.model.planpro.Geodaten.Ueberhoehungslinie;

/**
* Helper class for find BankingInformation
*/
public class BankingInformationSession {
private final Map<TOP_Kante, Set<BankingInformation>> topEdgeBanking;
private final Map<Ueberhoehungslinie, Optional<BankingInformation>> bankingInformations;

/**
* Constructor
*/
public BankingInformationSession() {
this.topEdgeBanking = new ConcurrentHashMap<>();
this.bankingInformations = new ConcurrentHashMap<>();
}

public Map<TOP_Kante, Set<BankingInformation>> getTopEdgeBanking() {
return topEdgeBanking;
}

public Map<Ueberhoehungslinie, Optional<BankingInformation>> getBankingInformations() {
return bankingInformations;
}
}
11 changes: 11 additions & 0 deletions java/bundles/org.eclipse.set.feature.table.pt1.test/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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-21"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data/*
33 changes: 33 additions & 0 deletions java/bundles/org.eclipse.set.feature.table.pt1.test/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.set.feature.table.pt1.test</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>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=21
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Pt1 Table Test
Bundle-SymbolicName: org.eclipse.set.feature.table.pt1.test
Bundle-Vendor: Eclipse Signalling Engineering Toolbox
Bundle-Version: 2.6.0.qualifier
Fragment-Host: org.eclipse.set.feature.table.pt1;bundle-version="0.1.0"
Automatic-Module-Name: org.eclipse.set.feature.table.pt1.test
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-21
Import-Package: com.google.common.util.concurrent,
com.google.common.util.concurrent.internal,
net.bytebuddy,
net.bytebuddy.agent,
org.apache.commons.collections4,
org.apache.commons.lang3,
org.apache.commons.lang3.reflect,
org.eclipse.set.application.cacheservice,
org.eclipse.set.application.geometry,
org.eclipse.set.application.graph,
org.eclipse.set.unittest.utils,
org.eclipse.set.utils,
org.eclipse.swt.widgets,
org.jgrapht.graph,
org.jheaps.tree,
org.junit.jupiter.api,
org.junit.jupiter.api.function,
org.junit.jupiter.params,
org.junit.jupiter.params.provider
Require-Bundle: org.mockito.mockito-core
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
57 changes: 57 additions & 0 deletions java/bundles/org.eclipse.set.feature.table.pt1.test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.eclipse.set</groupId>
<artifactId>org.eclipse.set.feature.table.pt1.test</artifactId>
<version>2.6.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>

<parent>
<relativePath>../../</relativePath>
<groupId>org.eclipse.set</groupId>
<artifactId>org.eclipse.set.releng.parent</artifactId>
<version>2.6.0-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>copy-news</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/data/export/excel</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../org.eclipse.set.feature/rootdir/data/export/excel</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<filesets>
<fileset>
<directory>data</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading
Loading