diff: add general extension point for diff viewers
[idea/community.git] / platform / diff-impl / src / com / intellij / diff / impl / DiffRequestProcessor.java
index ba9f21e02cfe4a472f00be38f6f71006ef97ce44..56ebb04b01e56e9e5257441e1be1fe556e629187 100644 (file)
@@ -232,6 +232,10 @@ public abstract class DiffRequestProcessor implements Disposable {
 
     DiffViewer viewer = frameTool.createComponent(myContext, myActiveRequest);
 
+    for (DiffExtension extension : DiffExtension.EP_NAME.getExtensions()) {
+      extension.onViewerCreated(viewer, myContext, myActiveRequest);
+    }
+
     DiffViewerWrapper wrapper = myActiveRequest.getUserData(DiffViewerWrapper.KEY);
     if (wrapper == null) {
       return new DefaultState(viewer, frameTool);