Extend Palette [message #102256] |
Mon, 15 August 2005 15:20  |
Eclipse User |
|
|
|
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 #102686 is a reply to message #102611] |
Wed, 17 August 2005 12:33  |
Eclipse User |
|
|
|
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 10:20  |
Eclipse User |
|
|
|
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 12:33  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04387 seconds