Fix ChangeManagerWrapper #8
@ -47,6 +47,7 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
|
|||||||
*/
|
*/
|
||||||
public ChangeManagerWrapper(M manager) {
|
public ChangeManagerWrapper(M manager) {
|
||||||
this.manager = manager;
|
this.manager = manager;
|
||||||
|
updateProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -21,7 +21,7 @@ public interface ObservableChangeManager<C extends Change> extends ChangeManager
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
default Optional<C> getLastChange() {
|
default Optional<C> getLastChange() {
|
||||||
return Optional.of(lastChangeProperty().get());
|
return Optional.ofNullable(lastChangeProperty().get());
|
||||||
}
|
}
|
||||||
|
|
||||||
ReadOnlyBooleanProperty atMarkedChangeProperty();
|
ReadOnlyBooleanProperty atMarkedChangeProperty();
|
||||||
|
Reference in New Issue
Block a user