Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Reuse status event method

AuthorDaveJarvis <email>
Date2021-04-05 18:24:33 GMT-0700
Commitb34b0ef05568ef50a644fbea66b82e03042d2697
Parent55f5d97
src/main/java/com/keenwrite/events/StatusEvent.java
import java.util.stream.Collectors;
+import static com.keenwrite.Messages.get;
import static com.keenwrite.constants.Constants.NEWLINE;
import static com.keenwrite.constants.Constants.STATUS_BAR_OK;
-import static com.keenwrite.Messages.get;
import static java.util.Arrays.stream;
/**
- * Resets the status bar to a default message.
+ * Resets the status bar to a default message. Indicates that there are no
+ * issues to bring to the user's attention.
*/
public static void clue() {
- // Indicates that there are no issues to bring to the user's attention.
- new StatusEvent( get( STATUS_BAR_OK, "OK" ) );
+ fireStatusEvent( get( STATUS_BAR_OK, "OK" ) );
}
Delta4 lines added, 4 lines removed