use of org.netxms.ui.eclipse.networkmaps.views.helpers.LinkEditor in project netxms by netxms.
the class PredefinedMap method showLinkProperties.
/**
* Show properties for currently selected link
*/
private void showLinkProperties() {
updateObjectPositions();
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
if ((selection.size() != 1) || !(selection.getFirstElement() instanceof NetworkMapLink))
return;
LinkEditor link = new LinkEditor((NetworkMapLink) selection.getFirstElement(), mapPage);
PropertyDialog dlg = PropertyDialog.createDialogOn(getSite().getShell(), null, link);
if (dlg != null) {
dlg.open();
if (link.isModified())
saveMap();
}
}
Aggregations