I like the diff tool that Idea has very much. So I thought, may I can write a simple wrapper app that uses the diff tool and compares any 2 files. I want this to be standalone so that I can run this outside of intellij.
I tried 2 different code pieces and both of them are failing at the point
ApplicationManager.getInstance() is returning null.
Here are the 2 samples that I tried...
<![CDATA[DiffManager dm = DiffManager.getInstance();
final DiffTool ideaDiffTool = dm.getIdeaDiffTool();
DiffRequest diffRequest = new SimpleDiffRequest( null, "Diff Tool" );
ideaDiffTool.show( diffRequest );]]>
<![CDATA[panel = DiffPanelFactory.createDiffPanel( null, new Window(frame), true);
panel.setTitle1( "File 1");
panel.setTitle2( "File 2");
final VirtualFileManager vfInstance = VirtualFileManager.getInstance();]]>
Is there any way of making this happen outside intellij?