[svn] Set up title + icon for "merge source" action in the constructor

Instead of doing it on each update().
This commit is contained in:
Kirill Likhodedov
2013-09-26 14:05:07 +04:00
parent 320e6b33dd
commit c4ea074eb9
@@ -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));
}