Skip to main content



      Home
Home » Modeling » UML2 » UML2Util destroy method is protected?
UML2Util destroy method is protected? [message #477537] Wed, 18 June 2008 06:27 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:UML2Util destroy method is protected?
Next Topic:UML Primitive types and non-primitive types
Goto Forum:
  


Current Time: Tue Jul 15 09:29:17 EDT 2025

Powered by FUDForum. Page generated in 0.03524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top