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

Have command line aligner correctly load plugins #1236

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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 @@ -60,6 +60,7 @@
import org.omegat.util.StringUtil;
import org.omegat.util.gui.LanguageComboBoxRenderer;
import org.omegat.util.gui.StaticUIUtils;
import org.omegat.util.gui.UIDesignManager;

/**
* Controller for align file picker UI
Expand Down Expand Up @@ -523,7 +524,9 @@ public static void main(String[] args) throws Exception {
System.setProperty("apple.laf.useScreenMenuBar", "true");

Preferences.init();
UIDesignManager.initialize();
PluginUtils.loadPlugins(Collections.emptyMap());
FilterMaster.setFilterClasses(PluginUtils.getFilterClasses());
Core.setFilterMaster(new FilterMaster(FilterMaster.createDefaultFiltersConfig()));
Core.setSegmenter(new Segmenter(SRX.getDefault()));
AlignFilePickerController picker = new AlignFilePickerController();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
import org.omegat.util.Preferences;
import org.omegat.util.StringUtil;
import org.omegat.util.gui.DelegatingComboBoxRenderer;
import org.omegat.util.gui.FontUtil;
import org.omegat.util.gui.RoundedCornerBorder;
import org.omegat.util.gui.Styles;

Expand Down Expand Up @@ -542,7 +543,7 @@ public void mouseClicked(MouseEvent e) {

alignPanel.table.setTransferHandler(new AlignTransferHandler());
alignPanel.table.addPropertyChangeListener("dropLocation", new DropLocationListener());
alignPanel.table.setFont(Core.getMainWindow().getApplicationFont());
alignPanel.table.setFont(FontUtil.getScaledFont());
CoreEvents.registerFontChangedEventListener(alignPanel.table::setFont);

// Set initial state
Expand Down
Loading