[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.technology.gmf] Re: how to create element without create view?
|
Thank you, I had solve the problem :)
"Alex Shatalin" <vano@xxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:cd695fb310a078c88380b43778f4@xxxxxxxxxxxxxxxxxxx
> Hello dzh,
>
>> first way:
> If you are going to create additional element on creation another one ¨C
> it looks like a correct place.
>
>> second way, Use commandstack:
> Good for executing command from the user code (e.g. popup menu action).
>
>> How can I create element without create View and get the element I just
>> created?
> You can try CreateElementRequest ¨C only semantic element creation command
> should be returned to you as a result of sending this request to the
> corresponding EditPart. You can take a look on CreationEditPolicy.
> getCreateElementAndViewCommand() implementation as an example ¨C this
> method create two different commands ¨C semantic creation command and view
> creation command.
>
> -----------------
> Alex Shatalin
>
>