use of de.janrufmonitor.framework.monitor.IMonitor in project janrufmonitor by tbrandt77.
the class XTapi method createFieldEditors.
protected void createFieldEditors() {
StringFieldEditor sfe = null;
BooleanFieldEditor bfe = new BooleanFieldEditor(getConfigNamespace() + SEPARATOR + "activemonitor", this.m_i18n.getString(this.getNamespace(), "activemonitor", "label", this.m_language), this.getFieldEditorParent());
addField(bfe);
if (isExpertMode()) {
bfe = new BooleanFieldEditor(getConfigNamespace() + SEPARATOR + "outgoing", this.m_i18n.getString(this.getNamespace(), "outgoing", "label", this.m_language), this.getFieldEditorParent());
addField(bfe);
bfe = new BooleanFieldEditor(getConfigNamespace() + SEPARATOR + "deviceid", this.m_i18n.getString(this.getNamespace(), "deviceid", "label", this.m_language), this.getFieldEditorParent());
addField(bfe);
sfe = new StringFieldEditor(getConfigNamespace() + SEPARATOR + "festnetzalias", this.m_i18n.getString(this.getNamespace(), "festnetzalias", "label", this.m_language), this.getFieldEditorParent());
sfe.setEmptyStringAllowed(false);
addField(sfe);
}
IMonitor fbMonitor = this.getRuntime().getMonitorListener().getMonitor("XTapiMonitor");
if (fbMonitor != null) {
String[] fbInfos = fbMonitor.getDescription();
Label capi_label = new Label(this.getFieldEditorParent(), 0);
capi_label.setText(this.m_i18n.getString(this.getNamespace(), "fbinfo", "label", this.m_language));
for (int i = 0; i < fbInfos.length; i++) {
if (fbInfos[i].trim().length() > 0) {
Label capi = new Label(this.getFieldEditorParent(), SWT.NULL);
capi.setText(fbInfos[i]);
new Label(this.getFieldEditorParent(), SWT.NULL);
}
}
}
}
Aggregations