Bug 564952 - Replace use of org.eclipse.ui.internal.misc.StringMatcher
Summary: Replace use of org.eclipse.ui.internal.misc.StringMatcher
Status: NEW
Alias: None
Product: Babel
Classification: Technology
Component: Plugins (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Babel Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-06 02:36 EDT by Thomas Wolf CLA
Modified: 2022-07-05 17:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wolf CLA 2020-07-06 02:36:15 EDT
org.eclipse.ui.internal.misc.StringMatcher is an internal class intended to be removed in bug 563485.

This could be replaced by API class org.eclipse.core.text.StringMatcher, available since org.eclipse.core.runtime 3.18.0.

(If MsgEditorPreferences indeed needs the word-splitting behavior of o.e.ui.internal.misc.StringMatcher, then the replacement would be o.e.ui.internal.misc.TextMatcher, but that is also an internal class.)

[1] https://git.eclipse.org/c/babel/plugins.git/tree/org.eclipse.babel.editor/src/org/eclipse/babel/editor/preferences/MsgEditorPreferences.java#n468
Comment 1 Thomas Wolf CLA 2020-07-14 17:13:37 EDT
If the word-splitting is needed, or if you can't use org.eclipse.core.runtime 3.18.0, you could use

  import org.eclipse.ui.dialogs.SearchPattern;

  SearchPattern matcher = new SearchPattern(SearchPattern.RULE_PATTERN_MATCH);
  matcher.setPattern(pattern);

SearchPattern is API, and should give the same behavior as
new StringMatcher(pattern, true, false);
Comment 2 Eclipse Genie CLA 2022-07-05 17:11:55 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.