int x = e.getX();
int y = e.getY();
Location pt = Location.create(x, y);
JPopupMenu menu;
Project proj = canvas.getProject();
Selection sel = proj.getSelection();
Collection<Component> in_sel = sel.getComponentsContaining(pt, g);
if (!in_sel.isEmpty()) {
Component comp = in_sel.iterator().next();
if (sel.getComponents().size() > 1) {
menu = new MenuSelection(proj);