Compare commits
5 Commits
4a70d954ef
...
develop
Author | SHA1 | Date | |
---|---|---|---|
4872fd3db3
![]() |
|||
833c346914
|
|||
8ef4a9a572
|
|||
ae2f2e8a84
![]() |
|||
7101523584
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -47,6 +47,7 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
|
||||
*/
|
||||
public ChangeManagerWrapper(M manager) {
|
||||
this.manager = manager;
|
||||
updateProperties();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user