Centering graphicalViewer focus [message #157165] |
Sun, 07 November 2004 23:04 |
Eclipse User |
|
|
|
Originally posted by: caniszc.us.ibm.com
Here's what I'm trying to do. In my GotoMarker method in my editor, I
have the focus of the graphicalViewer set on the basis of the editPart
associated with a marker. What I want to do is have the graphicalViewer
center the editPart that has its focus set on it. What's the easiest way
of doing this ;)?
Cheers,
~ Chris
|
|
|
Re: Centering graphicalViewer focus [message #157260 is a reply to message #157165] |
Mon, 08 November 2004 15:10 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You can call viewer.reveal(EditPart), but it scrolls the minimum amount.
"Chris Aniszczyk" <caniszc@us.ibm.com> wrote in message
news:cmm9kc$3vn$1@eclipse.org...
> Here's what I'm trying to do. In my GotoMarker method in my editor, I
> have the focus of the graphicalViewer set on the basis of the editPart
> associated with a marker. What I want to do is have the graphicalViewer
> center the editPart that has its focus set on it. What's the easiest way
> of doing this ;)?
>
> Cheers,
>
> ~ Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03953 seconds