Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Extend Palette
Extend Palette [message #102256] Mon, 15 August 2005 19:20 Go to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
I was able to add a custom widget to the Palette following the tutorial. When dropping this custom
widget to a composite, I want to display our custom dialog/wizard instead of the dialog asking for
the Bean Name. Can this be done? What extensions should I use? Thanks.
Re: Extend Palette [message #102611 is a reply to message #102256] Wed, 17 August 2005 14:20 Go to previous messageGo to next message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
Hung wrote:
> I was able to add a custom widget to the Palette following the
> tutorial. When dropping this custom widget to a composite, I want to
> display our custom dialog/wizard instead of the dialog asking for the
> Bean Name. Can this be done? What extensions should I use? Thanks.


The naming dialog is opened because of the AnnotationPolicy (put a break point in
AnnotationPolicy.getDefaultAddAnnotationsCommand()).

This policy is an editor wide, and is responsible of figuring up what to "name" the instance that is being dropped (see
NameInMemberPropertyDescriptor.getUniqueNamesInComposition() .

There is no way to override/extend this particular policy. Note that this dialog will only come up if the preference is
set that way.

You have the option of creating your own edit part/policies, and override the existing ones. You can than add a policy
that brings up your dialog.
Re: Extend Palette [message #102686 is a reply to message #102611] Wed, 17 August 2005 16:33 Go to previous message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Gili Mendel wrote:

> Hung wrote:
>
>> I was able to add a custom widget to the Palette following the
>> tutorial. When dropping this custom widget to a composite, I want to
>> display our custom dialog/wizard instead of the dialog asking for the
>> Bean Name. Can this be done? What extensions should I use? Thanks.
>
>
>
> The naming dialog is opened because of the AnnotationPolicy (put a break
> point in AnnotationPolicy.getDefaultAddAnnotationsCommand()).
>
> This policy is an editor wide, and is responsible of figuring up what to
> "name" the instance that is being dropped (see
> NameInMemberPropertyDescriptor.getUniqueNamesInComposition() .
>
> There is no way to override/extend this particular policy. Note that
> this dialog will only come up if the preference is set that way.
>
> You have the option of creating your own edit part/policies, and
> override the existing ones. You can than add a policy that brings up
> your dialog.
>
>

We got it to work. Thanks.
Re: Extend Palette [message #610318 is a reply to message #102256] Wed, 17 August 2005 14:20 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
Hung wrote:
> I was able to add a custom widget to the Palette following the
> tutorial. When dropping this custom widget to a composite, I want to
> display our custom dialog/wizard instead of the dialog asking for the
> Bean Name. Can this be done? What extensions should I use? Thanks.


The naming dialog is opened because of the AnnotationPolicy (put a break point in
AnnotationPolicy.getDefaultAddAnnotationsCommand()).

This policy is an editor wide, and is responsible of figuring up what to "name" the instance that is being dropped (see
NameInMemberPropertyDescriptor.getUniqueNamesInComposition() .

There is no way to override/extend this particular policy. Note that this dialog will only come up if the preference is
set that way.

You have the option of creating your own edit part/policies, and override the existing ones. You can than add a policy
that brings up your dialog.
Re: Extend Palette [message #610324 is a reply to message #102611] Wed, 17 August 2005 16:33 Go to previous message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Gili Mendel wrote:

> Hung wrote:
>
>> I was able to add a custom widget to the Palette following the
>> tutorial. When dropping this custom widget to a composite, I want to
>> display our custom dialog/wizard instead of the dialog asking for the
>> Bean Name. Can this be done? What extensions should I use? Thanks.
>
>
>
> The naming dialog is opened because of the AnnotationPolicy (put a break
> point in AnnotationPolicy.getDefaultAddAnnotationsCommand()).
>
> This policy is an editor wide, and is responsible of figuring up what to
> "name" the instance that is being dropped (see
> NameInMemberPropertyDescriptor.getUniqueNamesInComposition() .
>
> There is no way to override/extend this particular policy. Note that
> this dialog will only come up if the preference is set that way.
>
> You have the option of creating your own edit part/policies, and
> override the existing ones. You can than add a policy that brings up
> your dialog.
>
>

We got it to work. Thanks.
Previous Topic:VE ignores visual class
Next Topic:(newbie) Using VE to create Wizard pages
Goto Forum:
  


Current Time: Fri Apr 26 00:22:00 GMT 2024

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

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

Back to the top