Compare commits

5 Commits

Author SHA1 Message Date
4872fd3db3 Merge pull request 'Bump Version to 0.1.0' (#9) from r/0.1.0 into develop
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
Reviewed-on: https://git.kske.dev/zdm/undo-redo/pulls/9
Reviewed-by: DieGurke <maxi@kske.dev>
Reviewed-by: delvh <leon@kske.dev>
2021-12-25 21:33:57 +01:00
833c346914 Bump version to 0.1.0
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
2021-12-25 22:27:28 +02:00
8ef4a9a572 Fix typo in Javadoc tag 2021-12-25 22:27:03 +02:00
ae2f2e8a84 Merge pull request 'Fix ChangeManagerWrapper' (#8) from b/javafx-wrapper-properties into develop
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
Reviewed-on: https://git.kske.dev/zdm/undo-redo/pulls/8
Reviewed-by: DieGurke <maxi@kske.dev>
Reviewed-by: delvh <leon@kske.dev>
2021-12-25 21:14:53 +01:00
7101523584 Update properties on wrapper creation, fix NPE
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
2021-12-25 21:57:25 +02:00
6 changed files with 7 additions and 6 deletions

View File

@ -9,7 +9,7 @@
<parent>
<groupId>dev.kske</groupId>
<artifactId>undo-redo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
</parent>
</project>

View File

@ -18,7 +18,7 @@ public final class UnlimitedChangeManager<C extends Change> implements ChangeMan
private int markedIndex = -1;
/**
* @implNode As this change manager uses a linear history model, all changes behind the last
* @implNote As this change manager uses a linear history model, all changes behind the last
* applied change will be discarded and therefore can be garbage collected.
*/
@Override

View File

@ -9,14 +9,14 @@
<parent>
<groupId>dev.kske</groupId>
<artifactId>undo-redo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
</parent>
<dependencies>
<dependency>
<groupId>dev.kske</groupId>
<artifactId>undo-redo-core</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>

View File

@ -47,6 +47,7 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
*/
public ChangeManagerWrapper(M manager) {
this.manager = manager;
updateProperties();
}
@Override

View File

@ -21,7 +21,7 @@ public interface ObservableChangeManager<C extends Change> extends ChangeManager
@Override
default Optional<C> getLastChange() {
return Optional.of(lastChangeProperty().get());
return Optional.ofNullable(lastChangeProperty().get());
}
ReadOnlyBooleanProperty atMarkedChangeProperty();

View File

@ -5,7 +5,7 @@
<groupId>dev.kske</groupId>
<artifactId>undo-redo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>pom</packaging>
<name>Undo-Redo</name>