use of org.netxms.ui.eclipse.networkmaps.dialogs.EditGroupBoxDialog in project netxms by netxms.
the class PredefinedMap method editGroupBox.
/**
* Edit group box
*/
private void editGroupBox() {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
if ((selection.size() != 1) || !(selection.getFirstElement() instanceof NetworkMapDecoration))
return;
NetworkMapDecoration groupBox = (NetworkMapDecoration) selection.getFirstElement();
EditGroupBoxDialog dlg = new EditGroupBoxDialog(getSite().getShell(), groupBox);
if (dlg.open() == Window.OK) {
mapPage.addElement(groupBox);
saveMap();
}
}
use of org.netxms.ui.eclipse.networkmaps.dialogs.EditGroupBoxDialog in project netxms by netxms.
the class PredefinedMap method addGroupBoxDecoration.
/**
* Add group box decoration
*/
private void addGroupBoxDecoration() {
NetworkMapDecoration element = new NetworkMapDecoration(mapPage.createElementId(), NetworkMapDecoration.GROUP_BOX);
EditGroupBoxDialog dlg = new EditGroupBoxDialog(getSite().getShell(), element);
if (dlg.open() != Window.OK)
return;
mapPage.addElement(element);
saveMap();
}
Aggregations