Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » notify editor
notify editor [message #146597] Thu, 05 August 2004 08: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 23:57 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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] Fri, 06 August 2004 02: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 18:06 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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: Tue Jul 16 03:59:54 GMT 2024

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

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

Back to the top