node' name [message #155163] |
Sat, 13 October 2007 05:09  |
Eclipse User |
|
|
|
Originally posted by: hanzhaogang.gmail.com
hi guys,
in my projects, the nodes' names are out of the node figures,i can
delete the names, while the node figures are still there.
my question is how can i provent the name to be deleted seperately?
thanks.
|
|
|
|
|
Re: node' name [message #157259 is a reply to message #155360] |
Fri, 26 October 2007 10:48  |
Eclipse User |
|
|
|
Originally posted by: hanzhaogang.gmail.com
i create a NodeNameEditPolicy, and ,if the NodeName is generated out of the
Node(not in the node),there will be something like "NodeNameEditPart". In
its "createDefaultEditPolicy" method i install the NodeNameEditPolicy to the
"NodeNameEditPart". The NodeNameEditPolicy can provent the user to delete
the name without deleting the node at the same time.
Hope this helps.
"Jakub Jurkiewicz" <jakub.jurkiewicz@gmail.com>
??????:fevo18$nae$4@build.eclipse.org...
> Could you write how you achieved the expected result? (In the future
> someone else might be looking for the answer for the same question.)
>
> kind regards,
> Jakub Jurkiewicz
> http://eclipser-blog.blogspot.com
>
> hanzhaogang pisze:
>> solved
|
|
|
Powered by
FUDForum. Page generated in 0.03188 seconds