mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix SwitchTaskAction toolbar button
This commit is contained in:
@@ -58,14 +58,12 @@ import java.util.List;
|
||||
*/
|
||||
public class SwitchTaskAction extends ComboBoxAction implements DumbAware {
|
||||
public JComponent createCustomComponent(final Presentation presentation) {
|
||||
ComboBoxButton button = new ComboBoxButton(presentation) {
|
||||
return new ComboBoxButton(presentation) {
|
||||
@Override
|
||||
protected JBPopup createPopup(Runnable onDispose) {
|
||||
return SwitchTaskAction.createPopup(DataManager.getInstance().getDataContext(this), onDispose, false);
|
||||
}
|
||||
};
|
||||
button.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 2));
|
||||
return button;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user