@@ -9,32 +9,32 @@ class BookmarkOptions(
99) {
1010 val panel = JSplitPane (JSplitPane .HORIZONTAL_SPLIT )
1111 private val loadPanel = JPanel (FlowLayout (FlowLayout .RIGHT ))
12- private val searchBar = JTextField (" " , 20 )
13- private val searchPanel = JPanel (FlowLayout (FlowLayout .LEFT ))
12+ private val filterBar = JTextField (" " , 20 )
13+ private val filterPanel = JPanel (FlowLayout (FlowLayout .LEFT ))
1414 private val tagComboBox = JComboBox (arrayOf<String >())
1515
1616 init {
1717 val loadButton = JButton (" Load Highlighted Proxy History" )
1818 val clearButton = JButton (" Clear Bookmarks" )
19- val searchLabel = JLabel (" Search Bookmarks:" )
20- val searchButton = JButton (" Search " )
19+ val filterLabel = JLabel (" Filter Bookmarks:" )
20+ val filterButton = JButton (" Filter " )
2121 val resetButton = JButton (" Reset" )
2222 tagComboBox.selectedIndex = - 1
2323 tagComboBox.prototypeDisplayValue = " Select tag"
2424 tagComboBox.addItem(" Select tag" )
2525 loadButton.addActionListener { loadHighlightedRequests() }
2626 clearButton.addActionListener { clearBookmarks() }
27- searchBar .addActionListener { searchBookmarks() }
28- searchButton .addActionListener { searchBookmarks() }
27+ filterBar .addActionListener { searchBookmarks() }
28+ filterButton .addActionListener { searchBookmarks() }
2929 resetButton.addActionListener { resetSearch() }
30- searchPanel .add(searchLabel )
31- searchPanel .add(searchBar )
32- searchPanel .add(tagComboBox)
33- searchPanel .add(searchButton )
34- searchPanel .add(resetButton)
30+ filterPanel .add(filterLabel )
31+ filterPanel .add(filterBar )
32+ filterPanel .add(tagComboBox)
33+ filterPanel .add(filterButton )
34+ filterPanel .add(resetButton)
3535 loadPanel.add(clearButton)
3636 loadPanel.add(loadButton)
37- panel.leftComponent = searchPanel
37+ panel.leftComponent = filterPanel
3838 panel.rightComponent = loadPanel
3939 panel.dividerSize = 0
4040 }
@@ -70,7 +70,7 @@ class BookmarkOptions(
7070 fun searchBookmarks () {
7171 val selectedTag = tagComboBox.selectedItem
7272 SwingUtilities .invokeLater {
73- val searchText = searchBar .text.toLowerCase()
73+ val searchText = filterBar .text.toLowerCase()
7474 var filteredBookmarks = this .bookmarksPanel.bookmarks
7575 filteredBookmarks = filterTags(filteredBookmarks)
7676 if (searchText.isNotEmpty()) {
@@ -109,7 +109,7 @@ class BookmarkOptions(
109109 }
110110
111111 private fun resetSearch () {
112- searchBar .text = " "
112+ filterBar .text = " "
113113 bookmarksPanel.model.refreshBookmarks()
114114 rowSelection()
115115 updateTags()
0 commit comments