Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF Store » Working with cross references
Working with cross references [message #667327] Thu, 28 April 2011 03:22 Go to next message
philipp.hauer is currently offline philipp.hauer
Messages: 13
Registered: February 2010
Junior Member
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]

Report message to a moderator

Re: Working with cross references [message #667353 is a reply to message #667327] Thu, 28 April 2011 05:21 Go to previous message
Maximilian Koegel is currently offline Maximilian Koegel
Messages: 184
Registered: July 2009
Senior Member
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: Tue Jul 29 09:03:41 EDT 2014

Powered by FUDForum. Page generated in 0.03470 seconds