Skip to main content



      Home
Home » Modeling » EMF » [CDO] Resources: understanding
[CDO] Resources: understanding [message #430536] Tue, 26 May 2009 10:13 Go to next message
Eclipse UserFriend
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 12:41 Go to previous message
Eclipse UserFriend
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: Sun Nov 09 09:29:05 EST 2025

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

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

Back to the top