-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'Ticket #28304: Fehlende inkrementelle Änderung vo…
…n "abstract"' (!577) from CWS/CWS_28304 into master Reviewed-on: http://tl.bos.local:3000/TopLogic/tl-engine-7/pulls/577 Reviewed-by: jenkins <jenkins@top-logic.com> Reviewed-by: Bernhard Haumacher <bernhard.haumacher@top-logic.com>
- Loading branch information
Showing
10 changed files
with
187 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...p_logic.element/src/main/java/com/top_logic/element/model/diff/config/UpdateAbstract.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 (c) Business Operation Systems GmbH <info@top-logic.com> | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-BOS-TopLogic-1.0 | ||
*/ | ||
package com.top_logic.element.model.diff.config; | ||
|
||
import com.top_logic.basic.config.annotation.Label; | ||
import com.top_logic.basic.config.annotation.TagName; | ||
import com.top_logic.model.TLStructuredTypePart; | ||
|
||
/** | ||
* Update of the <code>abstract</code> state of a {@link TLStructuredTypePart}. | ||
* | ||
* @author <a href="mailto:daniel.busche@top-logic.com">Daniel Busche</a> | ||
*/ | ||
@TagName("update-abstract") | ||
@Label("Update abstract") | ||
public interface UpdateAbstract extends PartUpdate { | ||
|
||
/** | ||
* The new {@link TLStructuredTypePart#isAbstract() abstract} state. | ||
*/ | ||
boolean isAbstract(); | ||
|
||
/** @see #isAbstract() */ | ||
void setAbstract(boolean value); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ent/src/test/java/test/com/top_logic/element/model/diff/test-make-abstract-left.model.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
|
||
<model> | ||
<module name="m0"> | ||
<datatype name="D" | ||
db_type="varchar" | ||
kind="String" | ||
> | ||
<storage-mapping class="com.top_logic.element.meta.kbbased.storage.mappings.DirectMapping" | ||
application-type="java.lang.String" | ||
/> | ||
</datatype> | ||
|
||
<class name="A"> | ||
<attributes> | ||
<property name="a" | ||
type="D" | ||
/> | ||
</attributes> | ||
</class> | ||
|
||
<class name="B"> | ||
<generalizations> | ||
<generalization type="A"/> | ||
</generalizations> | ||
</class> | ||
</module> | ||
</model> |
35 changes: 35 additions & 0 deletions
35
...nt/src/test/java/test/com/top_logic/element/model/diff/test-make-abstract-right.model.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
|
||
<model> | ||
<module name="m0"> | ||
<datatype name="D" | ||
db_type="varchar" | ||
kind="String" | ||
> | ||
<storage-mapping class="com.top_logic.element.meta.kbbased.storage.mappings.DirectMapping" | ||
application-type="java.lang.String" | ||
/> | ||
</datatype> | ||
|
||
<class name="A"> | ||
<attributes> | ||
<property name="a" | ||
abstract="true" | ||
type="D" | ||
/> | ||
</attributes> | ||
</class> | ||
|
||
<class name="B"> | ||
<attributes> | ||
<property name="a" | ||
override="true" | ||
type="D" | ||
/> | ||
</attributes> | ||
<generalizations> | ||
<generalization type="A"/> | ||
</generalizations> | ||
</class> | ||
</module> | ||
</model> |