Skip to main content



      Home
Home » Archived » EMF Store » Working with cross references
Working with cross references [message #667327] Thu, 28 April 2011 03:22 Go to next message
Eclipse UserFriend
Hello,

is EMFStore capable of dealing with cross references? This is a very important feature since we are working pretty frequently with this feature of EMF: We want to check in models with cross references. When this models are checked out, the references should be resolved (for instance by checking out the dependend models or copying the dependend informations in the model).

I can't find any hint for cross references in the EMFStore Navigator or the reflective Editor. When I create a model the "classical EMF way" with cross references ("Load Resource...") and then click on "Add to EMF Client Platform", a new project is created in the Navigator with a little icon showing that this project contains cross references, but when I check in the project und later check it out, the references are lost and consequently the information as well.

Is the EMFStore-Client able to deal with cross references? What about the API? Is there any information or documentation available?

I'm looking for any response.

Best Regards
Philipp

[Updated on: Thu, 28 April 2011 03:29] by Moderator

Re: Working with cross references [message #667353 is a reply to message #667327] Thu, 28 April 2011 05:21 Go to previous message
Eclipse UserFriend
Hi Philipp,

with the current trunk version of EMFStore this is possible and has been
tested. It is probably also possible with the current EMFStore release,
although I have not tested it.
A project can have links to resources (EObjects) outside of the
Project (Cross-project links and even links to other resources such as
external files or databases). This means not all referenced and/or
referencing models have to be in the same project.
Also there is no UI support for this so far, so links to external
resources can not be added via the reflective UI, that ships with
EMFStore. We are planning on providing I support for this in the
upcoming months.
More comments inline.

Cheers,
Maximilian


Am 28.04.2011 09:22, schrieb Philipp H.:
> Hello,
>
> is EMFStore capable of dealing with cross references? This is a very
> important feature since we are working pretty frequently with this
> feature of EMF: We want to check in models with cross references. When
> this models are checked out, the references should be resolved (for
> instance by checking out the dependend models or copy the dependend
> informations in the model).
EMFStore will ignore references to external resource and will not track
changes to them, but it will keep these references even if they cannot
be resolved (e.g. on the server).

>
> I can't find any hint for cross references in the EMFStore Navigator or
> the reflective Editor. When I create a model the "classical EMF way"
> with cross references ("Load Resource...") and then click on "Add to EMF
> Client Platform", a new project is created in the Navigator with a
> little icon showing that this project contains cross references, but
> when I check in the project und later check it out, the references are
> lost and consequently the information as well.
Where did you find this functionality, did you get this from the
democamo? I think, it was not intended to be able to handle cross
references and will probably not work as expected. To import a model
with cross-references you would need to implement a custom UI. The
import code itself would be simple. Just add the root element(s) to the
selected project (project.getModelelements().add(x)).

>
> Is the EMFStore-Client able to deal with cross references? What about
> the API? Is there any information or documentation available?
There is JavaDoc for all public methods. A good starting point is to
look at the example client here to discover the API:
http://code.google.com/p/unicase/wiki/EMFStoreGettingStarted

Hope this helps, do not hesitate to ask if you run into problems!

Cheers,
Maximilian
Previous Topic:Welcome to eclipse.emfstore
Next Topic:Explicit Locking
Goto Forum:
  


Current Time: Sun Jul 13 07:52:15 EDT 2025

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

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

Back to the top