Ejemplo n.º 1
0
 public void actionPerformed(ActionEvent e) {
   if (_widget.isEditable()) {
     Collection selections =
         DisplayUtilities.pickInstances(
             (Component) _widget, _widget.getAllowedClses(), _dialogTitle);
     if ((null != selections) && (selections.size() != 0)) {
       _widget.addValues(selections);
     }
   }
 }
Ejemplo n.º 2
0
 public Action_AddInstance(InstanceTableWidget widget) {
   super((widget.getState()).getAddInstanceButtonTooltip(), Icons.getAddIcon());
   _widget = widget;
   _dialogTitle = (widget.getState()).getAddInstanceDialogTitle();
 }