Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editor Size
Editor Size [message #232603] Tue, 03 April 2007 14:03 Go to next message
Eclipse UserFriend
Originally posted by: michele.l.evinco.it

is it possible get the editor dimension ?

Michele
Re: Editor Size [message #232611 is a reply to message #232603] Tue, 03 April 2007 16:25 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Michel

getBounds() is the method you are looking for.
getGraphicalViewer().getControl().getBounds() should do it.

Cheers...
Anthony

"michele" <michele.l@evinco.it> wrote in message
news:eutmsv$qhi$1@build.eclipse.org...
> is it possible get the editor dimension ?
>
> Michele
Re: Editor Size [message #232637 is a reply to message #232611] Wed, 04 April 2007 07:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michele.l.evinco.it

I've still try this but return a bounds with all values to 0.
i do this in initializeGraphicalViewer method of GraphicalEditor because
i want create an editPart with the editor's dimension on the open of the
editor.
Michele
Anthony Hunter wrote:
> Hi Michel
>
> getBounds() is the method you are looking for.
> getGraphicalViewer().getControl().getBounds() should do it.
>
> Cheers...
> Anthony
>
> "michele" <michele.l@evinco.it> wrote in message
> news:eutmsv$qhi$1@build.eclipse.org...
>
>>is it possible get the editor dimension ?
>>
>>Michele
>
>
>
Re: Editor Size [message #232782 is a reply to message #232637] Mon, 09 April 2007 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: keyanema.rediffmail.com

What about the getClientArea() ? Is this the required method?
Re: Editor Size [message #232954 is a reply to message #232637] Fri, 13 April 2007 19:00 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Is this some kind of frame you're trying to create to fit all your
editparts in?
Try not to create this editpart when editor is created but rather when
editparts are created... make it the first child of the diagram editpart
perhaps. Once this is done you can set the layout manager that would
calculate bounds for your frame as a max between union of all editparts
bounds on the diagram and viewer control's viewport.
Hope this helps.

Cheers,
Alex
Previous Topic:Layout
Next Topic:Gradients on rounded rectangles
Goto Forum:
  


Current Time: Thu Apr 25 19:23:49 GMT 2024

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

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

Back to the top