Skip to content

Commit

Permalink
refactor: import actions sub classes
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed May 29, 2024
1 parent 9e78061 commit a12a52c
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 136 deletions.
8 changes: 5 additions & 3 deletions src/org/omegat/gui/accesstool/AccessTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
import org.omegat.core.Core;
import org.omegat.core.CoreEvents;
import org.omegat.core.events.IProjectEventListener;
import org.omegat.gui.main.MainWindowMenuHandler;
import org.omegat.gui.main.MainWindowMenuHandler.EditFindInProjectMenuItemAction;
import org.omegat.gui.main.MainWindowMenuHandler.OptionsPreferencesMenuItemAction;
import org.omegat.gui.main.ProjectUICommands;
import org.omegat.util.OConsts;
import org.omegat.util.OStrings;
Expand Down Expand Up @@ -116,12 +117,13 @@ public void initComponents() {
sourceFilesCB.setMaximumSize(new Dimension(cbWidth, cbHeight));
add(sourceFilesCB);

// These buttons show only icon
searchButton = new JButton();
searchButton.setAction(new MainWindowMenuHandler.EditFindInProjectMenuItemAction());
searchButton.setAction(new EditFindInProjectMenuItemAction());
searchButton.setText("");
searchButton.setBorderPainted(false);
settingsButton = new JButton();
settingsButton.setAction(new MainWindowMenuHandler.OptionsPreferencesMenuItemAction());
settingsButton.setAction(new OptionsPreferencesMenuItemAction());
settingsButton.setText("");
settingsButton.setBorderPainted(false);

Expand Down
Loading

0 comments on commit a12a52c

Please sign in to comment.