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
String message= format.format(args);
		return message;
	}
	
	private String getCategoryLabel(int repetition) {
		int iteration= repetition % fCategoryIteration.size();
		if (iteration == 0)
			return JavaTextMessages.ContentAssistProcessor_defaultProposalCategory;
		return toString((CompletionProposalCategory) ((List) fCategoryIteration.get(iteration)).get(0));
	}
	
	private String toString(CompletionProposalCategory category) {
		return category.getName().replaceAll("&", ""); 
	}
	private String getIterationGesture() {
		final IBindingService bindingSvc= (IBindingService) PlatformUI.getWorkbench().getAdapter(IBindingService.class);
		TriggerSequence[] triggers= bindingSvc.getActiveBindingsFor(getContentAssistCommand());
		return triggers.length > 0 ? 
				  MessageFormat.format(JavaTextMessages.ContentAssistProcessor_toggle_affordance_press_gesture, new Object[] { triggers[0].format() })
				: JavaTextMessages.ContentAssistProcessor_toggle_affordance_click_gesture;
	}
	private ParameterizedCommand getContentAssistCommand() {
		final ICommandService commandSvc= (ICommandService) PlatformUI.getWorkbench().getAdapter(ICommandService.class);
		final Command command= commandSvc.getCommand(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
		ParameterizedCommand pCmd= new ParameterizedCommand(command, null);
		return pCmd;
	}
	
}