Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CompareUI return code
CompareUI return code [message #333214] Mon, 01 December 2008 11:07 Go to next message
Lars Schneider is currently offline Lars SchneiderFriend
Messages: 50
Registered: July 2009
Member
Hi,

I have a problem with getting the return value of a compare dialog. If I
use it this way

--snip
CompareDialog compareDialog =
new CompareDialog(targetPart.getSite().getShell(), editorInput);
editorInput.setDirty(true);
compareDialog.open();
int ret = compareDialog.getReturnCode();
--snap

I get warnings about discouraged access. But using

--snip
CompareUI.openCompareDialog(editorInput);
--snap

refuses access to the return code presenting the clicked Button.
Is there a way to solve this problem or do I have to live with these
warnings?

Lars
Re: CompareUI return code [message #333216 is a reply to message #333214] Mon, 01 December 2008 11:13 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Hi Lars, I think you should take a look at bug 256194.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256194

Regards,
Remy
Previous Topic:question about logging and best practices
Next Topic:Testing an IResourceChangeListener?
Goto Forum:
  


Current Time: Wed Oct 09 12:22:20 GMT 2024

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

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

Back to the top