Book a Demo

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 - Lutz

Pages: [1]
1
Well, thanks then. Good that I did not yet find the time to start any efforts to implement a Plug-In in Java ...
My somewhat offline-solution where synchonization happens via the file on the disk will have to sufficient for the time being then.
Simon, is there already any idea in which release and/or when a Java plug-in mechanism will be available?

2
Now this I do not understand .. at least if I try to interprete what happens if I follow Franks' suggestion,

pkg.GetElement().SetStereotypeEx("MyStereotype");
pkg.GetElement().Update();

On first glance, nothing changes in the running EA session, but if I double-click the corresponding package, the stereotype appears, so the Java program must have some connection to the running EA session. Or does EA check if the eap file has changed and reloads it if required?

3
Frank,
thanks, that did it.
At least the changes are written to the eap file, but they are not reflected in my already running EA instance. Maybe I will have to do what I wanted to avoid: switch to VB  :'(
Anyway, thanks again.
Lutz

4
I am trying to write automations in Java which perform changes to the model I have currently loaded into my running EA instance.
I configured (Tools/Customize, Tools tab) the java VM to execute a java class, that starts as described in the EA documentation:

Repository r = new Repository();
r.OpenFile(projectName))

I then perform changes to model elements, e.g. assign as stereotype to a package. Finally I finish my work using

r.CloseFile();
r.Exit();

My problem: the changes are neither stored in the eap file nor do I see them in the already opened EA instance.
Probably I should do something like r.Save(), but I did not find anything the like.
Moreover, it looks like with the above I start a new EA instance instead of connecting to the already running one, as is described in the automation documentation for VB, using GetObject; is there any way to connect to the running EA instance using Java? :-?

Pages: [1]