Skip to main content



      Home
Home » Eclipse Projects » GEF » notify editor
notify editor [message #146597] Thu, 05 August 2004 04:34 Go to next message
Eclipse UserFriend
Originally posted by: penzhan8451.sina.com

Hi,

when i chenged some objects's locations (these objects were in
graphical

editor) in program , how could i notity the content editpart and response

these changes ?

Thanks in advance.
Re: notify editor [message #146675 is a reply to message #146597] Thu, 05 August 2004 19:57 Go to previous messageGo to next message
Eclipse UserFriend
Your EditPart should be notified when the location in the model changes.
Your EditPart can then revalidate the figure (which will cause a layout to
occur). If you are using constraints, then simply setting the layout
constraint on the parent EditPart will do the trick. This should already be
happening in refreshVisuals().

"PL Fisher " <penzhan8451@sina.com> wrote in message
news:cesrdu$pm2$1@eclipse.org...
> Hi,
>
> when i chenged some objects's locations (these objects were in
> graphical
>
> editor) in program , how could i notity the content editpart and response
>
> these changes ?
>
> Thanks in advance.
>
>
>
>
Re: notify editor [message #146688 is a reply to message #146675] Thu, 05 August 2004 22:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: penzhan8451.sina.com

Thanks Pratik !
That's good. But I encountered another problem. The graphical include

lines. The changes could be response completely util i refresh the screen

(Example: minisize,then maximum). why ?

Many thanks.

Pratik Shah wrote:

> Your EditPart should be notified when the location in the model changes.
> Your EditPart can then revalidate the figure (which will cause a layout to
> occur). If you are using constraints, then simply setting the layout
> constraint on the parent EditPart will do the trick. This should already be
> happening in refreshVisuals().

> "PL Fisher " <penzhan8451@sina.com> wrote in message
> news:cesrdu$pm2$1@eclipse.org...
> > Hi,
> >
> > when i chenged some objects's locations (these objects were in
> > graphical
> >
> > editor) in program , how could i notity the content editpart and response
> >
> > these changes ?
> >
> > Thanks in advance.
> >
> >
> >
> >
Re: notify editor [message #146779 is a reply to message #146688] Fri, 06 August 2004 14:06 Go to previous message
Eclipse UserFriend
Hmm, not sure. Try invoking figure.repaint(). But this should already be
happening during revalidation if the location's changed.

"PL Fisher " <penzhan8451@sina.com> wrote in message
news:ceurap$s5v$1@eclipse.org...
> Thanks Pratik !
> That's good. But I encountered another problem. The graphical include
>
> lines. The changes could be response completely util i refresh the screen
>
> (Example: minisize,then maximum). why ?
>
> Many thanks.
>
> Pratik Shah wrote:
>
> > Your EditPart should be notified when the location in the model changes.
> > Your EditPart can then revalidate the figure (which will cause a layout
to
> > occur). If you are using constraints, then simply setting the layout
> > constraint on the parent EditPart will do the trick. This should
already be
> > happening in refreshVisuals().
>
> > "PL Fisher " <penzhan8451@sina.com> wrote in message
> > news:cesrdu$pm2$1@eclipse.org...
> > > Hi,
> > >
> > > when i chenged some objects's locations (these objects were in
> > > graphical
> > >
> > > editor) in program , how could i notity the content editpart and
response
> > >
> > > these changes ?
> > >
> > > Thanks in advance.
> > >
> > >
> > >
> > >
>
>
Previous Topic:text control creation on key press event
Next Topic:Is there any example on showing two graph in one editor?
Goto Forum:
  


Current Time: Mon Apr 28 08:18:40 EDT 2025

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

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

Back to the top