/** * Constructor. * * @param view project view */ ProjectList(final ProjectView view) { project = view; setBorder(BaseXLayout.border(4, 4, 4, 4)); setCellRenderer(new CellRenderer()); addMouseListener( new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() == 2) open(); } }); new BaseXPopup(this, view.gui, commands); }
@Override public void execute() { BaseXLayout.copy(selectedValue()); }