Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Programmatically adding a plug-in dependency
Programmatically adding a plug-in dependency [message #602901] Mon, 26 October 2009 09:20
Matt R is currently offline Matt RFriend
Messages: 2
Registered: October 2009
Junior Member
I'm trying to programmatically add a plug-in dependency to a plug-in project. I tried the following:

IPluginModelBase pluginModelBase = PluginRegistry.findModel(project);
IPluginBase pluginBase = pluginModelBase.getPluginBase();
IPluginImport newImport = pluginModelBase.getPluginFactory().createImport();

However, it complains with an "org.eclipse.core.runtime.CoreException: Illegal attempt to change read-only plug-in manifest model". What's the right way to do this?
Previous Topic:Programmatically adding a plug-in dependency
Next Topic:Get a file from the workspace?
Goto Forum:

Current Time: Mon Aug 03 09:26:50 GMT 2020

Powered by FUDForum. Page generated in 0.02927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top