Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » A question about the code
A question about the code [message #625730] Fri, 14 December 2007 05:04
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi,

I have a question about the handleCrossReference method defined in
UML2Operations.FilteredUsageCrossReferencer (in uml2_1.1.1):

protected void handleCrossReference(EObject eObject) {
InternalEList filteredCrossReferences = new
FilteredECrossReferenceEList(eObject, filter);

...
}

The first statement in this method creates a FilteredECrossReferenceEList.
I would like to know how the argument filter is used by
FilteredECrossReferenceEList to get rid of some references. In the class
FilteredECrossReferenceEList, the only places that filter is used are in
the isIncluded method, but I did not see the
FilteredECrossReferenceEList's constructor explicitly calling the
isIncluded method. So where/how the filter is used during the creation of
an FilteredECrossReferenceEList?

Although this part of code exists in an old version of UML2, it should
help me understand how some EMF List interfaces are overriden and how a
filter can be used to optimize the search of contents, etc.

Your help would be greatly appreciated!

-- Sunny
Previous Topic:definecustomoperations in UMLEnvironment
Next Topic:OMG SysML xmi and eclipse
Goto Forum:
  


Current Time: Sat Aug 20 03:08:18 GMT 2022

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

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

Back to the top