Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to add PropertySheet?
How to add PropertySheet? [message #148470] Tue, 24 August 2004 20:55 Go to next message
Eclipse UserFriend
Originally posted by: none.bphnx.com

Both the flow and logic samples have a property page ( or view ) that
displays information about the figure that is selected. I cannot figure ;)
out where in the code this is done. I did a search for PropertySheet and
could find nothing. Can someone give me a hint where to find this in one
of these examples?


many thanks,

B
Re: How to add PropertySheet? [message #148490 is a reply to message #148470] Tue, 24 August 2004 21:11 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Look at GraphicalEditor#getAdapter().

"bandrews" <none@bphnx.com> wrote in message
news:cgg9vo$pkv$1@eclipse.org...
> Both the flow and logic samples have a property page ( or view ) that
> displays information about the figure that is selected. I cannot figure ;)
> out where in the code this is done. I did a search for PropertySheet and
> could find nothing. Can someone give me a hint where to find this in one
> of these examples?
>
>
> many thanks,
>
> B
>
Re: How to add PropertySheet? [message #148498 is a reply to message #148490] Wed, 25 August 2004 00:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.bphnx.com

Hmmm... Sorry maybe I am being stupid, but I just don't get it. I looked
at the
GraphicalEditor#getAdapter() code and I see how it creates the property
page. So I have
else return super.getAdapter(type);
as my last statement in my overridden getAdapter() method for my drawing
editor class. Does that mean the property page gets automatically created?
I am looking for some magic here in one of the samples, but I cannot find
it.
Please explain.


thank you so much!

B


Pratik Shah wrote:

> Look at GraphicalEditor#getAdapter().

> "bandrews" <none@bphnx.com> wrote in message
> news:cgg9vo$pkv$1@eclipse.org...
> > Both the flow and logic samples have a property page ( or view ) that
> > displays information about the figure that is selected. I cannot figure ;)
> > out where in the code this is done. I did a search for PropertySheet and
> > could find nothing. Can someone give me a hint where to find this in one
> > of these examples?
> >
> >
> > many thanks,
> >
> > B
> >
Re: How to add PropertySheet? [message #148590 is a reply to message #148498] Wed, 25 August 2004 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Yes, it get's created, but you still need to provide IPropertySource support
in your EditParts or in their model objects. See implementors of
IPropertySource in the logic example.

"bandrews" <none@bphnx.com> wrote in message
news:cggnjd$b94$1@eclipse.org...
> Hmmm... Sorry maybe I am being stupid, but I just don't get it. I looked
> at the
> GraphicalEditor#getAdapter() code and I see how it creates the property
> page. So I have
> else return super.getAdapter(type);
> as my last statement in my overridden getAdapter() method for my drawing
> editor class. Does that mean the property page gets automatically created?
> I am looking for some magic here in one of the samples, but I cannot find
> it.
> Please explain.
>
>
> thank you so much!
>
> B
>
>
> Pratik Shah wrote:
>
> > Look at GraphicalEditor#getAdapter().
>
> > "bandrews" <none@bphnx.com> wrote in message
> > news:cgg9vo$pkv$1@eclipse.org...
> > > Both the flow and logic samples have a property page ( or view ) that
> > > displays information about the figure that is selected. I cannot
figure ;)
> > > out where in the code this is done. I did a search for PropertySheet
and
> > > could find nothing. Can someone give me a hint where to find this in
one
> > > of these examples?
> > >
> > >
> > > many thanks,
> > >
> > > B
> > >
>
>
Re: How to add PropertySheet? [message #148765 is a reply to message #148590] Thu, 26 August 2004 21:05 Go to previous message
Eclipse UserFriend
Originally posted by: none.bphnx.com

Now I have the whole picture! Thanks!


Randy Hudson wrote:

> Yes, it get's created, but you still need to provide IPropertySource support
> in your EditParts or in their model objects. See implementors of
> IPropertySource in the logic example.

> "bandrews" <none@bphnx.com> wrote in message
> news:cggnjd$b94$1@eclipse.org...
> > Hmmm... Sorry maybe I am being stupid, but I just don't get it. I looked
> > at the
> > GraphicalEditor#getAdapter() code and I see how it creates the property
> > page. So I have
> > else return super.getAdapter(type);
> > as my last statement in my overridden getAdapter() method for my drawing
> > editor class. Does that mean the property page gets automatically created?
> > I am looking for some magic here in one of the samples, but I cannot find
> > it.
> > Please explain.
> >
> >
> > thank you so much!
> >
> > B
> >
> >
> > Pratik Shah wrote:
> >
> > > Look at GraphicalEditor#getAdapter().
> >
> > > "bandrews" <none@bphnx.com> wrote in message
> > > news:cgg9vo$pkv$1@eclipse.org...
> > > > Both the flow and logic samples have a property page ( or view ) that
> > > > displays information about the figure that is selected. I cannot
> figure ;)
> > > > out where in the code this is done. I did a search for PropertySheet
> and
> > > > could find nothing. Can someone give me a hint where to find this in
> one
> > > > of these examples?
> > > >
> > > >
> > > > many thanks,
> > > >
> > > > B
> > > >
> >
> >
Previous Topic:GEF Viewer in Dialog
Next Topic:A multiline label with a scroll bar
Goto Forum:
  


Current Time: Wed Jan 15 14:34:48 GMT 2025

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

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

Back to the top