Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Adding drawer to the palette on selection of model objects on the editor
Adding drawer to the palette on selection of model objects on the editor [message #175801] Wed, 06 April 2005 14:56 Go to next message
Eclipse UserFriend
Originally posted by: gunjan_sir.yahoo.com

HI!
Here is my situation.... I have a palette populated with my model objects
and i can do drag and drop of the model object from the palette on to the

editor...

This is my requirment.....when i select my model object on the editor ,i
should able to add a drawer in to the palette.

I'm stuck up with its implemention...
I request the experts out there to guide me through the steps required to

implement this funionality.

Thanking in advance for the advice.

best regards.
ved gunjan
Re: Adding drawer to the palette on selection of model objects on the editor [message #175817 is a reply to message #175801] Wed, 06 April 2005 17:21 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Listen for the selection change on the graphical viewer and when you detect
you need to add/remove drawers, simply add or remove the model elements.
You could listen to the workbench's selection service if you're sharing the
palette model between all your editors or something. That could get tricky,
however.

Another option is to have those drawers already be part of the palette
model, but have them hidden. Simply make them visible when the selection
changes. This has its drawback in that you would be overriding the user's
settings (if they hid those drawers manually, or something) and it could get
confusing. So you'd want to avoid this option unless you provided
additional information/customization.

"Ved Gunjan" <gunjan_sir@yahoo.com> wrote in message
news:edf9316dd81d7d11006ec6ddbcfbe80b$1@www.eclipse.org...
>
> HI!
> Here is my situation.... I have a palette populated with my model objects
> and i can do drag and drop of the model object from the palette on to the
>
> editor...
>
> This is my requirment.....when i select my model object on the editor ,i
> should able to add a drawer in to the palette.
>
> I'm stuck up with its implemention...
> I request the experts out there to guide me through the steps required to
>
> implement this funionality.
>
> Thanking in advance for the advice.
>
> best regards.
> ved gunjan
>
Previous Topic:Connections start flying when I zoom
Next Topic:About GraphicalViewer and EditDomain.
Goto Forum:
  


Current Time: Sat Feb 04 02:49:23 GMT 2023

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

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

Back to the top