mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
platform: show / hide buttons is a part of the renderer
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ class DaemonTooltipActionProvider : TooltipActionProvider {
|
||||
}
|
||||
|
||||
class DaemonTooltipAction(private val myFixText: String, private val myActualOffset: Int) : TooltipAction {
|
||||
|
||||
|
||||
override fun getText(): String {
|
||||
return myFixText
|
||||
}
|
||||
|
||||
+3
-1
@@ -104,7 +104,9 @@ internal class DaemonTooltipWithActionRenderer(text: String?,
|
||||
JBUI.insets(3, 3, 0, 3), 0, 0)
|
||||
grid.add(settingsComponent, settingsConstraints)
|
||||
|
||||
addActionsRow(hintHint, hint, editor, actions, grid)
|
||||
if (isShowActions()) {
|
||||
addActionsRow(hintHint, hint, editor, actions, grid)
|
||||
}
|
||||
}
|
||||
|
||||
private fun addActionsRow(hintHint: HintHint,
|
||||
|
||||
-2
@@ -27,8 +27,6 @@ public interface TooltipActionProvider {
|
||||
|
||||
@Nullable
|
||||
static TooltipAction calcTooltipAction(@NotNull final HighlightInfo info, @NotNull Editor editor) {
|
||||
if (!isShowActions()) return null;
|
||||
|
||||
for (TooltipActionProvider extension : EXTENSION_POINT_NAME.getExtensions()) {
|
||||
TooltipAction action = extension.getTooltipAction(info, editor);
|
||||
if (action != null) return action;
|
||||
|
||||
Reference in New Issue
Block a user