DBView: Move Import to Add and exception fix

This commit is contained in:
Gregory Shrago
2011-03-04 20:47:01 +03:00
parent d7171e0589
commit a1b6358cf6
@@ -148,7 +148,13 @@ public class ActionButton extends JComponent implements ActionButtonComponent {
return presentation;
}
});
popupMenu.getComponent().show(this, getWidth(), 0);
if (ActionPlaces.isToolbarPlace(event.getPlace())) {
popupMenu.getComponent().show(this, 0, getHeight());
}
else {
popupMenu.getComponent().show(this, getWidth(), 0);
}
} else {
myAction.actionPerformed(event);
}