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); } } }
public Action_AddInstance(InstanceTableWidget widget) { super((widget.getState()).getAddInstanceButtonTooltip(), Icons.getAddIcon()); _widget = widget; _dialogTitle = (widget.getState()).getAddInstanceDialogTitle(); }