Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vorpatril

Pages: [1]
1
Ok, I understand.

Thank you for your help.

2
I had a look at the documentation about the add-ins and the broadcast events.

Is it possible to write add-ins in Java ?
(as far as I know it is not possible for the moment but I might be wrong)

3
Ok, it works !!!
Thank you very much for your help.

1) I open my project in EA.
2) I launch my test
3) I update the project in EA and I can see my package

Now I have a little question :

I would like to create a Java application that uses the EA API and I want to be notified when UML elements are created/modified/deleted in EA (running simultaneously).

So the question is : is there a event/listening system ?

4
Still not working  :(

Here is my code :
-------------------------------------
Repository repo = new Repository();
repo.ShowWindow(1);
boolean b = repo.OpenFile("mytest.eap");
Collection<Package> c = repo.GetModels();
Package pkg = c.GetAt((short)0);
String modelName = pkg.GetName();
Package p = (Package) pkg.GetPackages().AddNew("MyPkgName", "Nothing");
pkg.GetElements().Refresh();
pkg.Update();
repo.CloseFile();
repo.Exit();
-----------------------------------------------

The first line (call of "new Repository()") launches the "Evaluation Version of Entreprise Architect" window. I click "Continue Trial"

The second line (repo.ShowWindow(1)) does nothing

b is true : seems ok
modelName is the name of my model : seems ok
the new package I create seems ok

But at the end of the program nothing has changed : my model has not been changed.

5
Here is my first experience with this API :

1) I create a new Repository
2) I open an existing EA file
3) I get the models from the repository
4) I create a new Package

The problems :

1) The EA Application does not start when I launch my test (it is supposed to considering the documentation) - (if I start EA before my test does not work at all)
2) I don't know how to save the model via the API

Any ideas ?

6
Ok, I think I can start testing this API.

7
Thank you for your answers.

Ok, I've got the directory in the trial version.

Is there any documentation and / or examples ?

8
Hi all,

I am new to EA and I would like to know if the product provides a Java API. The purpose is to create/delete/modify UML Elements from an Eclipse plugin of my own.

I have installed EA MDG for Eclipse and read the documentation but I can't find any information about this subject.

Thanks in advance.

Pages: [1]