if (dialog != null) {
dialog.setTarget(target);
dialog.toFront();
} else {
TextSearchModel model = getParameterModel();
dialog = new SearchAndReplaceTextDialog(model, target);
dialog.addObserver(new MatchDisplayer());
dialog.addCloseListener(new DialogCloseListener());
addNewProjectListener();
Window owner = view.getWindow().getFrame();
dialog.show(owner);