Skip to main content



      Home
Home » Eclipse Projects » GEF » [Draw2D] How to assign a property view to a draw2D figure.
[Draw2D] How to assign a property view to a draw2D figure. [message #67772] Mon, 03 March 2003 06:49 Go to next message
Eclipse UserFriend
Hi,

I am having a draw2D figure and I want my property view to open if I click
on that figure. I dont have any viewers related to my figure. Is there any
way I can hook property view to show my own.

Thanks,
Dinesh
Re: [Draw2D] How to assign a property view to a draw2D figure. [message #67895 is a reply to message #67772] Mon, 03 March 2003 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Properties view operates on the concept of selection. You need to send
selection to the selection service in the workbench
"Dinesh Varadharajan" <dvaradharajan@selectica.com> wrote in message
news:b3vfp2$nj2$1@rogue.oti.com...
> Hi,
>
> I am having a draw2D figure and I want my property view to open if I click
> on that figure. I dont have any viewers related to my figure. Is there any
> way I can hook property view to show my own.
>
> Thanks,
> Dinesh
>
>
Re: [Draw2D] How to assign a property view to a draw2D figure. [message #68183 is a reply to message #67895] Tue, 04 March 2003 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Randy,
I also implemented IPropertySheetPage and IPropertySource and I didn't know
how to set the selection in the workbench. Can you please throw some light
on this.

Thanks,
Dinesh


"Randy Hudson" <none@us.ibm.com> wrote in message
news:b3vprj$129$1@rogue.oti.com...
> Properties view operates on the concept of selection. You need to send
> selection to the selection service in the workbench
> "Dinesh Varadharajan" <dvaradharajan@selectica.com> wrote in message
> news:b3vfp2$nj2$1@rogue.oti.com...
> > Hi,
> >
> > I am having a draw2D figure and I want my property view to open if I
click
> > on that figure. I dont have any viewers related to my figure. Is there
any
> > way I can hook property view to show my own.
> >
> > Thanks,
> > Dinesh
> >
> >
>
>
Re: [Draw2D] How to assign a property view to a draw2D figure. [message #68232 is a reply to message #68183] Tue, 04 March 2003 10:47 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Your view must hook into the selection service as a selection provider.
See IWorkbenchPartSite.getSelectionService()

BTW, AbstractEditPartViewer is a selectionproviders.

"Dinesh Varadharajan" <dvaradharajan@selectica.com> wrote in message
news:b42gg1$v5k$1@rogue.oti.com...
> Randy,
> I also implemented IPropertySheetPage and IPropertySource and I didn't
know
> how to set the selection in the workbench. Can you please throw some light
> on this.
>
> Thanks,
> Dinesh
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:b3vprj$129$1@rogue.oti.com...
> > Properties view operates on the concept of selection. You need to send
> > selection to the selection service in the workbench
> > "Dinesh Varadharajan" <dvaradharajan@selectica.com> wrote in message
> > news:b3vfp2$nj2$1@rogue.oti.com...
> > > Hi,
> > >
> > > I am having a draw2D figure and I want my property view to open if I
> click
> > > on that figure. I dont have any viewers related to my figure. Is there
> any
> > > way I can hook property view to show my own.
> > >
> > > Thanks,
> > > Dinesh
> > >
> > >
> >
> >
>
>
Previous Topic:Why the Palette Model has changed
Next Topic:getPrintableLayers()
Goto Forum:
  


Current Time: Sun Aug 10 17:38:35 EDT 2025

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

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

Back to the top