Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML2Util destroy method is protected?
UML2Util destroy method is protected? [message #477537] Wed, 18 June 2008 10: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 20:46 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 20:46 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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: Thu Apr 02 10:39:39 GMT 2020

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

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

Back to the top