Search in sources :

Example 1 with LocationTextField

use of com.mucommander.ui.main.LocationTextField in project mucommander by mucommander.

the class QuickFindAction method performAction.

@Override
public void performAction() {
    AbstractFile currentFile = mainFrame.getActivePanel().getCurrentFolder();
    FileURL searchURL = SearchUtils.toSearchURL(currentFile);
    LocationTextField locationTextField = mainFrame.getActivePanel().getLocationTextField();
    locationTextField.setText(searchURL.toString());
    locationTextField.requestFocus();
}
Also used : FileURL(com.mucommander.commons.file.FileURL) LocationTextField(com.mucommander.ui.main.LocationTextField) AbstractFile(com.mucommander.commons.file.AbstractFile)

Aggregations

AbstractFile (com.mucommander.commons.file.AbstractFile)1 FileURL (com.mucommander.commons.file.FileURL)1 LocationTextField (com.mucommander.ui.main.LocationTextField)1