OmegaT/OmegaT-2.0.5-remove-osx-deps.patch

33 lines
1.1 KiB
Diff
Raw Permalink Normal View History

--- src/org/omegat/gui/main/MainWindowMenu.java 2010-05-12 12:09:06.000000000 +0200
+++ src/org/omegat/gui/main/MainWindowMenu.java-gil 2010-12-05 12:17:54.000000000 +0100
@@ -42,7 +42,6 @@
import javax.swing.JMenuItem;
import javax.swing.JSeparator;
-import net.roydesign.mac.MRJAdapter;
import org.omegat.core.Core;
import org.omegat.core.CoreEvents;
@@ -256,21 +255,6 @@
* Initialize Mac-specific features.
*/
private void initMacSpecific() {
- try {
- // MacOSX-specific
- MRJAdapter.addQuitApplicationListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- mainWindowMenuHandler.projectExitMenuItemActionPerformed();
- }
- });
- MRJAdapter.addAboutListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- mainWindowMenuHandler.helpAboutMenuItemActionPerformed();
- }
- });
- } catch (NoClassDefFoundError e) {
- Log.log(e);
- }
}
/**