Lines 43-48
Link Here
|
43 |
protected final static char[] METHOD_TRIGGERS= new char[] { ';', ',', '.', '\t', '[', ' ' }; |
43 |
protected final static char[] METHOD_TRIGGERS= new char[] { ';', ',', '.', '\t', '[', ' ' }; |
44 |
/** Triggers for method proposals. Do not modify. */ |
44 |
/** Triggers for method proposals. Do not modify. */ |
45 |
protected final static char[] METHOD_WITH_ARGUMENTS_TRIGGERS= new char[] { '(', '-', ' ' }; |
45 |
protected final static char[] METHOD_WITH_ARGUMENTS_TRIGGERS= new char[] { '(', '-', ' ' }; |
|
|
46 |
/** Triggers for method name proposals (static imports). Do not modify. */ |
47 |
protected final static char[] METHOD_NAME_TRIGGERS= new char[] { ';' }; |
46 |
|
48 |
|
47 |
protected static class ExitPolicy implements IExitPolicy { |
49 |
protected static class ExitPolicy implements IExitPolicy { |
48 |
|
50 |
|
Lines 155-160
Link Here
|
155 |
} |
157 |
} |
156 |
|
158 |
|
157 |
protected char[] computeTriggerCharacters() { |
159 |
protected char[] computeTriggerCharacters() { |
|
|
160 |
if (fProposal.getKind() == CompletionProposal.METHOD_NAME_REFERENCE) |
161 |
return METHOD_NAME_TRIGGERS; |
158 |
if (hasParameters()) |
162 |
if (hasParameters()) |
159 |
return METHOD_WITH_ARGUMENTS_TRIGGERS; |
163 |
return METHOD_WITH_ARGUMENTS_TRIGGERS; |
160 |
return METHOD_TRIGGERS; |
164 |
return METHOD_TRIGGERS; |