Lines 136-142
Link Here
|
136 |
private HashMap<String, ArrayList<String>> categoryid2words = new HashMap<String, ArrayList<String>>(); |
136 |
private HashMap<String, ArrayList<String>> categoryid2words = new HashMap<String, ArrayList<String>>(); |
137 |
private HashMap<String, HashMap<Integer, TabInfo>> categoryid2tabs = new HashMap<String, HashMap<Integer, TabInfo>>(); |
137 |
private HashMap<String, HashMap<Integer, TabInfo>> categoryid2tabs = new HashMap<String, HashMap<Integer, TabInfo>>(); |
138 |
private ArrayList<String> disabledCategories = new ArrayList<String>(); |
138 |
private ArrayList<String> disabledCategories = new ArrayList<String>(); |
139 |
private JTextField keymapsSearch = null; |
|
|
140 |
|
139 |
|
141 |
private ArrayList<FileObject> advancedFOs = new ArrayList<FileObject>(); |
140 |
private ArrayList<FileObject> advancedFOs = new ArrayList<FileObject>(); |
142 |
private HashMap<String, Integer> dublicateKeywordsFOs = new HashMap<String, Integer>(); |
141 |
private HashMap<String, Integer> dublicateKeywordsFOs = new HashMap<String, Integer>(); |
Lines 466-478
Link Here
|
466 |
component = components[i]; |
465 |
component = components[i]; |
467 |
String text; |
466 |
String text; |
468 |
|
467 |
|
469 |
if (component instanceof JLabel) { |
|
|
470 |
text = ((JLabel) component).getText(); |
471 |
// hack to search into Keymaps category |
472 |
if(categoryID.equals("Keymaps") && text.equals("Search:")) { // NOI18N |
473 |
keymapsSearch = (JTextField)((JLabel) component).getLabelFor(); |
474 |
} |
475 |
} |
476 |
if(component instanceof JTabbedPane) { |
468 |
if(component instanceof JTabbedPane) { |
477 |
if(categoryid2tabbedpane.get(categoryID) == null) { |
469 |
if(categoryid2tabbedpane.get(categoryID) == null) { |
478 |
categoryid2tabbedpane.put(categoryID, (JTabbedPane)component); |
470 |
categoryid2tabbedpane.put(categoryID, (JTabbedPane)component); |
Lines 629-643
Link Here
|
629 |
} else { |
621 |
} else { |
630 |
setCurrentCategory(CategoryModel.getInstance().getCategory(id), null); |
622 |
setCurrentCategory(CategoryModel.getInstance().getCategory(id), null); |
631 |
} |
623 |
} |
|
|
624 |
CategoryModel.getInstance().getCurrent().handleSuccessfulSearchInController(searchText); |
632 |
} else { |
625 |
} else { |
633 |
handleNotFound(id, exactCategory); |
626 |
handleNotFound(id, exactCategory); |
634 |
} |
627 |
} |
635 |
} else { |
628 |
} else { |
636 |
handleNotFound(id, exactCategory); |
629 |
handleNotFound(id, exactCategory); |
637 |
} |
630 |
} |
638 |
if (keymapsSearch != null) { |
|
|
639 |
keymapsSearch.setText(searchText); |
640 |
} |
641 |
} |
631 |
} |
642 |
} |
632 |
} |
643 |
|
633 |
|
Lines 721-729
Link Here
|
721 |
} |
711 |
} |
722 |
setCurrentCategory(CategoryModel.getInstance().getCurrent(), null); |
712 |
setCurrentCategory(CategoryModel.getInstance().getCurrent(), null); |
723 |
disabledCategories.clear(); |
713 |
disabledCategories.clear(); |
724 |
if(keymapsSearch != null) { |
|
|
725 |
keymapsSearch.setText(""); //NOI18N |
726 |
} |
727 |
} |
714 |
} |
728 |
} |
715 |
} |
729 |
|
716 |
|