Package org.omegat.core
Class CoreEvents
- java.lang.Object
-
- org.omegat.core.CoreEvents
-
public final class CoreEvents extends java.lang.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
fireApplicationShutdown()
Fire event.static void
fireApplicationStartup()
Fire event.static void
fireEditorNewWord(java.lang.String newWord)
Fire event.static void
fireEntryActivated(SourceTextEntry newEntry)
Fire event.static void
fireEntryNewFile(java.lang.String activeFileName)
Fire event.static void
fireFontChanged(java.awt.Font newFont)
Fire event.static void
fireProjectChange(IProjectEventListener.PROJECT_CHANGE_TYPE eventType)
Fire event.static void
registerApplicationEventListener(IApplicationEventListener listener)
Register listener.static void
registerEditorEventListener(IEditorEventListener listener)
Register listener.static void
registerEntryEventListener(IEntryEventListener listener)
Register listener.static void
registerFontChangedEventListener(IFontChangedEventListener listener)
Register listener.static void
registerProjectChangeListener(IProjectEventListener listener)
Register listener.static void
unregisterApplicationEventListener(IApplicationEventListener listener)
Unregister listener.static void
unregisterEditorEventListener(IEditorEventListener listener)
Unregister listener.static void
unregisterEntryEventListener(IEntryEventListener listener)
Unregister listener.static void
unregisterFontChangedEventListener(IFontChangedEventListener listener)
Unregister listener.static void
unregisterProjectChangeListener(IProjectEventListener listener)
Unregister listener.
-
-
-
Method Detail
-
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(java.lang.String activeFileName)
Fire event.
-
fireEntryActivated
public static void fireEntryActivated(SourceTextEntry newEntry)
Fire event.
-
fireFontChanged
public static void fireFontChanged(java.awt.Font newFont)
Fire event.
-
fireEditorNewWord
public static void fireEditorNewWord(java.lang.String newWord)
Fire event.
-
-