diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionProposalComputerRegistry.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionProposalComputerRegistry.java index 69e8953048d..ad52949f8cb 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionProposalComputerRegistry.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionProposalComputerRegistry.java @@ -67,7 +67,7 @@ public final class CompletionProposalComputerRegistry { /** * Returns the default computer registry. *
- * TODO keep this or add some other singleton, e.g. JavaPlugin? + * TODO keep this or add some other singleton, e.g. CUIPlugin? *
* * @return the singleton instance @@ -118,7 +118,7 @@ public final class CompletionProposalComputerRegistry { /** * Returns the list of {@link CompletionProposalComputerDescriptor}s describing all extensions - * to thejavaCompletionProposalComputer
extension point for the given partition
+ * to the completionProposalComputer
extension point for the given partition
* type.
*
* A valid partition is either one of the constants defined in
@@ -137,7 +137,7 @@ public final class CompletionProposalComputerRegistry {
*
* @param partition
* the partition type for which to retrieve the computer descriptors
- * @return the list of extensions to the javaCompletionProposalComputer
extension
+ * @return the list of extensions to the completionProposalComputer
extension
* point (element type: {@link CompletionProposalComputerDescriptor})
*/
List getProposalComputerDescriptors(String partition) {
@@ -148,7 +148,7 @@ public final class CompletionProposalComputerRegistry {
/**
* Returns the list of {@link CompletionProposalComputerDescriptor}s describing all extensions
- * to the javaCompletionProposalComputer
extension point.
+ * to the completionProposalComputer
extension point.
*
* The returned list is read-only and is sorted in the order that the extensions were read in. * There are no duplicate elements in the returned list. The returned list may change if plug-ins @@ -158,7 +158,7 @@ public final class CompletionProposalComputerRegistry { * over it. *
* - * @return the list of extensions to thejavaCompletionProposalComputer
extension
+ * @return the list of extensions to the completionProposalComputer
extension
* point (element type: {@link CompletionProposalComputerDescriptor})
*/
List getProposalComputerDescriptors() {
@@ -168,7 +168,7 @@ public final class CompletionProposalComputerRegistry {
/**
* Returns the list of proposal categories contributed to the
- * javaCompletionProposalComputer
extension point.
+ * completionProposalComputer
extension point.
* *
* The returned list is read-only and is sorted in the order that the extensions were read in. @@ -177,7 +177,7 @@ public final class CompletionProposalComputerRegistry { *
* * @return list of proposal categories contributed to the - *javaCompletionProposalComputer
extension point (element type:
+ * completionProposalComputer
extension point (element type:
* {@link CompletionProposalCategory})
*/
public List getProposalCategories() {
@@ -333,11 +333,15 @@ public final class CompletionProposalComputerRegistry {
final String avoidHint;
final String culpritName= culprit == null ? null : culprit.getName();
- if (affectedPlugins.isEmpty())
+ if (affectedPlugins.isEmpty()) {
+ if (culpritName.equals(CUIPlugin.PLUGIN_ID)) {
+ // don't warn about internal computers
+ return;
+ }
avoidHint= Messages.format(ContentAssistMessages.CompletionProposalComputerRegistry_messageAvoidanceHint, new Object[] {culpritName, category.getDisplayName()});
- else
+ } else {
avoidHint= Messages.format(ContentAssistMessages.CompletionProposalComputerRegistry_messageAvoidanceHintWithWarning, new Object[] {culpritName, category.getDisplayName(), toString(affectedPlugins)});
-
+ }
String message= status.getMessage();
// inlined from MessageDialog.openError
MessageDialog dialog = new MessageDialog(CUIPlugin.getActiveWorkbenchShell(), title, null /* default image */, message, MessageDialog.ERROR, new String[] { IDialogConstants.OK_LABEL }, 0) {