mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
return created label from setupExtension
GitOrigin-RevId: f612f65b1cc07042357a832c77059d467132b9c0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9e82931146
commit
77faaa3c41
@@ -16,7 +16,7 @@ import java.awt.*;
|
||||
public final class ExtendableEditorSupport {
|
||||
private static final Key<JPanel> BUTTON_CONTAINER = Key.create("EditorButtonContainer");
|
||||
|
||||
public static void setupExtension(@NotNull EditorEx editor,
|
||||
public static JLabel setupExtension(@NotNull EditorEx editor,
|
||||
Color background,
|
||||
ExtendableTextComponent.Extension extension) {
|
||||
JLabel label = ExpandableSupport.createLabel(extension);
|
||||
@@ -34,5 +34,7 @@ public final class ExtendableEditorSupport {
|
||||
scrollBar.setOpaque(true);
|
||||
}
|
||||
panel.add(label);
|
||||
|
||||
return label;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user