mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[svn] Set up title + icon for "merge source" action in the constructor
Instead of doing it on each update().
This commit is contained in:
@@ -31,10 +31,12 @@ import java.awt.event.KeyEvent;
|
||||
|
||||
public class MergeSourceDetailsAction extends AnAction implements DumbAware {
|
||||
|
||||
public MergeSourceDetailsAction() {
|
||||
super("Show merge sources details", null, SvnIcons.MergeSourcesDetails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
e.getPresentation().setIcon(SvnIcons.MergeSourcesDetails);
|
||||
e.getPresentation().setText("Show merge sources details");
|
||||
e.getPresentation().setEnabled(enabled(e));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user