Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can ComparePlugin be used in SWT stand-a-lone application
Can ComparePlugin be used in SWT stand-a-lone application [message #467678] Fri, 03 February 2006 14:25 Go to next message
Eclipse UserFriend
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
Re: Can ComparePlugin be used in SWT stand-a-lone application [message #467690 is a reply to message #467678] Fri, 03 February 2006 19:33 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It really depends on the plugin ... like JFace is a plugin, but can
easily be used as a jar in SWT applications.

If the compare plugin is trying to open an editor it probably depends on
org.eclipse.ui.workbench, which mean it won't run outside of eclipse/rcp.

Later,
PW


Re: Can ComparePlugin be used in SWT stand-a-lone application [message #467755 is a reply to message #467690] Mon, 06 February 2006 08:46 Go to previous message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
With deserialization I can see that the class' in eg. CompareUI indeed
uses the workbench class', so I guess the answer is NO, compare plugin
can not be used outside eclipse in SWT/JFACE application.



Paul Webster wrote:
> It really depends on the plugin ... like JFace is a plugin, but can
> easily be used as a jar in SWT applications.
>
> If the compare plugin is trying to open an editor it probably depends on
> org.eclipse.ui.workbench, which mean it won't run outside of eclipse/rcp.
>
> Later,
> PW
>
Previous Topic:pop-up shell closing
Next Topic:Unable to create table with checkbox columns
Goto Forum:
  


Current Time: Sun Sep 22 06:27:44 GMT 2019

Powered by FUDForum. Page generated in 0.01362 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top