Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to activate property sheets to gef edit parts
How to activate property sheets to gef edit parts [message #180757] Tue, 10 May 2005 12:22 Go to next message
Eclipse UserFriend
Originally posted by: tom_edwards.gmx.net

hi!
I'm a newbie and I would like to add property sheets to gef edit parts (as
model I use emf and emf.edit). So when I click on an edit part in the
graphical viewer, a property sheet should be shown in the properties view.
does anyone know how to do this?
with a normal tree viewer I used:
getSite().setSelectionProvider(treeViewer);
but the equivalent for the graphical viewer does not work.
thanks Tom
Re: How to activate property sheets to gef edit parts [message #180998 is a reply to message #180757] Wed, 11 May 2005 23:18 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() and AbstractEditPart#getAdapter(). All
you need to do is have your model provide PropertySources.

"Tom Edwards" <tom_edwards@gmx.net> wrote in message
news:7546b1fccae4cbff259142901d1c3a11$1@www.eclipse.org...
> hi!
> I'm a newbie and I would like to add property sheets to gef edit parts (as
> model I use emf and emf.edit). So when I click on an edit part in the
> graphical viewer, a property sheet should be shown in the properties view.
> does anyone know how to do this?
> with a normal tree viewer I used:
> getSite().setSelectionProvider(treeViewer);
> but the equivalent for the graphical viewer does not work.
> thanks Tom
>
Re: How to activate property sheets to gef edit parts [message #182326 is a reply to message #180998] Tue, 24 May 2005 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bayardo.cerda.kapsch.net

Hi,
I have some problems in activating property sheets for different property
descriptors. My model implements the IPropertySource interface, so for
text descriptors work fine but for other descriptors does not work. Do I
implement any other class? please can anyone help me? maybe pointing on
similar examples?
thanks in advance.
Re: How to activate property sheets to gef edit parts [message #182349 is a reply to message #180757] Tue, 24 May 2005 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bayanet.gmx.net

Hi Tom,

Did you get work?

If so can you help me please giving me any idea. Because I have the same
problem like you.
thanks,
bayardo

Tom Edwards wrote:

> hi!
> I'm a newbie and I would like to add property sheets to gef edit parts (as
> model I use emf and emf.edit). So when I click on an edit part in the
> graphical viewer, a property sheet should be shown in the properties view.
> does anyone know how to do this?
> with a normal tree viewer I used:
> getSite().setSelectionProvider(treeViewer);
> but the equivalent for the graphical viewer does not work.
> thanks Tom
Re: How to activate property sheets to gef edit parts [message #183150 is a reply to message #182349] Tue, 31 May 2005 18:24 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

I think there's an article about property sheets on eclipse.org. You should
discuss your problems on the platform newsgroup. They provide the
properties view, not GEF.

"Bayardo" <bayanet@gmx.net> wrote in message
news:94ebd8b38d24c8c36b5dcf4c7d4270aa$1@www.eclipse.org...
> Hi Tom,
>
> Did you get work?
>
> If so can you help me please giving me any idea. Because I have the same
> problem like you.
> thanks,
> bayardo
>
> Tom Edwards wrote:
>
> > hi!
> > I'm a newbie and I would like to add property sheets to gef edit parts
(as
> > model I use emf and emf.edit). So when I click on an edit part in the
> > graphical viewer, a property sheet should be shown in the properties
view.
> > does anyone know how to do this?
> > with a normal tree viewer I used:
> > getSite().setSelectionProvider(treeViewer);
> > but the equivalent for the graphical viewer does not work.
> > thanks Tom
>
>
Previous Topic:ToolbarLayout with fixed size figure
Next Topic:Word-wrap in Label -> TextFlow?
Goto Forum:
  


Current Time: Sun Jan 29 20:27:38 GMT 2023

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

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

Back to the top