mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for bug#52188
This commit is contained in:
parent
9838c1b387
commit
e6bcfeaf82
2 changed files with 16 additions and 14 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
2004-03-09 Hoda Amer
|
||||||
|
Fix for bug#52188: Content Assist: Disabling the '.' (dot) and '->' triggers has no effect.
|
||||||
|
|
||||||
2004-03-08 Hoda Amer
|
2004-03-08 Hoda Amer
|
||||||
Partial fix for bug#52948 : Content Assist: typedef-ed types do not appear in the completion list.
|
Partial fix for bug#52948 : Content Assist: typedef-ed types do not appear in the completion list.
|
||||||
|
|
||||||
|
|
|
@ -146,24 +146,23 @@ public class ContentAssistPreference {
|
||||||
if (jcp == null)
|
if (jcp == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (AUTOACTIVATION_TRIGGERS_DOT.equals(key)) {
|
if ( (AUTOACTIVATION_TRIGGERS_DOT.equals(key))
|
||||||
|
|| (AUTOACTIVATION_TRIGGERS_ARROW.equals(key))
|
||||||
|
|| (AUTOACTIVATION_TRIGGERS_DOUBLECOLON.equals(key)) ){
|
||||||
boolean useDotAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOT);
|
boolean useDotAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOT);
|
||||||
if (useDotAsTrigger){
|
|
||||||
String triggers= "."; //$NON-NLS-1$
|
|
||||||
jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
|
|
||||||
}
|
|
||||||
} else if (AUTOACTIVATION_TRIGGERS_ARROW.equals(key)) {
|
|
||||||
boolean useArrowAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_ARROW);
|
boolean useArrowAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_ARROW);
|
||||||
if (useArrowAsTrigger){
|
|
||||||
String triggers= ">"; //$NON-NLS-1$
|
|
||||||
jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
|
|
||||||
}
|
|
||||||
} else if (AUTOACTIVATION_TRIGGERS_DOUBLECOLON.equals(key)) {
|
|
||||||
boolean useDoubleColonAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOUBLECOLON);
|
boolean useDoubleColonAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOUBLECOLON);
|
||||||
if (useDoubleColonAsTrigger){
|
String triggers = "";
|
||||||
String triggers= ":"; //$NON-NLS-1$
|
if (useDotAsTrigger){
|
||||||
jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
|
triggers += "."; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
if (useArrowAsTrigger){
|
||||||
|
triggers += ">"; //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
if (useDoubleColonAsTrigger){
|
||||||
|
triggers += ":"; //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
jcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
|
||||||
} else if (SHOW_DOCUMENTED_PROPOSALS.equals(key)) {
|
} else if (SHOW_DOCUMENTED_PROPOSALS.equals(key)) {
|
||||||
//boolean enabled= store.getBoolean(SHOW_DOCUMENTED_PROPOSALS);
|
//boolean enabled= store.getBoolean(SHOW_DOCUMENTED_PROPOSALS);
|
||||||
//jcp.restrictProposalsToVisibility(enabled);
|
//jcp.restrictProposalsToVisibility(enabled);
|
||||||
|
|
Loading…
Add table
Reference in a new issue