use of org.netxms.client.objects.AccessPoint in project netxms by netxms.
the class FindConnectionPoint method selectionChanged.
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
*/
@Override
public void selectionChanged(IAction action, ISelection selection) {
if ((selection instanceof IStructuredSelection) && !selection.isEmpty()) {
objects = new ArrayList<AbstractObject>();
for (Object s : ((IStructuredSelection) selection).toList()) {
if ((s instanceof Node) || (s instanceof Interface) || (s instanceof AccessPoint)) {
action.setEnabled(true);
objects.add((AbstractObject) s);
}
}
} else {
action.setEnabled(false);
objects = null;
}
}
use of org.netxms.client.objects.AccessPoint in project netxms by netxms.
the class RadioInterfaces method refresh.
/**
* Refresh content
*/
private void refresh() {
Node node = (Node) session.findObjectById(rootObject, Node.class);
if (node == null)
return;
List<RadioInterface> list = new ArrayList<RadioInterface>();
for (AbstractObject o : node.getAllChilds(AbstractObject.OBJECT_ACCESSPOINT)) {
if (o instanceof AccessPoint) {
for (RadioInterface rif : ((AccessPoint) o).getRadios()) list.add(rif);
}
}
viewer.setInput(list.toArray());
}
Aggregations