Error - trying to load MD project using openAPI from eclipse

Starting point for “ask and learn more about MagicDraw”

Moderator: Moderators

Re: Error - trying to load MD project using openAPI from eclipse

Postby sasii4u@gmail.com » Fri Nov 09, 2018 8:35 am

Hi,

Thanks.

Trying to launch My Commandline configuration file from com.nomagic.magicdraw.integration.demo.application application.

Code snipped as below:

ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject mdProject = workspace.getRoot().getProject("My Commandline");
IPath location = new Path("My Commandline.launch");
IFile file = mdProject.getFile(location.lastSegment());
ILaunchConfiguration launchConfiguration = launchManager.getLaunchConfiguration(file);
DebugUITools.launch(config, ILaunchManager.RUN_MODE);


Getting the following error

Launching failed. Bootstrap code cannot be found.


1. Please let me know whether the approach is correct to launch a osgi launch configuration file from eclipse rcp application , is it possible ?
2. RCP application com.nomagic.magicdraw.integration.demo.application does not start the magic draw ?


Thanks and Regards,

Sasi Kiran
sasii4u@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 6
Posts Rating:0
Joined: Thu Oct 18, 2018 3:34 am

Re: Error - trying to load MD project using openAPI from eclipse

Postby vaidas.nargelas@nomagic.com » Fri Nov 09, 2018 8:50 am

Hello,

1) The code snippet you presented seems to use API that is part of Eclipse IDE. I'm not sure if it could be successful if used outside of IDE as part of RCP application.

2) The RCP application com.nomagic.magicdraw.integration.demo.application runs MagicDraw in process. In other words it does not launch it as a standalone application.
Sincerely,

Vaidas Nargėlas
No Magic Customer Support
vaidas.nargelas@nomagic.com
Forum Beginner
Forum Beginner
 
Posts: 38
Posts Rating:4
Joined: Thu Aug 06, 2015 12:28 am

Previous

Return to New to MagicDraw

Who is online

Users browsing this forum: No registered users and 0 guests