use of de.janrufmonitor.framework.configuration.IConfigurable in project janrufmonitor by tbrandt77.
the class Editor method getTitleExtension.
protected String getTitleExtension() {
String id = this.m_configuration.getProperty(CFG_REPOSITORY, "");
if (id != null && id.length() > 0) {
ICallerManager cm = getRuntime().getCallerManagerFactory().getCallerManager(id);
if (cm != null && cm.isSupported(ILocalRepository.class)) {
String title = "";
if (cm instanceof IConfigurable) {
title = getI18nManager().getString(((IConfigurable) cm).getNamespace(), "title", "label", getLanguage()) + " - ";
}
title += ((ILocalRepository) cm).getFile();
return title;
}
if (cm != null && cm.isSupported(IRemoteRepository.class)) {
String title = "";
if (cm instanceof IConfigurable) {
title = getI18nManager().getString(((IConfigurable) cm).getNamespace(), "title", "label", getLanguage());
}
return title;
}
}
return null;
}
use of de.janrufmonitor.framework.configuration.IConfigurable in project janrufmonitor by tbrandt77.
the class Journal method getTitleExtension.
protected String getTitleExtension() {
String id = this.m_configuration.getProperty(CFG_REPOSITORY, "");
if (id != null && id.length() > 0) {
ICallManager cm = getRuntime().getCallManagerFactory().getCallManager(id);
if (cm != null && cm.isSupported(ILocalRepository.class)) {
String title = "";
if (cm instanceof IConfigurable) {
title = getI18nManager().getString(((IConfigurable) cm).getNamespace(), "title", "label", getLanguage()) + " - ";
}
title += ((ILocalRepository) cm).getFile();
return title;
}
if (cm != null && cm.isSupported(IRemoteRepository.class)) {
String title = "";
if (cm instanceof IConfigurable) {
title = getI18nManager().getString(((IConfigurable) cm).getNamespace(), "title", "label", getLanguage());
}
return title;
}
}
return null;
}
Aggregations