Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove dead main method of aligner #1234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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:
* <ol>
* <li>Source language
* <li>Source file path
* <li>Target language
* <li>Target file path
* </ol>
*
* @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);
}
}
Loading