Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Refresh element in ElementListSelectionDialog
Refresh element in ElementListSelectionDialog [message #385166] Wed, 29 July 2009 23:07 Go to next message
Wirianto Djunaidi is currently offline Wirianto DjunaidiFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

I am extending ElementListSelectionDialog with a button that allow me to
pop up another dialog to edit the selected element.

I am looking for a way to refresh the ElementListSelectionDialog once the
element got updated. I called setElements() to put in the updated element
and then tried both getControlArea().redraw() or getContents().redraw().
Neither of them refresh the display of the dialog.

I also tried using the suggested mechanism in for viewer refresh using the
asyncExec(), it did not work either.

Am I going it the wrong way? What is the proper way to do this?

Thanks,
-DJ
Re: Refresh element in ElementListSelectionDialog [message #478992 is a reply to message #385166] Fri, 07 August 2009 21:38 Go to previous messageGo to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
Did you try calling setListElements()?

"DJ" <wirianto.djunaidi@gmail.com> wrote in message
news:8fad691c388e45608fd2df5cb1a3cff5$1@www.eclipse.org...
> Hi,
>
> I am extending ElementListSelectionDialog with a button that allow me to
> pop up another dialog to edit the selected element.
>
> I am looking for a way to refresh the ElementListSelectionDialog once the
> element got updated. I called setElements() to put in the updated element
> and then tried both getControlArea().redraw() or getContents().redraw().
> Neither of them refresh the display of the dialog.
>
> I also tried using the suggested mechanism in for viewer refresh using the
> asyncExec(), it did not work either.
>
> Am I going it the wrong way? What is the proper way to do this?
>
> Thanks,
> -DJ
>
Re: Refresh element in ElementListSelectionDialog [message #479156 is a reply to message #478992] Sun, 09 August 2009 21:36 Go to previous message
Wirianto Djunaidi is currently offline Wirianto DjunaidiFriend
Messages: 8
Registered: July 2009
Junior Member
That works. Didn't find out about setListElement() before because it is a
protected method.

Thanks,
-DJ
Previous Topic:[Databinding] Exceptions + Vetoable Changes
Next Topic:Setting ViewerFilter and fatal JRE error
Goto Forum:
  


Current Time: Thu Apr 25 21:54:09 GMT 2024

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

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

Back to the top