UML2Util destroy method is protected? [message #477537] |
Wed, 18 June 2008 06:27  |
Eclipse User |
|
|
|
Originally posted by: zhengxie.ie.ibm.com
Hello,
I try to create a scoped model, which means to delete some model
elements (and references) which are not in the scope. looks like the
"destroy" method in UML2Util does the business
protected static void destroy(EObject eObject)
But it is protected, not public.
I'm wondering about the reason and how can I scope a model?
Thanks.
ZX
|
|
|
Re: UML2Util destroy method is protected? [message #477540 is a reply to message #477537] |
Wed, 18 June 2008 16:46  |
Eclipse User |
|
|
|
Hi Zheng,
The Element metatype (the root of all other metatypes) has a destroy()
method that removes all cross references and removes it from its containing
resource.
I believe that is the one you are looking for?
Cheers,
- James.
"Zheng Xie" <zhengxie@ie.ibm.com> wrote in message
news:g3ankr$q2v$1@build.eclipse.org...
> Hello,
>
> I try to create a scoped model, which means to delete some model elements
> (and references) which are not in the scope. looks like the "destroy"
> method in UML2Util does the business
>
> protected static void destroy(EObject eObject)
>
> But it is protected, not public.
>
> I'm wondering about the reason and how can I scope a model?
>
> Thanks.
>
> ZX
|
|
|
Re: UML2Util destroy method is protected? [message #626730 is a reply to message #477537] |
Wed, 18 June 2008 16:46  |
Eclipse User |
|
|
|
Hi Zheng,
The Element metatype (the root of all other metatypes) has a destroy()
method that removes all cross references and removes it from its containing
resource.
I believe that is the one you are looking for?
Cheers,
- James.
"Zheng Xie" <zhengxie@ie.ibm.com> wrote in message
news:g3ankr$q2v$1@build.eclipse.org...
> Hello,
>
> I try to create a scoped model, which means to delete some model elements
> (and references) which are not in the scope. looks like the "destroy"
> method in UML2Util does the business
>
> protected static void destroy(EObject eObject)
>
> But it is protected, not public.
>
> I'm wondering about the reason and how can I scope a model?
>
> Thanks.
>
> ZX
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds