Skip to content

Commit

Permalink
Reworking search toolbar UI - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hajdam committed Apr 7, 2024
1 parent 861d831 commit 7ad8906
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void onCreate(BinEdComponentPanel componentPanel) {
binarySearchService = new BinarySearchServiceImpl(codeArea);
binarySearch.setBinarySearchService(binarySearchService);
binarySearch.setPanelClosingListener(this::hideSearchPanel);
binarySearch.setTargetComponent(componentPanel);

BinedModule binedModule = application.getModuleRepository().getModuleByInterface(BinedModule.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.swing.JComponent;
import javax.swing.JPanel;
import java.awt.Dialog;
import java.util.ArrayList;
Expand Down Expand Up @@ -297,6 +298,10 @@ public void setBinarySearchService(BinarySearchService binarySearchService) {
this.binarySearchService = binarySearchService;
}

public void setTargetComponent(JComponent targetComponent) {
binarySearchPanel.setTargetComponent(targetComponent);
}

public void setPanelClosingListener(PanelClosingListener panelClosingListener) {
this.panelClosingListener = panelClosingListener;
}
Expand Down
Loading

0 comments on commit 7ad8906

Please sign in to comment.