Skip to content

Commit 5129a7c

Browse files
committed
Fix diagram generation in native samm-cli build
1 parent bad6d2f commit 5129a7c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

core/esmf-native-support/src/main/java/org/eclipse/esmf/nativefeatures/DiagramFeature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ private void setupAwt() {
257257
Native.forClass( java.awt.GraphicsEnvironment.class )
258258
.registerMethodForJni( "getLocalGraphicsEnvironment" )
259259
.registerMethodForJni( "isHeadless" );
260+
Native.forClass( "java.awt.GraphicsEnvironment$LocalGE" )
261+
.registerClassForReflection();
260262
Native.forClass( java.awt.event.KeyEvent.class )
261263
.registerFieldsForJni( "isProxyActive" );
262264
Native.forClass( java.awt.geom.AffineTransform.class )

core/esmf-test-aspect-models/src/main/java/org/eclipse/esmf/test/InvalidTestAspect.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
public enum InvalidTestAspect implements TestModel {
1919
ACTUALLY_JSON,
2020
ASPECT_WITH_INVALID_VERSION,
21+
ASPECT_WITH_LANG_STRING_WITH_EMPTY_LANGUAGE_TAG,
2122
ASPECT_WITH_RECURSIVE_PROPERTY,
2223
INVALID_SYNTAX,
2324
INVALID_ENCODING,
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2025 Robert Bosch Manufacturing Solutions GmbH
2+
#
3+
# See the AUTHORS file(s) distributed with this work for additional
4+
# information regarding authorship.
5+
#
6+
# This Source Code Form is subject to the terms of the Mozilla Public
7+
# License, v. 2.0. If a copy of the MPL was not distributed with this
8+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
9+
#
10+
# SPDX-License-Identifier: MPL-2.0
11+
12+
@prefix : <urn:samm:org.eclipse.esmf.test:1.0.0#> .
13+
@prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.2.0#> .
14+
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.2.0#> .
15+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
17+
18+
:AspectWithLangStringWithEmptyLanguageTag a samm:Aspect ;
19+
samm:preferredName "Test Aspect"@en ;
20+
samm:description "This is a test description"@en ;
21+
samm:properties ( :testProperty ) ;
22+
samm:operations ( ) .
23+
24+
:testProperty a samm:Property ;
25+
samm:preferredName "Test Property"@en ;
26+
samm:description "This is a test property."@en ;
27+
samm:exampleValue "invalid without language tag"^^rdf:langString ;
28+
samm:characteristic samm-c:MultiLanguageText .

0 commit comments

Comments
 (0)