Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-12-11 02:38:35 -0500
committerAlexander Kurtakov2017-12-11 02:38:35 -0500
commit5152d5768af1679e125fd97bf77de426d8c55210 (patch)
treeab1a7e35a6ede029b473fa66c0c0d6528fb54754 /org.eclipse.ui.genericeditor
parent8fded5a4a918f2993cbc344c94a3033e1abff0e8 (diff)
downloadeclipse.platform.text-5152d5768af1679e125fd97bf77de426d8c55210.tar.gz
eclipse.platform.text-5152d5768af1679e125fd97bf77de426d8c55210.tar.xz
eclipse.platform.text-5152d5768af1679e125fd97bf77de426d8c55210.zip
Bug 528395 - Make private method in genericeditor's
DefaultContentAssistProcessor static Fixing warning in the code. Change-Id: I50932aeed66cdb02d015f29a31f68280f735552c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.ui.genericeditor')
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
index 755380112..0cd456aa6 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
@@ -74,7 +74,7 @@ public class DefaultContentAssistProcessor implements IContentAssistProcessor {
return proposals.toArray(new ICompletionProposal[proposals.size()]);
}
- private int findStartingPoint(String text, int offset) {
+ private static int findStartingPoint(String text, int offset) {
String substring = text.substring(0, offset);
Matcher m = NON_ALPHANUMERIC_LAST_PATTERN.matcher(substring);
m.find();

Back to the top