com.intellij.openapi.diff
Class DiffManager

java.lang.Object
  extended by com.intellij.openapi.diff.DiffManager
All Implemented Interfaces:
ApplicationComponent, BaseComponent

public abstract class DiffManager
extends java.lang.Object
implements ApplicationComponent


Constructor Summary
DiffManager()
           
 
Method Summary
abstract  DiffPanel createDiffPanel(java.awt.Window window, Project project)
           
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 java.lang.String getComponentName()
          Unique name of this component.
abstract  MarkupEditorFilter getDiffEditorFilter()
           
abstract  DiffTool getDiffTool()
           
abstract  DiffTool getIdeaDiffTool()
          Use to ignore use settings and get Idea own DiffTool.
static DiffManager getInstance()
           
 void initComponent()
          Component should do initialization and communication with another components in this method.
abstract  boolean registerDiffTool(DiffTool tool)
          Work in progess.
abstract  void unregisterDiffTool(DiffTool tool)
          Work in progess.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffManager

public DiffManager()
Method Detail

disposeComponent

public void disposeComponent()
Description copied from interface: BaseComponent
Component should dispose system resources or perform another cleanup in this method.

Specified by:
disposeComponent in interface BaseComponent

getComponentName

public java.lang.String getComponentName()
Description copied from interface: BaseComponent
Unique name of this component. If there is another component with the same name or name is null internal assertion will occur.

Specified by:
getComponentName in interface BaseComponent
Returns:
the name of this component

initComponent

public void initComponent()
Description copied from interface: BaseComponent
Component should do initialization and communication with another components in this method.

Specified by:
initComponent in interface BaseComponent

getInstance

public static DiffManager getInstance()

getDiffTool

public abstract DiffTool getDiffTool()

getIdeaDiffTool

public abstract DiffTool getIdeaDiffTool()
Use to ignore use settings and get Idea own DiffTool. Internal tool knows hints:
DiffTool.HINT_SHOW_MODAL_DIALOG force show diff in modal dialog
DiffTool.HINT_SHOW_FRAME don't check modal window open. Show diff in frame in any case. May help as workaround when closing modal dialog right before openning diff.
DiffTool.HINT_SHOW_NOT_MODAL_DIALOG Show diff in not modal dialog


registerDiffTool

public abstract boolean registerDiffTool(DiffTool tool)
                                  throws java.lang.NullPointerException
Work in progess. Don't rely on this functionality
Adds new diff tool.

Parameters:
tool - diff tool to register
Returns:
false iff tool already registered (tool won't be registered twice). Otherwise true.
Throws:
java.lang.NullPointerException - iff tool == null

unregisterDiffTool

public abstract void unregisterDiffTool(DiffTool tool)
Work in progess. Don't rely on this functionality
Unregisters tool, registered with registerDiffTool(DiffTool)

Parameters:
tool - diff tool to unregister

getDiffEditorFilter

public abstract MarkupEditorFilter getDiffEditorFilter()

createDiffPanel

public abstract DiffPanel createDiffPanel(java.awt.Window window,
                                          Project project)
Parameters:
window - this window will be disposed, when user clicks on the line number