Can ComparePlugin be used in SWT stand-a-lone application [message #467678] |
Fri, 03 February 2006 14:25 |
Eclipse User |
|
|
|
Originally posted by: dj.eclub2.procard.dk
I'm building a stand-a-lone client base on SWT and JFACE. In this client
I want to compare two text files. Can the eclipse Compare plugin be used
for this or can it only be used with Eclipse?
Based on other posts I have added code like below, but I keep gettomg
java.lang.ExceptionInInitializerError's errors no matter what I try.
CompareConfiguration cc = new CompareConfiguration();
CompareEditorInput input = new CompareEditorInput(cc) {
protected Object prepareInput(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
return new DiffNode(new ByteInput("left",
"these\nare\nthe\ncontents"), new ByteInput(
"right", "theasdse\nare\nthe\ncontednts"));
}
};
CompareUI.openCompareEditor(input);
--
Best regards
Dennis Jensen, eXerp
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds