public void Context_ExtensionChanged(object sender, UIShell.OSGi.ExtensionEventArgs e) { if (e.ExtensionPoint.Equals(EXTENS_POINT)) { onExtensionChanged(); } }
protected virtual void BundleContextExtensionChanged(object sender, ExtensionEventArgs e) { if (e.ExtensionPoint.Equals(ExtensionPoint)) { if (e.Action == CollectionChangedAction.Add) { foreach (T local in ConvertExtensionToExtensionDatas(e.Extension)) { AddExtensionData(e.Extension, local); } } else if (e.Action == CollectionChangedAction.Remove) { RemoveExtensionDatas(e.Extension); } else { ClearExtensionDatas(); } } }