Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Resources: understanding
[CDO] Resources: understanding [message #430536] Tue, 26 May 2009 14:13 Go to next message
Waldi  is currently offline Waldi Friend
Messages: 60
Registered: July 2009
Member
dear @ll,

i try to understand the meaningful and appropriate of resources. IMO
resources are like files. You can open it, modify it, safe it and close
it...... But say me why I can't get a list of all resources? I search a way
to manage some resources.
Re: [CDO] Resources: understanding [message #430539 is a reply to message #430536] Tue, 26 May 2009 16:41 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Waldi,

CDOResources differ a bit from normal EMF resources: They are EObjects
and they can be contained by CDOResourceFolders (EObjects, too).
CDOResources and CDOResourceFolders both extend CDOResourceNode and are
either contained by other CDOResourceFolders or by the root resource of
the repository. The root resource get be obtained with
CDOView.getRootResource(). Then you can work with getContents() or
getNodes(). CDOView also has a queryResources(folder, name(-prefix),
exactMatch) method.

You can even modify this tree structure with normal EMF means if you use
a CDOTransaction instead of a CDOView.

Cheers
/Eike

----
http://thegordian.blogspot.com



Waldi schrieb:
> dear @ll,
>
> i try to understand the meaningful and appropriate of resources. IMO
> resources are like files. You can open it, modify it, safe it and close
> it...... But say me why I can't get a list of all resources? I search a way
> to manage some resources.
>
>
>


Previous Topic:Intercept changes in multivalued attributes
Next Topic:creating new model elements via properties view
Goto Forum:
  


Current Time: Thu Apr 25 16:29:44 GMT 2024

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

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

Back to the top