ParameterInfoUIContextEx: cleanup

GitOrigin-RevId: ecad2cdee84042b8c489f7824dbb06aca96b5386
This commit is contained in:
Yann Cébron
2019-06-05 18:59:46 +03:00
committed by intellij-monorepo-bot
parent 38d29880a1
commit 51fbd9bce1
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,25 +24,26 @@ import java.util.EnumSet;
/**
* Richer interface for describing a popup hint contents.
* User: dcheryasov
*
* @author dcheryasov
*/
public interface ParameterInfoUIContextEx extends ParameterInfoUIContext {
/**
* Set the contents and formatting of a one-line, multi-formatted popup hint.
* @param texts pieces ot text to be put together, each individually formattable.
* @param flags a set of Flags; flags[i] describes formatting of texts[i].
*
* @param texts pieces ot text to be put together, each individually formattable.
* @param flags a set of Flags; flags[i] describes formatting of texts[i].
* @param background background color of the hint.
*/
String setupUIComponentPresentation(String[] texts, EnumSet<Flag>[] flags, Color background);
enum Flag {
HIGHLIGHT, DISABLE, STRIKEOUT // more to come
HIGHLIGHT, DISABLE, STRIKEOUT
}
/**
* Escape function for convert custom tags to html.
* @param escapeFunction
* @param escapeFunction Escape function to convert custom tags to HTML.
*/
void setEscapeFunction(@Nullable Function<? super String, String> escapeFunction);
}