Bug 113333 [api][content assist] API for setMessage in ContentAssistant without cycling mode enabled
Version: 3.2.0 Build id: N20051018-0010 I would like to change the behavior of ContentAssistant#setMessage (or add a new method) such that a message is displayed at the bottom of the pop up also if ContentAssistant#setCyclingMode is set to false. I also whould like to have something like ContentAssistant#clearMessage or ContentAssistant#setMessage(null) which should result in removing the label at the bottom of the pop up. At the moment I use setMessage("") which does not remove the label. Thanks.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ContentAssistProcessor.java
private String fErrorMessage;
	
	public ContentAssistProcessor(ContentAssistant assistant, String partition) {
		Assert.isNotNull(partition);
		Assert.isNotNull(assistant);
		fPartition= partition;
		fCategories= CompletionProposalComputerRegistry.getDefault().getProposalCategories();
		fAssistant= assistant;
		fAssistant.addCompletionListener(new ICompletionListener() {
			
			/*
			 * @see org.eclipse.jface.text.contentassist.ICompletionListener#assistSessionStarted(org.eclipse.jface.text.contentassist.ContentAssistEvent)
			 */
			public void assistSessionStarted(ContentAssistEvent event) {
				if (event.processor != ContentAssistProcessor.this)
					return;
				
				fCategoryIteration= getCategoryIteration();
				fRepetition= 0;
				fIterationGesture= getIterationGesture();
				if (fCategoryIteration.size() == 1) {
					event.assistant.setCyclingMode(false);
					event.assistant.setShowEmptyList(false);
				} else {
					event.assistant.setCyclingMode(true);
					event.assistant.setMessage(createIterationMessage());
					event.assistant.setShowEmptyList(true);
				}
			}