I need to increment the default value of node attribute when i create a new node, for exemple the first node will have the attribute id_node=1, the second id_node=2 ...
If now one helps quickly, I would use the debugger to answer this
question. Set a breakpoint in the constructor, look on the stack where
the object is being created, decide where best to specialize the code to
set some initial state.
gerard wrote:
> Hi,
>
> I need to increment the default value of node attribute when i create
> a new node, for exemple the first node will have the attribute
> id_node=1, the second id_node=2 ...
>
> can you help me? thanks
there should be a XXXCreateCommand within your diagram edit.command
package having a doConfigure or at least a doExecuteWithResult method
you can customize.
Sven
Am 23.06.2010 15:18, schrieb gerard:
> Hi,
>
> I need to increment the default value of node attribute when i create a
> new node, for exemple the first node will have the attribute id_node=1,
> the second id_node=2 ...
>
> can you help me? thanks