/** Get position pairs finder depending on find properties */ public FinderFactory.BlocksFinder getBlocksFinder(BaseDocument doc, Map props) { FinderFactory.BlocksFinder blocksFinder = (FinderFactory.BlocksFinder) doc.getProperty(BaseDocument.BLOCKS_FINDER_PROP); if (blocksFinder == null) { blocksFinder = getFinderCreator().createBlocksFinder(doc, getValidFindProperties(props)); } return blocksFinder; }
/** Get position pairs finder depending on find properties */ public FinderFactory.BlocksFinder getBlocksFinder(BaseDocument doc, Map props) { FinderFactory.BlocksFinder blocksFinder = (FinderFactory.BlocksFinder)doc.getProperty(BaseDocument.BLOCKS_FINDER_PROP); if (blocksFinder == null) { blocksFinder = getFinderCreator().createBlocksFinder(doc, getValidFindProperties(props)); } return blocksFinder; }
/** Get opposite direction finder depending on find properties */ public FinderFactory.StringFinder getStringBwdFinder(BaseDocument doc, Map props) { FinderFactory.StringFinder stringBwdFinder = (FinderFactory.StringFinder) doc.getProperty(BaseDocument.STRING_BWD_FINDER_PROP); if (stringBwdFinder == null) { stringBwdFinder = getFinderCreator().createBwdFinder(doc, getValidFindProperties(props)); doc.putProperty(BaseDocument.STRING_BWD_FINDER_PROP, stringBwdFinder); } return stringBwdFinder; }
/** Get opposite direction finder depending on find properties */ public FinderFactory.StringFinder getStringBwdFinder(BaseDocument doc, Map props) { FinderFactory.StringFinder stringBwdFinder = (FinderFactory.StringFinder)doc.getProperty(BaseDocument.STRING_BWD_FINDER_PROP); if (stringBwdFinder == null) { stringBwdFinder = getFinderCreator().createBwdFinder(doc, getValidFindProperties(props)); doc.putProperty(BaseDocument.STRING_BWD_FINDER_PROP, stringBwdFinder); } return stringBwdFinder; }
/** Get finder depending on find properties */ public FinderFactory.StringFinder getStringFinder(BaseDocument doc, Map props) { FinderFactory.StringFinder stringFinder = (FinderFactory.StringFinder)doc.getProperty(BaseDocument.STRING_FINDER_PROP); if (stringFinder == null) { stringFinder = getFinderCreator().createFinder(doc, getValidFindProperties(props)); doc.putProperty(BaseDocument.STRING_FINDER_PROP, stringFinder); } return stringFinder; }
/** Get finder depending on find properties */ public FinderFactory.StringFinder getStringFinder(BaseDocument doc, Map props) { FinderFactory.StringFinder stringFinder = (FinderFactory.StringFinder) doc.getProperty(BaseDocument.STRING_FINDER_PROP); if (stringFinder == null) { stringFinder = getFinderCreator().createFinder(doc, getValidFindProperties(props)); doc.putProperty(BaseDocument.STRING_FINDER_PROP, stringFinder); } return stringFinder; }
int totalCnt = 0; props = getValidFindProperties(props); props = new HashMap(props); props.put(SettingsNames.FIND_WRAP_SEARCH, Boolean.FALSE);
int totalCnt = 0; props = getValidFindProperties(props); props = new HashMap(props); props.put(SettingsNames.FIND_WRAP_SEARCH, Boolean.FALSE);
int blockEndPos, Map props, boolean oppositeDir) throws BadLocationException { if (c != null) { props = getValidFindProperties(props); BaseDocument doc = (BaseDocument)c.getDocument(); FinderFactory.StringFinder sf
props = getValidFindProperties(props); BaseDocument doc = (BaseDocument) c.getDocument(); FinderFactory.StringFinder sf = oppositeDir ? getStringBwdFinder(doc, props) : getStringFinder(doc, props);
public boolean replace(Map props, boolean oppositeDir) throws BadLocationException { incSearchReset(); props = getValidFindProperties(props); Boolean b = (Boolean) props.get(SettingsNames.FIND_BACKWARD_SEARCH); boolean back = (b != null && b.booleanValue());
public boolean replace(Map props, boolean oppositeDir) throws BadLocationException { incSearchReset(); props = getValidFindProperties(props); Boolean b = (Boolean)props.get(SettingsNames.FIND_BACKWARD_SEARCH); boolean back = (b != null && b.booleanValue());
public boolean incSearch(Map props) { props = getValidFindProperties(props); Boolean b = (Boolean) props.get(SettingsNames.FIND_INC_SEARCH); if (b != null && b.booleanValue()) { // inc search enabled
public boolean incSearch(Map props, int caretPos) { props = getValidFindProperties(props); Boolean b = (Boolean)props.get(SettingsNames.FIND_INC_SEARCH); if (b != null && b.booleanValue()) { // inc search enabled
props = getValidFindProperties(props); boolean back = isBackSearch(props, oppositeDir); JTextComponent c = Utilities.getLastActiveComponent();
props = getValidFindProperties(props); boolean back = isBackSearch(props, oppositeDir); JTextComponent c = Utilities.getLastActiveComponent();