jEdit.addEditorListener(editorListener = new EditorHandler());
EditBus.addToBus(this);
	public HyperSearch(View view, String defaultFind)	{		super(view,jEdit.getProperty("hypersearch.title"),false);		this.view = view;		fileset = SearchAndReplace.getSearchFileSet();		resultModel = new DefaultListModel();		Container content = getContentPane();		content.setLayout(new BorderLayout());		JPanel panel = new JPanel(new BorderLayout());		panel.add(new JLabel(jEdit.getProperty("hypersearch.find")),			BorderLayout.WEST);		find = new HistoryTextField("find");		find.setText(defaultFind);		panel.add(find, BorderLayout.CENTER);		content.add(panel, BorderLayout.NORTH);		JPanel stretchPanel = new JPanel(new BorderLayout());		panel = new JPanel();		ignoreCase = new JCheckBox(jEdit.getProperty(			"search.ignoreCase"),SearchAndReplace.getIgnoreCase());		regexp = new JCheckBox(jEdit.getProperty(			"search.regexp"),SearchAndReplace.getRegexp());		multifile = new JCheckBox();		multifile.getModel().setSelected(!(fileset			instanceof CurrentBufferSet));		multifileBtn = new JButton(jEdit.getProperty(			"search.multifile"));		panel.add(ignoreCase);		panel.add(regexp);		panel.add(multifile);		panel.add(multifileBtn);		findBtn = new JButton(jEdit.getProperty("hypersearch.findBtn"));		panel.add(findBtn);		getRootPane().setDefaultButton(findBtn);		close = new JButton(jEdit.getProperty("common.close"));		panel.add(close);		stretchPanel.add(panel,BorderLayout.NORTH);		results = new JList();		results.setVisibleRowCount(10);		results.addListSelectionListener(new ListHandler());		stretchPanel.add(new JScrollPane(results), BorderLayout.CENTER);		content.add(stretchPanel, BorderLayout.CENTER);		setDefaultCloseOperation(DISPOSE_ON_CLOSE);		KeyHandler keyListener = new KeyHandler();		ActionHandler actionListener = new ActionHandler();		find.addKeyListener(keyListener);		addKeyListener(keyListener);		multifile.addActionListener(actionListener);		multifileBtn.addActionListener(actionListener);		find.addActionListener(actionListener);		findBtn.addActionListener(actionListener);		close.addActionListener(actionListener);		jEdit.addEditorListener(editorListener = new EditorHandler());		pack();		GUIUtilities.loadGeometry(this,"hypersearch");		show();		find.requestFocus();	}