How to add PropertySheet? [message #148470] |
Tue, 24 August 2004 20:55 |
Eclipse User |
|
|
|
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 #148498 is a reply to message #148490] |
Wed, 25 August 2004 00:47 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> > > >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03065 seconds