Package com.intellij.find

Examples of com.intellij.find.FindManager


               
                long updateTimestamp = System.currentTimeMillis();
                searchResult.startUpdating(updateTimestamp);

                Project project = dataModel.getProject();
                FindManager findManager = FindManager.getInstance(project);

                for (Object r : dataModel.getRows()) {
                    searchResult.checkTimestamp(updateTimestamp);
                    DataModelRow row = (DataModelRow) r;
                    for (Object c : row.getCells()) {
                        searchResult.checkTimestamp(updateTimestamp);
                        DataModelCell cell = (DataModelCell) c;
                        String userValue = cell.getFormattedUserValue();
                        if (userValue != null) {
                            int findOffset = 0;
                            while (true) {
                                FindResult findResult = findManager.findString(userValue, findOffset, findModel);
                                searchResult.checkTimestamp(updateTimestamp);
                                if (findResult.isStringFound()) {
                                    searchResult.addMatch(cell, findResult.getStartOffset(), findResult.getEndOffset());
                                    findOffset = findResult.getEndOffset();
                                } else {
View Full Code Here


                if (!wholeWordsApplicable(stringToFind)) {
                    findModel.setWholeWordsOnly(false);
                }
                updateUIWithFindModel();
                updateResults(true);
                FindManager findManager = getFindManager();
                syncFindModels(findManager.getFindInFileModel(), DataSearchComponent.this.findModel);
            }
        });

        updateUIWithFindModel();
        //new CloseOnESCAction(this, table);
View Full Code Here

    }

    public void initializeFindModel() {
        if (findModel == null) {
            findModel = new DataFindModel();
            FindManager findManager = getFindManager();
            findModel.copyFrom(findManager.getFindInFileModel());
            findModel.setPromptOnReplace(false);
        }
/*
        String stringToFind = searchableComponent.getSelectedText();
        findModel.setStringToFind(StringUtil.isEmpty(stringToFind) ? "" : stringToFind);
View Full Code Here

                    getSearchResult().clear();
                    return;
                }
            }

            FindManager findManager = getFindManager();
            if (allowedToChangedEditorSelection) {
                findManager.setFindWasPerformed();
                FindModel copy = new FindModel();
                copy.copyFrom(findModel);
                copy.setReplaceState(false);
                findManager.setFindNextModel(copy);
            }

            searchResultController.updateResult(findModel);
        }
    }
View Full Code Here

        PsiDocumentManager.getInstance(project).commitAllDocuments();

        final DataContext dataContext = e.getDataContext();

        final FindManager findManager = FindManager.getInstance(project);
        final FindModel findModel = (FindModel) findManager.getFindInFileModel().clone();


        final List<AngularItem> validResults = new ArrayList<AngularItem>();

        findModel.setRegularExpressions(true);
View Full Code Here

        Collection<JSQualifiedNamedElement> scopes = JSResolveUtil.findElementsByName("$scope", project, scope);


        String s = "\\$scope\\.(\\w*)";

        final FindManager findManager = FindManager.getInstance(project);
        final FindModel findModel = (FindModel) findManager.getFindInFileModel().clone();


        findModel.setRegularExpressions(true);
        findModel.setFileFilter("*.js, *.html");

 
View Full Code Here

TOP

Related Classes of com.intellij.find.FindManager

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.