use of org.netxms.ui.eclipse.dashboard.dialogs.EditElementXmlDlg in project netxms by netxms.
the class DashboardElements method editElementXml.
/**
* Edit selected element's configuration directly as XML
*/
private void editElementXml() {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
if (selection.size() != 1)
return;
DashboardElement element = (DashboardElement) selection.getFirstElement();
EditElementXmlDlg dlg = new EditElementXmlDlg(getShell(), element.getData());
if (dlg.open() == Window.OK) {
element.setData(dlg.getValue());
viewer.update(element, null);
}
}
use of org.netxms.ui.eclipse.dashboard.dialogs.EditElementXmlDlg in project netxms by netxms.
the class DashboardControl method editElementXml.
/**
* Edit element XML
*
* @param element
*/
void editElementXml(DashboardElement element) {
EditElementXmlDlg dlg = new EditElementXmlDlg(getShell(), element.getData());
if (dlg.open() == Window.OK) {
element.setData(dlg.getValue());
recreateElement(element);
redoLayout();
setModified();
}
}
Aggregations