Class CoreEvents

java.lang.Object
org.omegat.core.CoreEvents

@NullMarked public final class CoreEvents extends Object
Class for distribute main application events.

All events can be fired in any threads, but will be delivered to listeners only in the UI thread. It's required for better threads synchronization.

  • Method Details

    • registerProjectChangeListener

      public static void registerProjectChangeListener(IProjectEventListener listener)
      Register listener.
    • unregisterProjectChangeListener

      public static void unregisterProjectChangeListener(IProjectEventListener listener)
      Unregister listener.
    • registerApplicationEventListener

      public static void registerApplicationEventListener(IApplicationEventListener listener)
      Register listener.
    • unregisterApplicationEventListener

      public static void unregisterApplicationEventListener(IApplicationEventListener listener)
      Unregister listener.
    • registerEntryEventListener

      public static void registerEntryEventListener(IEntryEventListener listener)
      Register listener.
    • unregisterEntryEventListener

      public static void unregisterEntryEventListener(IEntryEventListener listener)
      Unregister listener.
    • registerFontChangedEventListener

      public static void registerFontChangedEventListener(IFontChangedEventListener listener)
      Register listener.
    • unregisterFontChangedEventListener

      public static void unregisterFontChangedEventListener(IFontChangedEventListener listener)
      Unregister listener.
    • registerEditorEventListener

      public static void registerEditorEventListener(IEditorEventListener listener)
      Register listener.
    • unregisterEditorEventListener

      public static void unregisterEditorEventListener(IEditorEventListener listener)
      Unregister listener.
    • fireProjectChange

      public static void fireProjectChange(IProjectEventListener.PROJECT_CHANGE_TYPE eventType)
      Fire event.
    • fireApplicationStartup

      public static void fireApplicationStartup()
      Fire event.
    • fireApplicationShutdown

      public static void fireApplicationShutdown()
      Fire event.
    • fireEntryNewFile

      public static void fireEntryNewFile(String activeFileName)
      Fire event.
    • fireEntryActivated

      public static void fireEntryActivated(SourceTextEntry newEntry)
      Fire event.
    • fireFontChanged

      public static void fireFontChanged(Font newFont)
      Fire event.
    • fireEditorNewWord

      public static void fireEditorNewWord(String newWord)
      Fire event.