use of org.netxms.ui.eclipse.objectmanager.dialogs.AddSubnetDialog in project netxms by netxms.
the class VPNSubnets method addTargetAddressListElement.
/**
* Add element to subnet list
*/
private void addTargetAddressListElement(TableViewer elementList, List<InetAddressEx> elements) {
AddSubnetDialog dlg = new AddSubnetDialog(getShell());
if (dlg.open() == Window.OK) {
InetAddressEx subnet = dlg.getSubnet();
if (!elements.contains(subnet)) {
elements.add(subnet);
elementList.setInput(elements.toArray());
modified = true;
}
}
}
Aggregations