Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 @Override
 public void execute() {
   BaseXLayout.copy(selectedValue());
 }