[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: How can I use custom border?

Hi,

Proposed patch is available at bugzilla.

Regards,
Michael

"John Watson" <john.watson@xxxxxxxxx> wrote in message 
news:244763268659fec2e7594c573c41cbb3$1@xxxxxxxxxxxxxxxxxx
> Hi Michael,
>
> @generated not doesn't work for me... I'll have to create a patch for 
> it... Can give me a starting point for it?
>
> Regards,
> John
>
> Michael Golubev wrote:
>
>> Hi,
>
>> It is the bug.
>> I've submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=154683 for 
>> this.
>> While it is not fixed, you need to write the code manually with 
>> @generated not tag.
>
>> Regards,
>> Michael
>
>> "John Watson" <john.watson@xxxxxxxxx> wrote in message 
>> news:127d694a6f8018a0e89e023261707cfb$1@xxxxxxxxxxxxxxxxxx
>>> Hi,
>>>
>>> I've created a custom border into test.appearance.borders project, in 
>>> package borders, class name - CustomBorder. Into gmfgraph I choose 
>>> Custom Border and set the following properties:
>>> Bundale Name = test.appearance.borders
>>> Qualified Class Name = borders.CustomBorder
>>>
>>> and I generated the code but it contains errors. The errors are in 
>>> %element%EditPart/ %Element%Figure/ public %Element%Figure (constructor)
>>>
>>> this.setBorder(); - this method requires a instance of Border
>>> createContents();
>>>
>>> I tried to set the Qualified Class Name = project.package.class with no 
>>> success. I don't know where is my mistake. Can someone help me?
>>>
>>> Regards,
>>> John
>>>
>