Add to Import/Export options

Discussions about integrations with other 3th party tools

Moderator: Moderators

Re: Add to Import/Export options

Postby norman.sims@gtri.gatech.edu » Tue Nov 28, 2017 11:24 am

Marlel,

I added the com.nomagic.magicdraw.emfuml2xmi_v5 plugin jars to my compile class path and to my plugin.xml file.
When I tried your code example I got a runtime error. Please see the attached text file called "Error From Code Sample."
I then modified the code to look like this:

EmfUml2XmiPlugin emfUml2XmiPlugin = new EmfUml2XmiPlugin();
emfUml2XmiPlugin.imp0rt(filePath);

This allows the program to get further, but it still throws a java.lang.NullPointerException. Please see the text file called "Sample Code Change Error."

Am I missing something?
Any suggestions?
You do not have the required permissions to view the files attached to this post.
norman.sims@gtri.gatech.edu
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Thu Oct 26, 2017 10:27 am

Re: Add to Import/Export options

Postby marlel » Wed Nov 29, 2017 7:30 am

Hello,

1. You can not create the plugin yourself, use EmfUml2XmiPlugin.getInstance().
2. If you are making your own plugin you must add dependency to Eclipse UML2 XMI plugin instead adding jars in the plugin.xml (see attached).
You do not have the required permissions to view the files attached to this post.
Best regards,
Martynas
marlel
No Magic
No Magic
 
Posts: 383
Posts Rating:28
Joined: Wed Jul 11, 2012 2:31 am

Previous

Return to Integrations

Who is online

Users browsing this forum: No registered users and 0 guests