use of com.intellij.openapi.actionSystem.impl.InplaceActionButtonLook in project intellij-community by JetBrains.
the class SearchTextArea method createButton.
private static ActionButton createButton(AnAction action) {
Presentation presentation = action.getTemplatePresentation();
Dimension d = new JBDimension(16, 16);
ActionButton button = new ActionButton(action, presentation, ActionPlaces.UNKNOWN, d) {
@Override
protected DataContext getDataContext() {
return DataManager.getInstance().getDataContext(this);
}
};
button.setLook(new InplaceActionButtonLook());
button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
button.updateIcon();
return button;
}
Aggregations