Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Centering graphicalViewer focus
Centering graphicalViewer focus [message #157165] Sun, 07 November 2004 23:04 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:What does this exception mean?
Next Topic:PaletteCustomizer. save implementation
Goto Forum:
  


Current Time: Thu Aug 01 03:18:35 GMT 2024

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

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

Back to the top