Shachar wrote:
> Hello,
>
> I extended the ve bean palette by my own bean.
>
> The problem is that while dropping the bean from the palette onto the ve, a
> rename dialog pops up with an "XYZ" as its default name.
>
> I don't know where this "XYZ" came from, what I need is the class name as
> the default name to appear in the dialog
>
> Any idea?
>
>
>
> Thanks,
>
> Shachar
>
>

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:eqpv1i$4ga$1@utils.eclipse.org...
> What kind of entry in the palette did you use? The EMFCreationToolEntry or
> the EMFPrototypeToolEntry?
>
> Did you include an entry like this?
>
> <keyedValues xsi:type="ecore:EStringToStringMapEntry"
> key="org.eclipse.ve.internal.cde.core.nameincomposition"
> value="menu"/>
>
>
>
>
> Shachar wrote:
>> Hello,
>>
>> I extended the ve bean palette by my own bean.
>>
>> The problem is that while dropping the bean from the palette onto the ve,
>> a rename dialog pops up with an "XYZ" as its default name.
>>
>> I don't know where this "XYZ" came from, what I need is the class name as
>> the default name to appear in the dialog
>>
>> Any idea?
>>
>>
>>
>> Thanks,
>>
>> Shachar
>>
>>
>
> --
> Thanks,
> Rich Kulp

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:erce9i$e4l$1@utils.eclipse.org...
>I don't know why. The xmi looks correct. The only reason that I could see
>this occurring is that the name in composition was not set correctly. But I
>don't see why that would happen.
>
> You would need to see if there are any errors in the log or trace to see
> if:
>
> 1) CreationToolEntryImpl.getFactory() to see if it adds in a
> AnnotationCreationFactory for the getKeyedValues().
>
> 2)
> NameInCompositionPropertyDescriptor.getUniqueNameInCompositi on(EditDomain
> domain, String name, Set otherNames) if the incoming name is null (if it
> is then XYZ is used). Trace backward from there.
>
> Rich

Shachar wrote:
> Hello,
>
> I extended the ve bean palette by my own bean.
>
> The problem is that while dropping the bean from the palette onto the ve, a
> rename dialog pops up with an "XYZ" as its default name.
>
> I don't know where this "XYZ" came from, what I need is the class name as
> the default name to appear in the dialog
>
> Any idea?
>
>
>
> Thanks,
>
> Shachar
>
>

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:eqpv1i$4ga$1@utils.eclipse.org...
> What kind of entry in the palette did you use? The EMFCreationToolEntry or
> the EMFPrototypeToolEntry?
>
> Did you include an entry like this?
>
> <keyedValues xsi:type="ecore:EStringToStringMapEntry"
> key="org.eclipse.ve.internal.cde.core.nameincomposition"
> value="menu"/>
>
>
>
>
> Shachar wrote:
>> Hello,
>>
>> I extended the ve bean palette by my own bean.
>>
>> The problem is that while dropping the bean from the palette onto the ve,
>> a rename dialog pops up with an "XYZ" as its default name.
>>
>> I don't know where this "XYZ" came from, what I need is the class name as
>> the default name to appear in the dialog
>>
>> Any idea?
>>
>>
>>
>> Thanks,
>>
>> Shachar
>>
>>
>
> --
> Thanks,
> Rich Kulp

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:erce9i$e4l$1@utils.eclipse.org...
>I don't know why. The xmi looks correct. The only reason that I could see
>this occurring is that the name in composition was not set correctly. But I
>don't see why that would happen.
>
> You would need to see if there are any errors in the log or trace to see
> if:
>
> 1) CreationToolEntryImpl.getFactory() to see if it adds in a
> AnnotationCreationFactory for the getKeyedValues().
>
> 2)
> NameInCompositionPropertyDescriptor.getUniqueNameInCompositi on(EditDomain
> domain, String name, Set otherNames) if the incoming name is null (if it
> is then XYZ is used). Trace backward from there.
>
> Rich