Package org.jitterbit.ui.util.find

Examples of org.jitterbit.ui.util.find.TextSearchModel


        checkNotNull(treeMapper, "translator");
        checkNotNull(matchDisplayer, "matchDisplayer");
        this.treeMapper = treeMapper;
        this.matchDisplayer = matchDisplayer;
        target = new MappingSearchAndReplaceTarget(treeMapper, translator);
        TextSearchModel model = new TextSearchModel(); // TODO: Use a shared model
        controller = new TextSearchController(model);
        controller.addObserver(new SearchListener());
        controller.setTarget(target);
        searchParametersUi = TextSearchUi.searchAndReplace(model);
        searchParametersUi.setDefaultAction(controller.getFindAction());
View Full Code Here


        SearchAndReplaceTarget target = createTarget();
        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();
View Full Code Here

        }
    }

    private TextSearchModel getParameterModel() {
        if (parameterModel == null) {
            parameterModel = new TextSearchModel();
        }
        return parameterModel;
    }
View Full Code Here

            }
        });
    }

    private void openDialog() {
        TextSearchModel searchModel = getSearchModel();
        SearchTarget target = new TreeSearchTarget(tree);
        SearchTextDialog dialog = new SearchTextDialog(searchModel, target);
        dialog.setTitle(title);
        Window dialogOwner = getDialogOwner();
        dialog.show(dialogOwner);
View Full Code Here

        dialog.show(dialogOwner);
    }

    private TextSearchModel getSearchModel() {
        if (sharedModel == null) {
            sharedModel = new TextSearchModel();
        }
        return sharedModel;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.util.find.TextSearchModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.