diff --git a/aligner/src/main/java/org/omegat/gui/align/AlignFilePickerController.java b/aligner/src/main/java/org/omegat/gui/align/AlignFilePickerController.java index b111897522..5bdfd81c85 100644 --- a/aligner/src/main/java/org/omegat/gui/align/AlignFilePickerController.java +++ b/aligner/src/main/java/org/omegat/gui/align/AlignFilePickerController.java @@ -31,7 +31,6 @@ import java.awt.event.ItemEvent; import java.io.File; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import java.util.ResourceBundle; import java.util.Vector; @@ -50,13 +49,9 @@ import javax.swing.text.JTextComponent; import org.omegat.core.Core; -import org.omegat.core.segmentation.SRX; -import org.omegat.core.segmentation.Segmenter; import org.omegat.filters2.master.FilterMaster; -import org.omegat.filters2.master.PluginUtils; import org.omegat.util.Language; import org.omegat.util.Log; -import org.omegat.util.Preferences; import org.omegat.util.StringUtil; import org.omegat.util.gui.LanguageComboBoxRenderer; import org.omegat.util.gui.StaticUIUtils; @@ -505,34 +500,4 @@ public boolean importData(TransferSupport support) { } } } - - /** - * Entry point for debugging or standalone use. Optionally accepts four - * arguments to pre-fill the picker: - *
    - *
  1. Source language - *
  2. Source file path - *
  3. Target language - *
  4. Target file path - *
- * - * @param args command arguments. - * @throws Exception when failed to ininitalize OmegaT core. - */ - public static void main(String[] args) throws Exception { - System.setProperty("apple.laf.useScreenMenuBar", "true"); - - Preferences.init(); - PluginUtils.loadPlugins(Collections.emptyMap()); - Core.setFilterMaster(new FilterMaster(FilterMaster.createDefaultFiltersConfig())); - Core.setSegmenter(new Segmenter(SRX.getDefault())); - AlignFilePickerController picker = new AlignFilePickerController(); - if (args.length == 4) { - picker.sourceLanguage = new Language(args[0]); - picker.sourceFile = args[1]; - picker.targetLanguage = new Language(args[2]); - picker.targetFile = args[3]; - } - picker.show(null); - } }